Select audio track in HLS Stream using MPMoviePlayerViewController - ios

I use MPMoviePlayerViewController to play HLS stream. I can chose between subtitles, but I don't know how to select audio tracks. Video has several audio tracks (e.g. in VLC I can select them).
How can I get all audio tracks and select them during playing video?

Related

How can I forbid AVPlayer switching to audio only tracks in HLS stream

The main source of my worries comes from the m3u8 manifests I use to play video in my app.
They contain variants with audio & video and some containing only audio.
The problem occurs when I load this type of manifest in avplayercontroller/avplayer while having a bad network or low bandwidth.
In every case avplayer witch to the tracks with no video to clear some bandwidth, resulting in no image appearing on the player.
I would like to know if there is a way to force avplayer or avplayercontroller to only focus on the manifest tracks containing audio and video and forbid audio only tracks to be selected, loaded, and played.
Thank you in advance to any tips or pointers you can give me on this subject.

Video Playing in Video Track 2 in VLC Media Player - Set Video Track

I am currently using VlcControl ( Vlc.DotNet.Forms ) to play the video in latest VLC Media player using rtsp url in
c# code _videoControl.Play(new Uri(networkUrl), options);
The issue here is ,the video is not playing in default Video Track 1 but it is playing in Video Track 2.
Is there any way to set the Video Track to 1?
Kindly let me know if any options available to set the video track and play.
You can use this to select the track you want to play :
(disclaimer : I'm on my phone and I didn't test the code)
mediaPlayer.SetMedia(...);
mediaPlayer.Parse();
var videoTracks = mediaPlayer.Video.Tracks.All.ToArray();
mediaPlayer.Video.Tracks.Current = videoTracks[0];
mediaPlayer.Play();
The same can be achieved with Audio for audio tracks

Is it possible to record audio and play a video simultaneously?

Is it possible to record audio and play a video simultaneously?
I wish to play a video and record the audio around the iPhone. Currently, once the video starts playing, audio recording stops.

Recording avplayer playing live streaming byte data...in iOS

I want to save avplayer playing byte data save on document directory.(like recording) but i don't want record side voice only song music.
AVAudioRecorder is take speaker voice so, thats why i want to save player live streaming data.
So, Please give any suggestion and source code which apply in my code.

Using AVPlayer to make audio tinny (adjust playback EQ).

I would like to be able to have music playback that can allow me to make the audio tinny. Like an Equalizer, i would like to alter the Channel EQ of the audio using a slider to choose whether the audio is full and rich, or light and tinny during playback of the audio file. Is this implementation possible?
Thanks,

Resources