Closed rockrebel closed 11 years ago
Hi,
I am working on Tracking Events in VAST 2.0. What is the best way to mute/unmute Video ad playing on AVPlayer? The AVFoundation group says that the mute/unmute functions does not work on HTTP live streams ("AVAudioMix only supports file-based assets.").
https://developer.apple.com/library/ios/#qa/qa1716/_index.html
Please assist.
Thanks, vog
@vogwheels You can try doing it like this:
- (IBAction)toggleMute
{
if ([MPMusicPlayerController applicationMusicPlayer].volume == 0.f) {
[MPMusicPlayerController applicationMusicPlayer].volume = self.preMuteVolume;
}
else {
self.preMuteVolume = [MPMusicPlayerController applicationMusicPlayer].volume;
[MPMusicPlayerController applicationMusicPlayer].volume = 0.f;
}
}
Hi kolyuchiy, Can you please look into questions I posted and give any pointers on those ?
Thanks Mohan
@rockrebel I think the code from @stuffmc that I've merged today includes the functionality that you're asking about. Please, check if it works for you.
@rockrebel regarding your Initiating comment:
trackEvent:
in the code you'll see everything I track.
Hi, Thank you so much for the VAST player and Sample. Is there a way I can fire all the events while the Ad Video is playing ? if yes can you please let me know the steps.
For example I want to fire
Thank you Moh