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

Error in playing RTMP Stream #4200

Closed
tspvivek opened this issue May 2, 2018 · 14 comments
Closed

Error in playing RTMP Stream #4200

tspvivek opened this issue May 2, 2018 · 14 comments
Assignees

Comments

@tspvivek
Copy link

tspvivek commented May 2, 2018

Issue description

When tried playing a particular RTMP stream using the ExoPlayer Demo App, i am getting RtmpIOException.

Reproduction steps

Use the exoplayer demo app and in the media.exolist.json add this rtmp url rtmp://mbcmediaserver.mbcradio.tv/bestfm/livestream

In my case, I have added the RTMP url under HLS section in the media.exolist.json file.

Link to test content

rtmp://mbcmediaserver.mbcradio.tv/bestfm/livestream

Version of ExoPlayer being used

2.7.3 with extensions

Device(s) and version(s) of Android being used

Redmi 5A, Xiaomi
Android version: 7.1.2

A full bug report captured from the device

exoplayer_rtmp_log.txt

@tspvivek tspvivek changed the title Error in playing RTMP Streams Error in playing RTMP Stream May 2, 2018
@AquilesCanta AquilesCanta self-assigned this May 3, 2018
@tspvivek
Copy link
Author

tspvivek commented May 9, 2018

@AquilesCanta Hi Santiago, Do i need to provide any more details that could help you?

@AquilesCanta
Copy link
Contributor

Sorry for the delay, but I cannot debug the issue just yet. Will try to do next week. There is nothing obvious I can point out, so I will just try to manually diagnose the issue. Feel free to give it a try, if you have some time.

@VitalyVPinchuk
Copy link

Hi everyone,
I tried to play the media and failed too. I think given link is not valid and RTMP extension fails to connect through RtmpClient with exit code -3 or -4.
Please try this one: rtmp://184.72.239.149/vod/mp4:bigbuckbunny_1500.mp4 though I'm not sure that it is real RTMP format.

@tspvivek
Copy link
Author

tspvivek commented May 11, 2018

@VitalyVPinchuk Hi, Thanks for trying out this issue. But this audio url is valid and its playing well in the FFmpeg Media Player . And also it plays if you open the MBC Radio in Iphone Safari.

@VitalyVPinchuk
Copy link

VitalyVPinchuk commented May 11, 2018

Hi,
But still, I think it's not the issue of ExoPlayer. RTMP extension depends on RTMP-Client, which doesn't play this media offhand. Probably you should ask there (https://github.com/ant-media/LibRtmp-Client-for-Android).

@tspvivek
Copy link
Author

@VitalyVPinchuk Thanks for the information. I have opened a issue in LibRtmp. Error in playing RTMP Audio Stream

@ojw28
Copy link
Contributor

ojw28 commented May 30, 2018

Stack trace:

     Caused by: net.butterflytv.rtmp_client.RtmpClient$RtmpIOException
        at net.butterflytv.rtmp_client.RtmpClient.open(RtmpClient.java:56)
        at com.google.android.exoplayer2.ext.rtmp.RtmpDataSource.open(RtmpDataSource.java:57)
        at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:147)
        at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:841)
        at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:308)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
        at java.lang.Thread.run(Thread.java:760)

@ojw28
Copy link
Contributor

ojw28 commented May 30, 2018

Tracking bugs on the LibRtmp side:
ant-media/LibRtmp-Client-for-Android#65
ant-media/LibRtmp-Client-for-Android#66

@ojw28
Copy link
Contributor

ojw28 commented May 30, 2018

I can't play rtmp://mbcmediaserver.mbcradio.tv/bestfm/livestream using anything, including VLC and the mentioned FFMpeg Media Player. Are you really sure it's valid? Can you play it using VLC? If it's geo-restricted, have you any idea to which country?

@tspvivek
Copy link
Author

tspvivek commented May 30, 2018

@ojw28 Please try opening this http://www.mbcradio.tv/sites/all/themes/mbcradiotv/templates/bestfm.html
link in Iphone Safari browser and Press the play button. Its playing fine. I'm sure its not geo-restricted. My app is already playing this url using FFmpeg Media Player.

@ojw28
Copy link
Contributor

ojw28 commented May 30, 2018

I was able to make a little more progress:

  • VLC is only able to play the stream if I first manually resolve the address to rtmp://202.123.27.133:1935/bestfm/livestream, and then use that directly. I don't understand enough about DNS to understand why this is the case, but there are lots of red crosses when checking DNS propagation for the address. Any idea if this is relevant?
  • Using rtmp://202.123.27.133:1935/bestfm/livestream still doesn't allow playback with ExoPlayer, but it does let it get further before failure. The error changes from RtmpIOException.OPEN_CONNECT to RtmpIOException.OPEN_CONNECT_STREAM.

In any case, this is sufficient to work out that the first failure is related to resolving the address, and that at least VLC is also affected.

@randauto
Copy link

I have same issue.
Link test my rtmp:
http://hlstester.com/new-hls-player/?url=rtmp://5a6872aace0ce.streamlock.net/nghevov1//vov1.stream_aac

rtmp://5a6872aace0ce.streamlock.net/nghevov1//vov1.stream_aac -> can play welll but when playing in Exo player with this extension, it can not play.

@Aroniez
Copy link

Aroniez commented Aug 11, 2019

Same issue still. Any solution yet?

@ojw28
Copy link
Contributor

ojw28 commented Aug 27, 2019

This should be fixed by #6303.

@ojw28 ojw28 closed this as completed Sep 1, 2019
@google google locked and limited conversation to collaborators Nov 1, 2019
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

6 participants