ios - MPMoviePlayer receiving end of HLS Video Notification too soon -
i'm using nsnotification observer check when end of video reached this:
viewdidload
...
[[nsnotificationcenter defaultcenter] addobserver:self selector:@selector(moviefinished:) name:mpmovieplayerplaybackdidfinishnotification object:nil]; ...
- (void)moviefinished:(nsnotification *)note { nsdictionary *notificationuserinfo = [note userinfo]; nsnumber *resultvalue = [notificationuserinfo objectforkey:mpmovieplayerplaybackdidfinishreasonuserinfokey]; mpmoviefinishreason reason = [resultvalue intvalue]; when inspect variable reason mpmoviefinishreasonplaybackended
the problem i'm having receiving mpmoviefinishreasonplaybackended before live stream has ended.
i testing same hls stream on android device , live stream never ends, ios app video goes black.
can me find reason why receive mpmoviefinishreasonplaybackended notification prior end of stream? there more ways debug issue?
Comments
Post a Comment