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 stream not working #862

Closed
simahawk opened this issue May 7, 2013 · 10 comments
Closed

RTMP stream not working #862

simahawk opened this issue May 7, 2013 · 10 comments

Comments

@simahawk
Copy link

simahawk commented May 7, 2013

ME is supposed to support RTMP streaming after #337 but as I commented in that issue #337 (comment) and also reported here http://stackoverflow.com/questions/15573307/rtmp-streaming-play it seems that this feature is not working.

@phuongdh
Copy link

I have rtmp working using the markup below

<video controls width="480" height="270" id="video-tag" poster="poster.png">
  <source src="rtmp://domain/app/mp4:filename" type="video/rtmp" />
</video>

@simahawk
Copy link
Author

This is not working for me... This is the public stream I'm testing upon: rtmp://lin4p.frascati.enea.it/streamsflv/sample.
I can play it with jwplayer and I can dump it w/ rtmpdump. I cannot get it working w/ the following code:

<html>
  <head>
    <script src="me/build/jquery.js"></script>
    <script src="me/build/mediaelement-and-player.min.js"></script>
    <link rel="stylesheet" href="me/build/mediaelementplayer.min.css" />
  </head>
  <body>

<video controls width="480" height="270">
  <source
    src="rtmp://lin4p.frascati.enea.it/streamsflv/sample"
    type="video/rtmp" />
</video>

<script>
  $('video').mediaelementplayer();
</script>

  </body>
</html>

I get this in console log:

Specified "type" attribute of "video/rtmp" is not supported. Load of media resource rtmp://lin4p.frascati.enea.it/streamsflv/mp4:sample failed.
All candidate resources failed to load. Media load paused.
All candidate resources failed to load. Media load paused.
All candidate resources failed to load. Media load paused.

Prepending mp4: to filename do not work neither.

@johndyer
Copy link
Collaborator

You need to set the streamer option separately to make RTMP work.

On Wed, May 15, 2013 at 9:46 AM, Simone Orsi notifications@github.comwrote:

This is not working for me... This is the public stream I'm testing upon:
rtmp://lin4p.frascati.enea.it/streamsflv/sample.
I can play it with jwplayer and I can dump it w/ rtmpdump. I cannot get it
working w/ the following code:

<script src="me/build/jquery.js"></script> <script src="me/build/mediaelement-and-player.min.js"></script> <script> $('video').mediaelementplayer(); </script>

I get this in console log:

Specified "type" attribute of "video/rtmp" is not supported. Load of media resource rtmp://lin4p.frascati.enea.it/streamsflv/mp4:sample failed.
All candidate resources failed to load. Media load paused.
All candidate resources failed to load. Media load paused.
All candidate resources failed to load. Media load paused.

Prepending mp4: to filename do not work neither.


Reply to this email directly or view it on GitHubhttps://github.com//issues/862#issuecomment-17943006
.

John Dyer - http://j.hn/

@simahawk
Copy link
Author

Nope, is not working for me... same error from firefox, nothing from chrome. Here's the code:

<video controls width="480" height="270">
  <source
    src="sample"
    type="video/rtmp" />
</video>

<script>
  var url = 'rtmp://lin4p.frascati.enea.it/streamsflv/sample';
  $('video').mediaelementplayer({flashStreamer:url});
</script>

@kraenhansen
Copy link

@simahawk - You got anywhere with this? I have the same problem.
Some says it helps to add "/mp4:" to the streamer, but it doesn't help when its a stream of video/flv.

@simahawk
Copy link
Author

I stopped trying long ago but next months I'll need it to work so I'm going to re-try it. Have you done any progress so far?

@kraenhansen
Copy link

Nope - I looked into the Action Script and couldn't find any obvious reason why it shouldn't work, maybe you'll have better luck. For now we've chosen a commercial alternative.

@phuongdh
Copy link

Try the markup I posted above with this fork https://github.com/phuongdh/mediaelement/tree/flex_build/

@simahawk
Copy link
Author

simahawk commented Feb 7, 2014

@phuongdh thanks. I just tried w/ your fork but it does not work :( Here's my code:

<html>
  <head>
    <script
       type="text/javascript"
       src="https://raw2.github.com/phuongdh/mediaelement/flex_build/build/jquery.js"></script>
    <script
       type="text/javascript"
       src="https://raw2.github.com/phuongdh/mediaelement/flex_build/build/mediaelement-and-player.min.js"></script>

    <link rel="stylesheet"
          href="https://raw2.github.com/phuongdh/mediaelement/flex_build/build/mediaelementplayer.min.css" />
  </head>
  <body>


<video controls width="480" height="270" id="video-tag">
  <source src="rtmp://lin4p.frascati.enea.it/streamsflv/mp4:sample" type="video/rtmp" />
</video>

<script type="text/javascript">
  var url = 'rtmp://lin4p.frascati.enea.it/streamsflv';
  $('video').mediaelementplayer({flashStreamer:url});
</script>

  </body>
</html>

I get always the same error log entry:

Specified "type" attribute of "video/rtmp" is not supported. Load of media resource rtmp://lin4p.frascati.enea.it/streamsflv/mp4:sample failed..

@wieloch
Copy link

wieloch commented Jun 3, 2016

I had this same exact problem. I found that I had to update the Flash support in Firefox (rtmp only works with Flash installed - in case someone gets here because of the same scenario as me)

@rafa8626 rafa8626 closed this as completed Aug 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants