I need an example of Swift code and a simple application that shows how to get a list of audio tracks in a video player and switch them.
The live stream is HLS or mpegts.
I need three functions:
1) The player plays the video stream (url).
2) Get a list of audio tracks from this stream. There are several audio tracks in the stream.
3) Switch the audio track to any selected.
I need a sample swift code and the simplest testflight application to demonstrate the functionality of the code.
If it is important, HLS in this format:
# EXT-X-STREAM-INF: PROGRAM-ID = 1, BANDWIDTH = 2048000, AVERAGE-BANDWIDTH = 1845000
[login to view URL]
But it can be mpegts stream, no HLS.
I know that on iOS there are applications that can play mpegTS streams and can switch audio tracks in them. And this is what I need.
I would be glad of any valuable information on this subject.
Write your price and deadline for the solution with the simplest application with such functionality in the test flight.
I don’t need a design and no decorations. The application is needed only to demonstrate the functionality of the code. It should be as simple as possible.