Altering Adocasts' Lesson 404 Page Behavior

In this stream, we'll alter our soon-to-be-published lessons to display a "Coming Soon" notice when visited instead of the current 404 page.

Published
Oct 29, 22
Duration
1h 2m

Developer, dog lover, and burrito eater. Currently teaching AdonisJS, a fully featured NodeJS framework, and running Adocasts where I post new lessons weekly. Professionally, I work with JavaScript, .Net C#, and SQL Server.

Adocasts

Burlington, KY

0:19

oh I just realized my mic's on this whoops

0:50

alrighty how's it going everybody um so

0:55

I have a small thing that I want to fix in this Stream So I have tomorrow's

1:01

lesson set to I'm trying out this YouTube premieres thing for the first time and I realized that it shows the uh

1:09

description the full description for the soon to be video um which has a link to the actual lesson

1:15

now if I click on that link it works okay so long as I'm logged in oh look at

1:21

that undefined whoopsie doozle um I think that's cached I need to take a look at that but

1:27

um yeah so I see the lesson okay but if I log out

1:36

well that's another thing that I need to get to eventually is to return you back to the previous page but if I log out

1:41

and I try to go to it now I get a 404 page so what would be great is If instead of a 404 this displayed

1:49

um something like a coming soon since the lesson's not technically this isn't technically a four or four it's just

1:55

it's not released yet so that's what we'll be doing today is getting this from a 404 to more of a coming soon page

2:02

while also allowing me an administrator to still come in here and make edits and all that fun stuff

2:08

so let's see so we have the code base here and the primary thing within here I

2:16

think is in the um lessons controller that's actually causing this to throw the 404 so if it's not viewable and the

2:24

user is not an administrator then it throws this exception which has a 404

2:30

status code so first thing would be to get it to not

2:36

throw the 404 so let me go and make sure that I log out am I logged in locally

2:42

still I am so let me copy this sign out go back to it let's

2:48

get our 404 all right cool so step one get it to be not be a four or four so uh

2:55

post is visible would be

3:02

model post

3:07

it's always is it viewable my bad um so it checks whether or not it's public or unlisted so if the state is

3:13

public or unlisted um

3:21

if it's not if it doesn't have a publish that date it looks like it's just returning back the return the the value of this check

3:29

otherwise it's checking to see whether or not it's past the publish app

3:35

um

3:41

so we might be okay to

3:47

hmm

3:52

let's add another computed in here

3:57

do is I don't know something like coming soon

4:03

and we'll perform the same check

4:10

and just return back the response of

4:17

let's see yeah we'll just duplicate this

4:22

foreign

4:28

so if it's public or enlisted and it doesn't have a publish at which all of them should since it gets

4:35

Auto set anyway but we'll keep that there just in case um so is past publish at equals this

4:43

publish at diff now as seconds so it's differentiating from now

4:48

and looks like it checks this to make sure that that's truthy and is past publish at is less

4:57

than zero so I take it that if it's greater than zero

5:06

then that would mean that it is coming soon

5:15

all right so let's try that I think that's the

5:21

only change that would need to happen there um probably be good to extract that out

5:26

into something different but let's get it working first so

5:34

let's see so post is viewable

5:40

let's do const

5:45

is viewable and

5:51

I don't even know what the use case would be to where it's viewable but not

5:56

it's not viewable but it is coming soon because it checks to make sure that it's

6:02

public and unlisted and then it's checking hmm

6:11

all right let's check our

6:17

coming soon first let's see what this does so let's um

6:22

I'm just going to change the exception so instead of throwing a 4 4 with this

6:28

we'll say coming soon so if post is coming soon

6:34

then throw an error saying coming soon Okay cool so that's coming soon

6:40

um let's create another lesson so that we can test to make sure that

6:48

that's not going to have an edge case where that would not be what we want

6:56

all right so something like that

7:01

post publisher would be

7:08

well I guess that would just be making sure that it doesn't throw an error if we try to view another one which it

7:13

doesn't look like it does so that seems to be what we want there so if is coming soon

7:20

then

7:36

I might be doing this dumb let's see if there is

7:42

so essentially all we want to do is flip the is viewable check to check whether

7:47

or not the post is not public and not unlisted um I don't know if I have another thing on

7:54

here that would I don't think I'd do so let's do

7:59

is not public let's flip the is viewable is not

8:05

viewable all right does not equal public

8:11

and does not equal unlisted and let's actually just return that

8:17

since none of the other stuff matters all right so it is not viewable

8:24

so let's check this so let's undo that is not viewable make sure that we get

8:31

past this which we should because this is a public post

8:38

okay um oh I'm logged in again oops so yeah okay so we got past it

8:45

um so then we want to do if it's

8:51

replace this with that so I'm going to cut that out

8:56

and do Post dot is not viewable else if

9:04

not post viewable

9:10

um I'll clean this up here in a second but also not an admin Oops I meant the copy not cut

9:16

all right then

9:21

what would be probably best is to not reuse this View and not put any differentiating logic within the view in

9:28

itself but to actually just have a different view so let's return view render

9:35

lessons slash unless something like soon um

9:40

and then we have the post up here so that we can get the title so that we can at least show like a working title if if

9:46

there isn't a strict one set already so we'll provide that

9:53

and yeah that should be okay so we'll save that come down to lesson show and

10:01

I'm going to copy this and paste it in here and rename it as soon

10:09

.edge [Music] um

10:14

definitely wanted to have a non-index flag so that Google doesn't try to index

10:20

it um I think the rest of that stuff would be okay to keep as is

10:27

well no because this will set a well yeah no it is still the same URL so that

10:32

should be good too and then I don't think we have the series

10:37

information coming through and maybe that's on the post in itself yeah it's got four display on it so that

10:44

would be no that's that's not reaching through a Series yeah okay so series is down here

10:51

so we don't have the series but I would prefer to have it for this

11:02

so maybe we move that above the if check up to here

11:12

I want to make that a const I don't know why that one's not a const and then

11:18

so now we should have the series so we should be able to keep this because it would be nice to be able to still go to and from different lessons once you see

11:25

that it's coming soon and not presently available um

11:31

and then I don't think that's applicable to live stream and then

11:39

that would be the embed which is okay to show because if you try to click on this all it's going to do is show the

11:45

premieres in so it's not gonna it's still technically works it serves its

11:50

purpose I guess so then

11:55

all of that would be the post information which I think would be okay the reading watch time is probably going

12:02

to be inaccurate especially if the video in itself is not published yet that's going to

12:08

be something that I manually provided in there so that wouldn't be something that we would want in there nor the buttons

12:15

um play plus YouTube yeah so those are

12:21

those action buttons that appear at the bottom of the title panel so then that would leave us with the series name

12:26

title and description which is good and then we do an additional check if there's not any assets to display it

12:32

with the top section so we just need to replicate what we

12:37

removed up there down here so that would be this div would it uh yeah

12:46

that'll be that div and then the mark complete stuff and all that fun

12:51

stuff down through there would get removed and then obviously the post body would

12:57

get well yeah yeah the post body would get removed but probably put something else in its place

13:05

um and then remove the comments

13:11

and I think the rest of that would be okay to leave it in there so

13:16

um and then we'll I don't know display something like um

13:25

put that in there as a filler for right now just to see okay I'm going to close that Tab and I'm

13:32

going to log out let me copy this URL once more so all right now I'm going to log out and I'm going to go back

13:39

to into here first check and make sure that that still loads in which it looks like it does

13:45

come into this one all right so the series information is gone which is weird

13:51

but it does show the this lesson is coming soon so oh I know what the series

13:57

information is showing oops definitely I don't want to print that I didn't add it

14:02

into the information so series there we go

14:09

there we go all right so now we have

14:15

um yeah and it's not going to show up within the series because that's how it's within the query on that I think

14:21

that's right because if you're getting if you're getting to this page it's it's by accident I didn't mean to have this

14:26

out but if you're getting to the page um definitely want to show that there's a reason for this page existing and

14:32

having a link so that's the primary purpose behind the this lessons coming soon messaging

14:38

um foreign I don't know if I can check whether or

14:45

not the um hey tomek CI uh thanks for stopping by

14:51

sorry I didn't look up um but yeah so I if if it's not a

14:59

Premiere which I I don't know whether or not that's something I'll continue to use I have not used it before so I

15:04

really don't know its usefulness just thought I'd try it out um but if this is not a Premiere then

15:10

this will just show like that gray screen with the gray play button

15:18

and I don't know whether or not I can detect that

15:27

um I would probably say not

15:36

you know what it would be good to have this not be so far down but rather just kind of maybe maybe a

15:43

hover bar on the bottom or something a fixed bar or something like that

15:48

because it doesn't make sense to have to scroll down to see that it's coming soon

15:57

[Music] um

16:09

so let's see so we'll get rid of

16:15

it doesn't make sense I have an ad on it either um

16:21

get rid of that um I'll leave that on there we'll get rid of all the ads that you know serve a

16:26

purpose on this page at all um

16:32

we'll leave the I guess the the title bar here

16:38

oh well that does move that over doesn't it so I do need a empty div to at least

16:44

push that over I think I don't know whether it's flux between her no okay

16:49

let's try glass with full oh that's a little bit too much

16:57

all right let me go back all right so we'll just we'll leave that body copy div in here

17:05

let me get rid of these ads again all right

17:10

there we go that looks proper so

17:15

probably put an image or something in here but yeah let's put a fixed bar down on the bottom

17:21

so where would be a good spot well we have this admin bar that's fixed so right

17:29

probably right here would be all right so div class [Music]

17:37

foreign

17:44

I think it's BG gradient no that doesn't look right I think it's

17:51

just gradient from

17:56

Gray 700

18:03

2 Gray 9.50 something like that

18:10

let's do py6 oops

18:17

and fixed bottom zero left zero width oh

18:24

and then let's plop a H2

18:33

let's see what that does oh okay evidently I got the background

18:39

maybe it is beachy gradient didn't look right oh it is BG Grady all right

18:46

that's not a great look and then we'll put this inside of my

18:53

container component

19:00

so maybe we'll just do a flat color BG

19:05

gray 950 with an 80 opacity

19:13

yeah that's all right um what's that uh see there's a backdrop

19:20

blur class that'll blur out the background so that it's not as competitive against the actual

19:28

content so let's see what that is I think it's

19:34

backdrop something backdrop blur yeah

19:46

let's try it with just the base uh it doesn't seem to be doing anything

19:56

maybe LG I might not have this version of Tailwind that might be

20:02

outdated I'm working on a re on a redesign where I updated Tailwind so this version is probably older so it

20:09

probably doesn't have that in it so instead what I'll do is let's try 95 opacity

20:15

yeah that'll that'll be all right and then text White

20:21

hey Mick Mark thanks for stopping by um so I'll do something like that

20:29

this lesson is coming soon um we'll be releasing and so I think

20:35

there's there's like the time until I think that shows the um

20:53

yeah so something like this um let me go see what that's reading

21:00

so Studio where's the studio posts

21:07

index and then that would be oh it's just all

21:15

right so it's time ago off of the post so come in here

21:24

will this um

21:29

I'm going to copy what YouTube uses what do they say that's the wrong thing

21:38

they remove oh no I did I just need to scroll down premieres in 16 hours so

21:47

premieres and and then it should be what post and then time I go all lower case I think it was

21:56

boom check that out why is in in there twice oh okay one of

22:02

the ends is on the time I go so let's do that and then we'll do

22:08

capitalize I guess the CSS class to make yep okay cool so premieres in 16 hours

22:14

uh see please check

22:21

uh I don't even know what to put for that the content has never been like my my

22:29

go-to I always end up looking to everywhere else for resources on that

22:35

yeah all right please check back and we'll put the actual date and time in there I guess

22:40

um

22:49

let's see please check back

23:00

um

23:08

probably good to have an icon besides that too make it look a little bit more

23:15

right something kind of like we have with the although the titles coming through is

23:21

undefined for whatever reason something similar to the live to make it stand out a little bit better

23:27

um foreign

23:32

I always forget what the icon thing I use is

23:40

there it is came to my head all right so let's do

23:46

maybe a clock let's do time

23:52

