I added a notification with the following code,
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(videoLoadingComplete) name:MPMovieNaturalSizeAvailableNotification object:self.streamPlayer];
but it was not included in the videoLoadingComplete function even after playing the videos.
videoLoadingComplete
You can use the following code
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviestart:) name:MPMoviePlayerLoadStateDidChangeNotification object:nil]; -(void)moviestart { //your code here }
Source: https://habr.com/ru/post/1438584/More articles:jQuery - manipulating z-index & auto value instead of number - jqueryDrop file into WPF window - c #sql join int varchar - sqlhow can I select all elements between two elements - javascriptPrinting all ASCII characters in javascript - javascriptHow to export text data to csv using MVC 3? - asp.net-mvcIs there a way to check if a mailing address exists without sending test mail? - emailThere is a big delay before the MP4 video starts working in the streaming player - delayScheduled performance LocalNotification (large number of local notifications) - performanceCodeigniter: unable to connect to the database server using the provided settings - databaseAll Articles