-
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 #559
Comments
You can see how the flash.js uses setProperty here: On Jun 11, 2013, at 4:45 AM, Srijan R Shetty [email protected] wrote:
|
Hi. I'm trying to use Videojs to play a RTMP stream: <html>
<head>
<link href="http://vjs.zencdn.net/4.1/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/4.1/video.js"></script>
</head>
<body>
<video id="example_video_1" class="video-js vjs-default-skin"
controls preload="auto" width="640" height="264">
</video>
<script>
videojs('example_video_1').ready(function() {
this.src({type: "rtmp/flv", src: "rtmp://localhost/myapp/video-test.flv"});
this.play();
});
</script>
</body>
</html> I see the player window but I get this error: No compatible source and playback technology were found. Is there a working tutorial on how to set up RTMP playback? |
Pull request #687 is going to update RTMP support, and it's close to being ready. |
Nice. Thanks! |
Will video.js be able to play rtmp on browsers that do not support flash or does it require flash? |
RTMP playback requires the browser to have the Flash plugin. The Flash tech for Video.js (since moved to a separate repository, videos/videojs-flash) only enables Video.js to play videos with Flash; it does not emulate Flash. |
@mister-ben do you know of any way to play RTMP .flv without using Flash? |
You can't use RTMP in a browser without Flash. It is possible to transmux FLV and play it with media source extentions, like flv.js does, but they're using HTTP(S) or occasionally websocket, not RTMP. |
technically html5 video object is protocol agnostic, so everything is possible, depend the developers to do it |
The problem is that browsers cannot access anything that isn't HTTP or WebSockets. So, RTMP isn't accessible outside of flash. |
|
Creating a wrap-up issue for RTMP support questions.
Summary: RTMP has been in development for awhile, but we haven't had the time/resources to polish it off yet. It's been tested in a few applications but there's no direct interface to it from the javascript, or documentation around it yet. We don't yet have priority around this or a release date, but I'll update this issue when we do.
For anyone experience with Flash, you can see the implementation in the swf here:
https://github.com/videojs/video-js-swf/blob/master/src/com/videojs/providers/RTMPVideoProvider.as
Related issues include: #352, #176, #229, #180, #151
SWF Issue: videojs/video-js-swf#8
The text was updated successfully, but these errors were encountered: