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

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -