-
Notifications
You must be signed in to change notification settings - Fork 793
Flash Fallback doesn't respond to canplay event with hls #61
Comments
This probably has to do with the fact that this plugin just sits on top of videojs right now and comes into play if videojs isn't able to play the hls stream another way. |
Any idea what the time frame is on that? I'm not sure if I should wait for the fix or try to come up with a work around. |
Hopefully, some time this week. |
The tech is available for playing around in PR #62. Feel free to try it out and let us know if the canplay event fires then. |
Please forgive my ignorance - what's the difference between a tech and a On Tue, May 20, 2014 at 6:46 PM, Gary Katsevman notifications@github.comwrote:
|
A tech is a different way of doing things behind the scenes. It's a way to abstract out the flash fallback from the videojs api. |
There is one difference in how you configure a tech as opposed to a plugin. Instead of calling
You also need to include the javascript for the HLS tech before you initialize your player. With a plugin, you're free to pull in the js any time before you actually initialize it. |
I haven't gotten a chance to work with this yet - but I noticed pull request #62 is merged to master. Just to be sure - can I try the current master and make the changes that dmlap mentions? |
I have tried version 0.7.0 and still do not see a canplay event, at least on Chrome. When I use the developer tools to start the video it stutters and fails, again on Chrome. |
Ok, it must be an issue in the video.js SWF then. We'll investigate. |
I'm getting some deadline pressure from a client. Is there a way I can help via a test case or .. [ insert thing here ] |
Is the problem potentially here: It looks like CAN_PLAY is not being fired until the buffer is full. On an HLS Stream - particularly the EVENT/LIVE streams that we are using the buffer is never truly full because you don't download the entire thing. |
@paytonrules: that does look like a bug. If you feel up for making a patch on video-js-swf, I can help you get it merged in. |
I'd love to - except I haven't written so much as "hello world" in ActionScript. |
It looks like I had operator error. I was listening for the :canplay event via (psuedocode warning) $("video").on("canplay", function() {blah}) Looking at it I realized that OF COURSE it doesn't work in Chrome since the video element goes away. Sure enough I'm getting the canplay event when I use videojs.on. |
Cool! Glad you were able to figure it out. Please open up more issues if you find other problems. |
If you're using the flash fallback and are using hls then the canplay event never fires. It works fine with the HTML5 player.
The text was updated successfully, but these errors were encountered: