-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
RTMP Support Updates #687
RTMP Support Updates #687
Conversation
tomjohnson916
commented
Aug 14, 2013
- Updated Flash.js to include rtmpStream, rtmpConnection in api.readWrite
- Updated Flash.js to replace double quote usage with single quote to validate under jsHint.
- Tested with multiple SWFs (one including IProvider.die() SWF) and RTMP streams.
…nd allow for it to be missing. Add unit tests for changes. Add in the latest video SWF.
…double quotes to validate under JSHint ruleset
I can probably do this before the end of the weekend, possibly even tomorrow. I did remove the extra "ugly" code in the flash.js |
I've added streaming details in the tech.md file in my 559-rtmp-support branch now. |
Awesome, thanks! |
@seniorflexdeveloper I pulled down the branch locally and I can't seem to get an rtmp stream to play. My source looks like this. <source src="rtmp://cp67126.edgefcs.net/ondemand/mp4&mediapm/ovp/content/test/video/spacealonehd_sounas_640_300.mp4" type='rtmp/mp4'> Does that work for you? |
Looking now to see why that doesn't work. I was using the JS programmable route, i.e. on player.ready player.src({ type: "rtmp/mp4", |
I suggest trying this on the iamjem:559-rtmp-support branch. That has the most RTMP changes right now, so it should be the branch that is pulled in. |
The stream URL @heff is using 404s in the Akamai Support Player. The URL should be; rtmp://cp67126.edgefcs.net/ondemand/mp4:mediapm/ovp/content/test/video/spacealonehd_sounas_640_300.mp4. Double checking now. |
As an update to my previous comment, the correct value including the ampersand delineator is as follows. This works in a sandbox implementation of this PR. |
I've noticed two new problems after testing the RTMP updates with the most recent SWF from video-js-swf. Browser doesn't matter, just so long as you're using Flash playback with RTMP:
|
@iamjem - I can confirm seeing that bug in Chrome, but not in Safari or Firefox (all on Flash Player version 11.5.502). |
Ah, it appears 1 is my own doing, I had some old |
Ok, tracked down the problem. Seems Flash playback (doesn't matter if its progressive or streaming) has some problems reporting accurate times. Here's the two scenarios that exist:
So, I enabled the seeking method on the This is in my 559-rtmp-support branch now. |
Thanks for digging into that Jeremy. We've got 3 (?) pull requests continuing for this. Can @seniorflexdeveloper or @bdeitte continue to pull everything together, or should I create a new branch in the main repo where I can immediately pull any changes into? |
@bdeitte is it the master branch? I will confirm later but looking at his flash.js file, it appears it's still missing the rtmpStream, rtmpConnectionUrl in the API readwrite. https://github.com/videojs/video.js/blob/master/src/js/media/flash.js#L263 |
@seniorflexdeveloper no it's 559-rtmp-support |
If my branch is the closest, and something is still missing, just let me know what else needs to be merged into it. I can add a test for the |
@iamjem - https://github.com/iamjem/video.js/blob/559-rtmp-support/src/js/media/flash.js#L290 needs to include 'rtmpStream,rtmpConnection' and then I think you're set. For example, see tomjohnson916@dcc0b91#L0R293. |
I've merged your master into the 559-rtmp-support, looks like it just included the items you mentioned, along with changing some double quotes to single, and removing white space. Pushed to github now. |
Added through #605 |