and then I put all of my icons in a component and then I have SVG

24:00

and do

24:07

clock oh I already have a clock okay then so then we'll do

24:12

div class Flex

24:19

spacex3 we'll do a div for the icon and then we'll do

24:25

another div class Flex Flex call for the title and whatever I end up

24:32

coming up with for the subtext I let's put ASDF over right now

24:38

and then at SVG dot clock

24:46

probably width 6 H6 something like that would be okay

24:57

we'll make this text smaller

25:08

okay and then let's Maybe 10.

25:21

let's try eight and then we'll Center it

25:32

that should be fine

26:11

okay that works and then um

26:17

put something fun in the body copy

26:23

uh well I can do that off screen

26:29

uh but yeah I'll put something fun there and then that will uh fill that in a little bit better so all

26:35

right so now you come onto the page you can see this um maybe I'll make the color pop a little

26:42

bit more on the title

26:47

foreign

27:31

that does not look centered looks slightly bottom left

27:36

or just left is there space in there or something let's get tell you what I'll do negative margin

27:43

right pixel it looks better I think this is slightly

27:51

too big

27:58

yeah that just looks weird

28:05

what about if we just do one bigger

28:11

yeah that looks a little better now it looks too right

28:17

no I can never get it right all right now it looks to left a pixel's not going

28:23

to make that big of a difference hmm I think it looked more right here

28:32

that's the darnedest thing all right so that that works um so now if you accidentally arrive to

28:38

this page via this you would come to this page and

28:45

I don't know there's a lot going on whenever you first enter this page in there hmm

28:52

it's not very it doesn't despite it being the accent color it doesn't pop too much it's one of the last things

28:59

that you see whenever you looking through everything

29:05

but I guess this is an edge case that we're catching so I guess that's good enough because if you try to play the

29:11

video you still see it and if you try to scroll down the content that's where this becomes more evident

29:16

so I I I think that will suffice for the purpose while I'm streaming let me

29:23

see if I can fix this um so let me um

29:32

instead of recreating that because I'll probably mess up whatever it is that I accidentally

29:37

didn't correctly so I'm going to drag this off stream just in case it opens up anything

29:50

okay so let me go file backup well I guess I

29:55

didn't need to open that up at all I think you don't need to do that to get in here all right so back up let me find

30:03

here there back it up all right let me overwrite the backup

30:09

that I had just created to get the post for tomorrow into my local let's replace it

30:36

all right so the backup completed there well let's do restore so file restore

30:51

select that file all right restored now so now if I come

30:57

back into my local and refresh oh yeah see this is just a cash issue it

31:02

shows up okay here hmm all right

31:07

so I removed the cache on like all of the

31:14

content items because it caused some issues whenever I was going to publish to where it caused it to not immediately

31:21

publish and it caused like my Twitter announcement and the YouTube stuff to be out of sync a little bit

31:27

with whenever it actually hits the site so I went ahead and just removed that until I have time to add proper job

31:35

scheduling to get that to be liquidy split um I guess I forgot to remove it here

31:41

maybe is the case so let me go take a look and see what's populating that

31:48

it's been a minute so I haven't looked that since I actually implemented it so uh

31:56

I don't know if that's in the App State yep right here so check live so

32:04

that does this hold I thought um

32:10

okay if a weight cache service has is live

32:16

then return it

32:29

otherwise post query where true is live or not true live stream URL or we're not

32:35

in all apply the published check order by publish it and grab the first and then

32:42

set that in there so what's weird is that it's picked up

32:50

that we are live but it doesn't have the live post that's

33:02

bizarre does it at least link now links to undefined hmm so it doesn't have the

33:09

post at all but ironically if you come in the

33:16

streams it picks it up just fine there hey look you can see what I'm looking at

33:24

um

33:32

that is the darndest thing I don't know why that would pick up that it is live since the is live check is the existence

33:38

of the post data like there's no other

33:44

like that is the check is whether or not the post date is there so it's weird to me that it wouldn't pick up

33:53

so let me go see what component that is that's actually rendering and see whether or not it's maybe just

34:00

I don't know so that would be in the layout my alphabet is just off today looking

34:07

down on the s's for the L's um Main

34:13

that's going to be down so if live and request well

34:20

yeah so live is that app state that we were looking at

34:25

before so live is the return of this which in return would return back the

34:31

existence of our post which would be the post in itself

34:38

what is serializing it I wonder if maybe the

34:43

no because it works locally so it wouldn't be that wouldn't be that this is expecting

34:50

different properties to show up properly

34:56

so let me go into Strings Banner

35:03

and it is just post title

35:16

all right

35:30

oh I'm looking at the wrong thing uh so let's see

35:37

maybe we just try to get rid of this cash because that would fix it if it still

35:43

comes back as undefined without the cash then actually do I have an application on

35:51

here

35:59

no that's well maybe that is the one that's tied to one of these I have two redis applications one I

36:08

doesn't seem like this one's to open when I tied to production when I tied the logo

36:15

I don't I can't recall whether or not I actually got the production one reading right though

36:24

yeah I don't think I did I kept getting the config and all there and I think that's because it'll have permission

36:30

from where this is trying to connect um

36:35

all right so yeah I'm gonna try pushing this out to production we're going to test in production here live on a stream

36:41

um so so let's do git status all right

36:47

I'm just going to push out the

36:53

was this the post service

37:11

oh I gotta reset everything else

37:18

there we go

37:29

okay

37:34

so we just gotta wait for that to hit the production

37:40

um

37:48

so I'll get a message here we can verify that within Discord in the meantime let me go ahead and boot

37:55

my server back up you know I probably should have uh made sure that the page still rendered

38:01

okay do that real quick I can cancel the deployment if it doesn't

38:07

yeah okay still render's good we're not going to break anything um

38:17

oh I have a purge all cache button I put in

38:24

there that just clears out everything yeah okay so it's still in there so

38:32

that's bizarre though

39:01

hmm yeah that's definitely in the past and that's definitely set the live

39:07

stream and it's definitely set to is live it could be this uh URL though maybe

39:13

it's a little funky I don't know ah

39:22

um sorry the build failed I realized that you guys didn't get that notification I did um

39:27

so cash service is no longer used so it's

39:33

all right

39:52

all right there we go so we'll see um we gotta wait for that to build again

40:17

foreign Ed as

40:24

undefined

40:30

I don't know I I really don't get how that can happen it's not making sense to me

40:37

to where it would be truthy but still

40:44

well yeah I guess that would have to be it is that it's getting cashed as undefined

40:49

or maybe I don't have redis running locally uh no it's not not an AC like oh what is

40:56

it pseudo service uh

41:02

uh redis server

41:24

yeah it's like I found it

41:30

ready to accept connections okay all right I thought that had a

41:37

background task but all right so long as it's running that's all that matters so let's

41:43

get you back up all right and then let's put these back

41:48

in here yeah let me uncomment this

41:55

and reload and reload again ah sure enough we have

42:01

replicated it cool sorry it took me a minute to realize

42:06

that I could that I didn't have redis running and that's why it wasn't being replicated I thought that I had it

42:12

automatically starting every time that I booted up my computer evidently I need to check on that so

42:19

um let's see most likely it's going to be that it's cached as undefined so let's

42:26

go back to the app cert no it was um the check live check

42:32

so let's do console log

42:44

and let's get is live to see what exactly it's got going on but I guess it's an undefined string oh

42:51

it's object object it's object object

42:58

that would do it too well yeah because the title was undefined right not the object in itself but the title so there

43:04

is no title object off of object object string all right so why are you

43:13

caching as undefined or as object string

43:19

serialize I thought maybe this one's not but no

43:28

oh I need to call set serialized

43:34

yeah but still you're serializing on the outside so it should turn it into a string no

43:40

no this one returns back the model serialized model so it's still an object

43:48

let me switch to my set serialize method and switch it to just providing it alive

43:57

no um and you know what let's improve that

44:03

check oh no that is just a has isn't it

44:14

yeah all right so let me log in

44:27

Purge me cash come back into here it's still undefined wow

44:33

hmm all right let me go look and see what

44:52

come back there you go and this that's the one

45:00

oh oh no it's not the one wait yeah okay there we go

45:07

so it is like oh dang it Tom you just need to parse it

45:14

all right Jesus all right so I think I have get parsed

45:23

yep

45:32

there we go all right oh gosh

45:42

all right cool so now we we have getting back to um it being cached for five minutes and

45:49

then um properly getting it to where we can get the title and

45:55

links to it this should be showing something though

46:01

shouldn't it some kind of video right I think it's supposed to be the equivalent of this

46:14

I just changed this I haven't pushed it out yet but I I might have broken it so like if you come in here I switched it

46:20

to where I had had the thumbnail poster over it with a custom play icon and then this YouTube embed didn't actually load

46:27

until you hit play um I want to test putting this I used to have this embed in here like this it is

46:33

now I want to test this again because I saw that YouTube was it used to recognize this video and I

46:41

think the way that I had switched to which is the weather that's currently out on production so like if you come in here

46:47

you get this little play icon and all that and then I auto play it once you click the icon

46:53

I want to test whether or not they're taking away the views for the video whenever you have it like this as

46:59

opposed to this so that's I'm gonna this will be on production whenever I next push but

47:05

um so I might have broken not this but this

47:12

because it should have a stream display up here and I'm pretty sure that this uses this exact same

47:18

lesson show page so if I go into it has its different

47:24

controller I think maybe not

47:30

I thought it did is it live streams oh yeah it's live streams it's looking for streams

47:36

so index and the show oh look at that that has the same thing

47:46

um all right let me copy this over to here I probably need to do that

47:52

from news and blog as well so copy that that does not need a series in there

47:58

oh no we can take this series put it up here as well

48:13

all right probably need to do the same one here I would assume yep

48:32

ah I'm gonna hit copy instead of paste

48:41

all right there we go and I think I have one more posts that's the

48:46

blog which nothing's posted to and doesn't even have this check so all

48:51

right so all right so let's go back into here and let's

48:57

see what right yeah so it's rendered out by the lesson show as well

49:03

um so let me look on the page to see whether or not there's an error showing

49:08

up it could be the actual URL

49:14

yeah it looks like it's just the um uh Google ads errors showing up the

49:21

double click stuff so that looks right we do have

49:27

an iframe nope that's add

49:34

so it would be above this container here but below the main and it does not well

49:40

actually I don't think it would be below the mean I think it's above the mean it's right here

49:46

I think

49:52

no that's the notification bar okay so let me just go in the lesson show

49:59

let me try uncommenting this change that I have here and see whether or not that

50:07

no it's still not showing up okay

50:13

post.livestreamurl and post.live so let's see what that value is well are we even getting there because I

50:20

don't think I saw an aspect see

50:28

okay so this is within the section content so it would be within

50:33

let me make this bigger so it would be within my main

50:38

break that's my little bar over there and there's the container I

50:45

think it's outside of the container isn't it

50:53

oh oh I see

51:08

all right I must have broken that at some point why whoa what's up with that

51:18

did I do that hmm

51:25

that's interesting I don't remember doing that but I might have done that

51:33

well I guess I would have had to have so let's see here

51:43

's the stream indicator here's that video embed I don't know where that would be coming from necessarily

51:50

oh okay

52:06

I didn't do a very good job of making those checks all the way through

52:14

that looks like it's the last one

52:19

there we go all right

52:26

I think it's supposed to auto play that though isn't it I thought

52:32

I know this page was It was supposed to autoplay it muted oh it looks like it pauses it after a bit

52:37

that might have been the new thing I put in um I switched a lot what didn't I save here

52:44

oh okay I switched the logic within the uh let's see the post.js file to have

52:51

this Auto embed I bet you it's probably hidden now it should hit the is live

52:58

do a console log and see what's going on here so console.log

53:04

let me move this down here actually see whether or not we're even getting here oh

53:16

well actually this is not run on the live stream page oh look at that it worked now

53:24

it's autoplaying let me try refreshing again see if it does the same thing

53:31

sure enough that's it I just need to have that

53:37

console log in there foreign no it's back all right it's

53:43

must be a cash issue because I have my nothing gets cashed whenever I have my

53:48

toolbar open

53:53

so that must be it which I always have this open whenever I'm deving so

54:04

it's got to be a cash thing let me try switching that

54:10

foreign I thought I did I it's one of the first

54:17

things I was doing whenever I set up my browser all right so I guess that wouldn't be it

54:22

then unless there's something else that would be changing

54:36

well that's bizarre doesn't happen when the toolbar is open

54:42

but whenever that's not open is it um

54:51

yeah okay it looks to be doing the same thing on production so if I open this up

55:00

oh okay look at that doesn't doesn't play whenever I'm on production with the dad open

55:06

all right well that's not the end of the world I'm that that's that's not a huge issue

55:13

um let me go take a look

55:19

okay see if there's anything in media that would stand out if not I'm not going to

55:25

worry about it on player ready window player equals

55:32

player at event Target mute

55:38

let me go see if that matches my auto play here so on a video

55:47

skip to seconds for the progression tracking player vars start

55:55

if is live delete the start let's get to seconds all right because it doesn't make any sense to seek to a specific

56:01

time in a live stream um autoplay

56:07

so okay but it still does have that if start muted then mute

56:13

down there and what's setting that start muted is

56:18

that a property coming from the outside element start mutant is live or auto play okay

56:26

foreign surprised

56:32

so I know I tested that and that worked fine with how this is currently set up with normal videos

56:38

um I had thought I tested it with live streams but evidently not to the extent that I should have

56:44

um well it wasn't my live stream I was testing with either so

56:50

that could have been it too um yeah so let me see if I have that auto

56:57

play set yeah that's hard-coded the trio on live streams so

57:03

it looks like it tries to play but then it doesn't it pauses but it has that

57:08

muted icon still on there I might just go ahead and get rid of it all together so like if we refresh you

57:15

can see it buffers for a little bit but it has the play and mute

57:22

so at the very least it'd probably be all right to just remove the autoplay on it and then take the mute off so that

57:28

whenever you do decide to play it it's not muted

57:33

foreign

57:41

yeah see the watch on YouTube Banner wasn't down there before so I think it was trying to play but it wasn't muted

57:47

at the time that it was trying to play so it ended up pausing it but then we ended up muting it after it paused I

57:53

think that was the flow that was going on there if I had to take a guess at it so I I'd need to take a deeper look at

57:59

the YouTube apis for that to see how I'm pretty sure I have it set up the way that it had been recommended but

58:08

I don't know if that changed I know YouTube just did a redesign so maybe they changed some stuff could take a

58:13

fresh look at it but in the meantime just so that it doesn't start with it muted and having a play

58:19

button I'm going to go ahead and just set this to um

58:26

I guess hard-coded false and I'm gonna attack it to do on that

58:50

oh all right hold on a minute I don't want to lose that property that was there play on ready okay

59:00

there we go and then

59:09

comment that out all right there we go so now if I come

59:14

back into the lesson as well that should yeah all right then if we hit play

59:20

all right there we go so that seems to be working and then uh I've got null coming up if I don't

59:26

provide a description oh gosh all right well I'm getting a phone call so I will be right back

59:37

alrighty um so I have to head out here in a minute uh so I'm going to go ahead and

59:43

wrap some stuff up here so I'm gonna go ahead and

59:52

see

59:58

let's just commit the I'm trying to think of what all we

1:00:04

changed during the Stream

1:00:19

let's fix live stream Banner cache um and then

1:00:28

added coming soon render to

1:00:34

not yet published lessons that's good enough

1:00:44

so I'm gonna go ahead and post that out and uh I'll double check make sure I didn't break

1:00:50

anything um here after that gets deployed but uh thank you all for watching

1:00:56

um I have a lesson coming out tomorrow at 9 00 a.m EST eastern time

1:01:03

um 1pm UTC and 2 p.m GMT if I have the time frames right there so be sure to

1:01:10

check that out it's on migrations as I'm sure you've seen here on the stream so

1:01:18

um yeah thank you all for stopping by have a great one and I'll see y'all tomorrow

1:02:14

foreign

Join The Discussion! (0 Comments)

Please sign in or sign up for free to join in on the dicussion.

robot comment bubble

Be the first to Comment!