mute playback before started
Posted: 09 Oct 2016 14:30
Hi,
I am using TVVLCKit.framework, most often build locally due to some issues.
Users reported to me, that esp. with Audio-Passthrough they have distortion noise when switching from one stream to the other. It just takes a moment until the decoder gets in sync and playback is back to normal. But in a Home-Cinema environment this short distortion can ruin the equipment or the ears.
To get around that I wanted to mute the playback before playback is started and then with delay unmute again.
So I use [_mediaplayer.audio setMuted:YES]; after initializing the the media player.
Then with a delay of 0.2 seconds I use [_mediaplayer play]; to start playback on a background thread.
Finally I wanted to use [_mediaplayer.audio setMuted:NO]; to unmute the stream.
Well this does not work. Looks like muting only works, when playback has already started - which does not solve the issue reported by users of my App.
Any suggestions?
I am using TVVLCKit.framework, most often build locally due to some issues.
Users reported to me, that esp. with Audio-Passthrough they have distortion noise when switching from one stream to the other. It just takes a moment until the decoder gets in sync and playback is back to normal. But in a Home-Cinema environment this short distortion can ruin the equipment or the ears.
To get around that I wanted to mute the playback before playback is started and then with delay unmute again.
So I use [_mediaplayer.audio setMuted:YES]; after initializing the the media player.
Then with a delay of 0.2 seconds I use [_mediaplayer play]; to start playback on a background thread.
Finally I wanted to use [_mediaplayer.audio setMuted:NO]; to unmute the stream.
Well this does not work. Looks like muting only works, when playback has already started - which does not solve the issue reported by users of my App.
Any suggestions?