LibRtmp-Client-for-Android
LibRtmp-Client-for-Android copied to clipboard
Rtmp live stream displays the first frame and freezes
I use your library together with ExoPlayer v2.5.4, and when i try to play this stream rtmp://188.130.252.20:1935/live/test live=1 the stream displays the first frame and freezes(last incoming state STATE_BUFFERING) For MediaSource used com.google.android.exoplayer2.source.ExtractorMediaSource
partial code:
RtmpDataSourceFactory dataSourceFactory = new RtmpDataSource.RtmpDataSourceFactory();
MediaSource mediaSource = new ExtractorMediaSource(Uri.parse("rtmp://188.130.252.20:1935/live/test live=1"), dataSourceFactory, new DefaultExtractorsFactory(), null, null);
log:
I/OMXClient: Using client-side OMX mux.
I/MediaCodec: [OMX.qcom.video.decoder.avc] setting surface generation to 18942978
I/ExtendedACodec: setupVideoDecoder()
I/ExtendedACodec: vpp-enable search is 0 and value is 0
I/ExtendedACodec: Decoder will be in frame by frame mode
W/ExtendedACodec: Failed to set frame packing format on component
W/ExtendedACodec: Failed to get Profile and Level from Component
W/ExtendedACodec: Failed to get Entropy from Component
rtmp vod streams working fine Device used for testing Le X527, API 23
Please try it yourself @mekya
It seems that the media server does not respond some meta data which should be in the RTMP stream. Can u @mekya please check and approve this?
Yeah I have checked and you are right. It seems that it is a codec issue in ExoPlayer.
@mekya can you please help me find the issue? i'm not well on this technology... or can tell me where to look in ExoPlayer
I think we may request help from one of the developer of Exoplayer
Is it possible to take a look at this issue @ojw28?
If ojw28 is busy to take a look at this issue, I can dig into this and try to help you.
yeah @ojw28 can u please? I opened new ticket in ExoPlayer project
@PanCrucian hi can you please share your code, how you have implemented rtmp live stream video suing this, i can't find doc for this