-
Notifications
You must be signed in to change notification settings - Fork 31
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
Allow changing resolutions in Flash #9
Comments
Thanks for your interest in helping. The main roadblock is that I have no experience working with RTMP streaming. It might be as simple as specifying various RTMP sources and having the plugin check the source protocol before it enables the sources as selectable resolutions, but I don't have an RTMP server setup to test it. As far as I know, you will need RTMP because with just basic flash, the video will have to load from the beginning anytime you change resolutions (see here). That's obviously not the best user experience. My main concern with RTMP is that the request to start the new source at a specific time may trip up the server. I don't know how video.js will communicate it when you call the If you are able to tackle this, I would love to see a working test case to get a feel for how it works. Thanks again. |
Unfortunately it looks like the RTMP source switching is broken at the moment - videojs/video.js#834. So that's a big problem. As far as seeking to a specific point - I've had success attaching a .one + playing event and then calling currentTime(). You can see what how I implemented it here: https://github.com/aervans/videojs-seek. I would assume something along the lines of that should work in this case unless changing the source has other implications. |
Good catch. It looks like we'll have to wait for an update to the Video.js SWF (videojs/video-js-swf#92) before this can be implemented. As far as the But, unless I'm mistaken, you will still run into the problem of Flash videos having to load from the beginning before they resume play. Do you have a jsfiddle or test case of some kind where you are able to load a video into the Flash tech over HTTP (not RTMP) and start half way through without buffering up to that point? |
"But, unless I'm mistaken, you will still run into the problem of Flash videos having to load from the beginning before they resume play. Do you have a jsfiddle or test case of some kind where you are able to load a video into the Flash tech over HTTP (not RTMP) and start half way through without buffering up to that point?" You can start a video at any point with Flash Player by using pseudo-streaming. YouTube uses pseudo-streaming (using the start parameter). As far as I know right now the VideoJS flash player does not support pseudo-streaming. |
@kenmcd, that's interesting. I wasn't aware of pseudo-streaming. So, it seems like we're waiting on the video.js flash player for RTMP source switching and/or pseudo-streaming support before we can add flash support to this plugin. Pseudo-streaming is being tracked on videojs/video-js-swf#13, and it looks like progress is being made. Although, there hasn't been anything new for a few months. |
@dominic-p, I think there are more ideal situations than what I had to use in the case of my plugin. The issue that I ran into was that some of the events seemed to work inconsistently across different tech and source combinations. Events on Flash+RTMP stream sources in particular seemed to be broken. After much experimentation the only technique I found to work on pretty much everything was one+play. I suppose the fact that seeking on Flash is going to require buffing on all but RTMP sources is a bit of a showstopper at the moment. Adding to the problem, source switching on RTMP doesn't work. Essentially changing sources without buffering using Flash isn't going to happen with videojs in it's current form. I guess we'll just have to keep an eye on the videojs issues. |
Yeah, I think you're right. Once either of the 2 issues we've discussed with the SWF are resolved, we can start looking into this again. Also, you might be right about the one+play pattern. If we wind up going that route for flash, we'll still have to figure out how to handle cases where the user changes resolutions while the video is paused. |
Same problem here. What do you mean by Right now I'm trying to add some external buttons (out of the Is this a viable approach? I don't know how to do it from a videojs plugin. @dominic-p : I made a bower package for a fork of your plugin... if you make one yourself I delete mine (I can pull request to you the bower.json in case). |
@pieroit, Regarding the bower package, I appreciate you taking the time to do that, but honestly I feel like it's a bit of overkill for this project. We're talking about a single js file. I feel like a package management system would only add some unneeded complexity at this point. |
Anything new guys? |
@dominic-p Thanks, yesterday I've try small test about the seek on html5 and flash, look like flash has big problem with that hmmm. Anyway, keep waiting for the better news 🎱 |
What are the primary road blocks with getting the plugin to work in with Flash? I know there are issues with changing the RTMP source but as far as I know changing an mp4 source seems to work. I'd like to help out with this one so any insight before I start digging in would be helpful.
The text was updated successfully, but these errors were encountered: