google / ExoPlayer

This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media
https://developer.android.com/media/media3/exoplayer
Apache License 2.0
21.7k stars 6.02k forks source link

Rtmp url not playing in sample of exoplayer #4325

Closed aktjkt closed 6 years ago

aktjkt commented 6 years ago

Issue description

I wanted to create a rtmp player using ExoPlayer Demo application when i trying to play through wowza server its working fine but when trying to play through flash server its getting following error E/ExoPlayerImplInternal: Source error. 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.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:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764)

Reproduction steps

Just given any rtmp url which supports flash media server

Version of ExoPlayer being used

I am using implementation 'com.google.android.exoplayer:exoplayer:2.7.3' implementation 'com.google.android.exoplayer:extension-rtmp:2.7.3'

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

I am using Redmi mi a1 device having version Android 8

A full bug report captured from the device

E/ExoPlayerImplInternal: Source error. 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.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:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764)

ojw28 commented 6 years ago

Duplicate of https://github.com/google/ExoPlayer/issues/4200

ojw28 commented 6 years ago

Please can you provide some sample RTMP streams that reproduce this issue?