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

Popular posts from this blog

python - Mongodb How to add addtional information when aggregating? -

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

ruby - Net::HTTP extremely slow responses for HTTPS requests -