Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playlist aren't automatically followed #2

Open
mirh opened this issue Aug 5, 2017 · 20 comments
Open

Playlist aren't automatically followed #2

mirh opened this issue Aug 5, 2017 · 20 comments

Comments

@mirh
Copy link

mirh commented Aug 5, 2017

Aka "next videos get automatically played".

@juneyourtech
Copy link
Owner

Can you be more specific?

It's a known issue, that the embed is not always loaded outright, so you'd have to reload the page to get Flash loaded in the first place. I don't know what causes this.

Otherwise, with version 0.3.5, autoplay is set to default.

@mirh
Copy link
Author

mirh commented Aug 5, 2017

I'm talking about what youtube is actually calling autoplay.
Be it in a playlist or not.

Currently, once video ends, everything stops.

@juneyourtech
Copy link
Owner

juneyourtech commented Aug 5, 2017

I understand what you mean. In Flash embeds, autoplay has a different meaning from that.

Indeed, jumping to the next video does not work. Not as in the screenshot you supplied, and not in actual playlists.

@mirh
Copy link
Author

mirh commented Aug 5, 2017

In Flash embeds, autoplay has a different meaning from that.

I see.

Anyway, would it be possible to get it?
I mean, afaik playlists have long existed before html5.
Also, "automatic playback" works correctly when watching videos in /v/ mode

@juneyourtech
Copy link
Owner

juneyourtech commented Aug 5, 2017

Anyway, would it be possible to get it?
[^automatic jumping from video to video in playlists]

There are embeddable playlists, and I have thought of those.

Also, "automatic playback" works correctly when watching videos in /v/ mode

That's good to know. The neat thing is, that this can be turned off and on from the User Script Commands submenu, if there's only a need to browse pages and not watch videos.

Upon clicking on a setting, a page reload or browsing to a different video page is required for changed settings to take effect. Browsing to a different video page must be similar to a page reload. — Because with default Firefox settings, YouTube has long used what I call dynamic [video] page changes, without actually loading the next video page upon clicking on a new video.

@mirh
Copy link
Author

mirh commented Aug 5, 2017

The need would be my mum lunching a song, and google just tacking care of putting up something else to play.
I'm not sure however this is handled different (or not) than playlists, but if you prefer just focus on them for now.

Ideas here perhaps?

EDIT: in other news, there's no need to touch media.autoplay.enabled for me

@mirh mirh changed the title Autoplay doesn't work Playlist aren't automatically followed Aug 5, 2017
@juneyourtech
Copy link
Owner

juneyourtech commented Aug 5, 2017

@mirh
The userscript you suggested, removes ads, and allows downloading of videos, and some other stuff. I'm really not into that, because YouTubers need to earn revenue, too.

I've ditched the specific idea of including embeddable playlists, as it seems to add more complexities than I'm comfortable with.

wrt media.autoplay.enabled — After I had enabled all of my HTML5 settings to then see at all if HTML5 video works, then this was the one setting that finally made it work. Setting it to false disabled HTML5 playback.

@mirh
Copy link
Author

mirh commented Aug 5, 2017

The userscript you suggested, removes ads, and allows downloading of videos, and some other stuff. I'm really not into that, because YouTubers need to earn revenue, too.

Absolutely.
I was just hinting at perhaps some useful code to tinker with playlists.

And I'm not sure how something already available in embedded mode.. could not work in normal one.

Setting it to false disabled HTML5 playback.

You really sure about webm and mp4 not being enough?
It is here.

@juneyourtech
Copy link
Owner

juneyourtech commented Aug 6, 2017

@mirh

You really sure about webm and mp4 not being enough?

HTML5 video began playing after setting autoplay to true in about:config.

Anyways, I've worked all night on JavaScript trying and testing to get the playlist stuff right. The plan and most of what to look for in the YT code took minutes.

I hope it's not too buggy, since I haven't programmed for about a dozen years, if not more. Because the most recent stuff with complex JavaScript I've done before, was, when Netscape 4 was still a thing, and Firefox was just an afterthought in someone's mind. So please be kind, because the code can appear like a total kludge. But it kinda works for me.

The jump to the next video might happen sooner (before the track ends), if there's been a lag. There's a short message for when the jump is about to happen, though timing in the message is likely to be woefully inaccurate.

Greasemonkey menu functions now include playlist active/inactive states. They also change video autoplay states, but still require page reloading or new video page visitation to take effect.

@mirh
Copy link
Author

mirh commented Aug 6, 2017

Mhhh.. I see how the timed thing might have been required for "randomised playlists with YouTube's Autoplay function".
(couldn't you just trigger the next item, say, when video has firmly ended for more than 2 seconds then?)

But outside of this case, ie with normal playlists, is it really that hard to play nicely and gracefully with normal already present embedded playlist?

HTML5 video began playing after setting autoplay to true in about:config.

Mh... Perhaps ads might play a role in this? My test video had none.

@juneyourtech
Copy link
Owner

@mirh

But outside of this case, ie with normal playlists, is it really that hard to play nicely and gracefully with normal already present embedded playlist?

The video in the embed does not automatically jump to the next playlist item at stop, and I didn't want to add an embedded playlist — because while it would 'gracefully' go to the next video, it would not change the page where it was on. This has its own pros and cons.

@mirh
Copy link
Author

mirh commented Aug 8, 2017

The video in the embed does not automatically jump to the next playlist item at stop

Actually... It does here :\

@juneyourtech
Copy link
Owner

@mirh wrote:

Mh... Perhaps ads might play a role in this? My test video had none.

I have an adblocker.

Actually... It does here :\

With dark-background playlists, moving to the next video is automatic. Before, the move was not automatic, which is why I'd updated the code to the current version (0.4.x), and all code applies to these only. I don't know what the situation is with white-background (randomised) playlists, because I never use those.

@mirh
Copy link
Author

mirh commented Aug 10, 2017

Mhh.. I have some quite disconcerting news for you then.

  1. black playlists (very good name btw) aren't working for me either
  2. I can successfully play VEVO and all the other ® stuff in normal view (yes, with your script and flash)

@juneyourtech
Copy link
Owner

@mirh

  1. Playlist item jumping works for me. Have you tried toggling 'Playlist active/inactive' states?
  2. Strange, because for me, Vevo content is erratic. After I logged in, I could play one Vevo video, and later on, it was impossible to view any other Vevo videos. I'm figuring, that maybe a cookie was set after that.

@mirh
Copy link
Author

mirh commented Aug 13, 2017

I kind of fear your ad/script blocking may be interfering the equation or something.
Playlist is active, and dark ones still aren't working.

@juneyourtech
Copy link
Owner

As of recent, Vevo seems to play ok. I'd like to now what your Firefox Browser Console (Shift+Ctrl+J) says about the userscript.

@mirh
Copy link
Author

mirh commented Aug 16, 2017

Browser console seems to just display stuff about the page - nothing to do with the script

Impossibile riprodurre la risorse multimediale. Nessun decoder disponibile per i formati richiesti: video/webm; codecs="vp9", video/mp4; codecs="avc1.4d401e"; width=640, video/webm; codecs="vp9", video/mp4; codecs="avc1.4d401e"; height=360, video/webm; codecs="vp9", video/mp4; codecs="avc1.4d401e"; framerate=30, video/webm; codecs="vp9", video/mp4; codecs="avc1.4d401e"; bitrate=300000, video/mp4; codecs="avc1.4d400d", video/mp4; codecs="avc1.4d4015", video/mp4; codecs="avc1.4d401e", audio/mp4; codecs="mp4a.40.2", video/mp4; codecs="avc1.4d400c", audio/webm; codecs="vorbis", video/webm; codecs="vp9", video/webm; codecs="vp9", video/webm; codecs="vp9", audio/webm; codecs="opus", audio/webm; codecs="opus", audio/webm; codecs="opus", video/webm; codecs="vp9", audio/webm; codecs="opus", audio/mp4; codecs="mp4a.40.2"; channels=2, video/mp4; codecs="avc1.42001E mp4a.40.2", video/webm; codecs="vp8.0 vorbis", video/mp4; codecs="avc1.42001E mp4a.40.2", video/webm; codecs="vp8.0 vorbis"  watch
Impossibile riprodurre la risorse multimediale. Nessun decoder disponibile per i formati richiesti: video/webm; codecs="vp9", video/mp4; codecs="avc1.4d401e"; width=640, video/webm; codecs="vp9", video/mp4; codecs="avc1.4d401e"; height=360, video/webm; codecs="vp9", video/mp4; codecs="avc1.4d401e"; framerate=30, video/webm; codecs="vp9", video/mp4; codecs="avc1.4d401e"; bitrate=300000, video/mp4; codecs="avc1.4d400d", video/mp4; codecs="avc1.4d4015", video/mp4; codecs="avc1.4d401e", audio/mp4; codecs="mp4a.40.2", video/mp4; codecs="avc1.4d400c", audio/webm; codecs="vorbis", video/webm; codecs="vp9", video/webm; codecs="vp9", video/webm; codecs="vp9", audio/webm; codecs="opus", audio/webm; codecs="opus", audio/webm; codecs="opus", video/webm; codecs="vp9", audio/webm; codecs="opus", audio/mp4; codecs="mp4a.40.2"; channels=2, video/mp4; codecs="avc1.42001E mp4a.40.2", video/webm; codecs="vp8.0 vorbis", video/mp4; codecs="avc1.42001E mp4a.40.2", video/webm; codecs="vp8.0 vorbis", video/mp  watch
Impossibile riprodurre la risorse multimediale. Nessun decoder disponibile per i formati richiesti: video/mp4; codecs="avc1.42001E mp4a.40.2", video/webm; codecs="vp8.0 vorbis"  rEcdliIV26Y
Impossibile riprodurre la risorse multimediale. Nessun decoder disponibile per i formati richiesti: audio/mp4, video/mp4

Should I do enable all the possible CSS logging?

@juneyourtech
Copy link
Owner

JS, Security, and Logging should be enough. CSS relates to Cascading Style Sheets, which only deals with presentation of non-media content.

When I looked at the Browser Console results in my computer, then I did not see any errors relating to attempted playback of WebM and MP4 content.

Try setting media.autoplay.enabled to false in about:config, and see what the Browser Console reports after that. This autoplay setting relates to automatic activation of HTML5 media playback.

@mirh
Copy link
Author

mirh commented Aug 19, 2017

Doesn't change anything (except the first time you open the page in HTML5 mode where of course you have to make it start)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants