bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.46k stars 8.12k forks source link

播放RTMP,网络差时,卡时,经常收不到任何消息 #1464

Open aBusyAnt opened 8 years ago

aBusyAnt commented 8 years ago

8

播放RTMP,网络差时,卡时,理论上应该会收到IJKMPMoviePlayerLoadStateDidChangeNotification,_player.loadState == IJKMPMovieLoadStateStalled 才对,

但经常却收到任何消息,包括IJKMPMoviePlayerPlaybackStateDidChangeNotification、IJKMPMoviePlayerLoadStateDidChangeNotification、IJKMPMoviePlayerPlaybackDidFinishNotification都没有,就会出现画面卡在那里,但是却没有processing 图标,some suggestion? thx. @bbcallen

`- (void)loadStateDidChange:(NSNotification*)notification { IJKMPMovieLoadState loadState = _player.loadState; ...... }

[[NSNotificationCenter defaultCenter] addObserver:self
                                         selector:@selector(loadStateDidChange:)
                                             name:IJKMPMoviePlayerLoadStateDidChangeNotification
                                           object:_player];`

log: 此时收到log: decodeFrame -12911 kVTVideoDecoderMalfunctionErr decodeFrame -12911 kVTVideoDecoderMalfunctionErr decodeFrame -12911 kVTVideoDecoderMalfunctionErr decodeFrame -12911 kVTVideoDecoderMalfunctionErr decodeFrame -12911 kVTVideoDecoderMalfunctionErr

SDL_VoutVideoToolBox_CreateOverlay(w=640, h=480, fmt=_VTB, dp=0x191e5510) 2016-06-14 18:42:10.982 SioEyeAPP[1387:512844] FFP_MSG_VIDEO_SIZE_CHANGED: 640, 480 decodeFrame -12911 kVTVideoDecoderMalfunctionErr decodeFrame -12911 kVTVideoDecoderMalfunctionErr decodeFrame -12911 kVTVideoDecoderMalfunctionErr decodeFrame -12911 kVTVideoDecoderMalfunctionErr decodeFrame -12911 kVTVideoDecoderMalfunctionErr decodeFrame -12911 kVTVideoDecoderMalfunctionErr decodeFrame -12911 kVTVideoDecoderMalfunctionErr SDL_VoutVideoToolBox_CreateOverlay(w=640, h=480, fmt=_VTB, dp=0x191e5510) 2016-06-14 18:42:37.779 SioEyeAPP[1387:512844] FFP_MSG_VIDEO_SIZE_CHANGED: 640, 480 decodeFrame -12911 kVTVideoDecoderMalfunctionErr decodeFrame -12911 kVTVideoDecoderMalfunctionErr decodeFrame -12911 kVTVideoDecoderMalfunctionErr decodeFrame -12911 kVTVideoDecoderMalfunctionErr decodeFrame -12911 kVTVideoDecoderMalfunctionErr

bbcallen commented 8 years ago

It means you've got an error while decoding.