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

RTMP Support #559

Closed
heff opened this issue Jun 4, 2013 · 12 comments
Closed

RTMP Support #559

heff opened this issue Jun 4, 2013 · 12 comments

Comments

@heff
Copy link
Member

heff commented Jun 4, 2013

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

@heff
Copy link
Member Author

heff commented Jun 11, 2013

You can see how the flash.js uses setProperty here:
https://github.com/videojs/video.js/blob/v4.0.3/src/js/media/flash.js#L275

On Jun 11, 2013, at 4:45 AM, Srijan R Shetty notifications@github.com wrote:

Awesome project guys! in issue #352 there was a mention of changing the properties of the swf using _setProperty. Could someone elaborate on this please.


Reply to this email directly or view it on GitHub.

iamjem added a commit to iamjem/video.js that referenced this issue Jun 27, 2013
@serpulga
Copy link

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?

@heff
Copy link
Member Author

heff commented Aug 21, 2013

Pull request #687 is going to update RTMP support, and it's close to being ready.

@serpulga
Copy link

Nice. Thanks!

@heff heff closed this as completed in 7ab3d19 Aug 23, 2013
@mdipierro
Copy link

Will video.js be able to play rtmp on browsers that do not support flash or does it require flash?

@mister-ben
Copy link
Contributor

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.

@hoodsy
Copy link

hoodsy commented Dec 13, 2017

@mister-ben do you know of any way to play RTMP .flv without using Flash?

@ROBERT-MCDOWELL
Copy link

@mister-ben
Copy link
Contributor

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.

@ROBERT-MCDOWELL
Copy link

technically html5 video object is protocol agnostic, so everything is possible, depend the developers to do it

@gkatsev
Copy link
Member

gkatsev commented Dec 13, 2017

The problem is that browsers cannot access anything that isn't HTTP or WebSockets. So, RTMP isn't accessible outside of flash.

@ROBERT-MCDOWELL
Copy link

ROBERT-MCDOWELL commented Dec 13, 2017

The problem is that browsers cannot access anything that isn't HTTP or WebSockets
not true...
https://developer.mozilla.org/en-US/Apps/Fundamentals/Audio_and_video_delivery/Live_streaming_web_audio_and_video

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants