iphone - count the number of loops and stop playing the audio -


i have small 4 second video file played again , again.for have used

[player setrepeatmode:mpmovierepeatmodeone]; 

but after 1st loop want audio stopped , video should played.i tried setting [player setuseapplicationaudiosession:no];

but not working.

any help?

there no direct way mute or adjust volume of mpmovieplayercontroller. need control device's volume. mpmovieplayerplaybackdidfinishnotification , write following code in specific check

[[mpmusicplayercontroller applicationmusicplayer] setvolume:0]; 

Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c++ - CryptStringToBinary API behavior -