iphone - how can I request thumbnailImage from MPMoviePlayController while slider -


i have custom uisider control, send requestthumbnailimagesattimes mpmovieplayercontroller when slider control.

- (void)sliderpopoverview:(uislider*)slider {     self.currentslidervalue = slider.value;     [self.movieplayer requestthumbnailimagesattimes:[nsarray arraywithobject:[nsnumber numberwithdouble:self.currentslidervalue]]                                              timeoption:mpmovietimeoptionnearestkeyframe]; }   - (void)requestfinishthumbnail:(nsnotification*)notification {     uiimage *thumbnailimage = [notification.userinfo objectforkey:mpmovieplayerthumbnailimagekey];     if (thumbnailimage) {         _bottomview.sliderpopover.popover.thumbnailview.image = thumbnailimage;     }   } 

then can receive lots of image show. main thread blocked. it's hard slider custom control. cost lots of time.

the reason may method

- (void)sliderpopoverview:(uislider*)slider 

is called every time slider moved little bit. cause mpmovieplayercontroller generate thumbnails. should try reduce number of times call method generates thumbnails.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -