Okay,
Not so experienced with AVFoundation or iOS so finding my way.
I am trying to play a video on iOS that is sourced from a HLS stream and goes through a LUT (ColorCube)
I had it working using a .mp4 file from a server, but that approach doesn't work with a HLS stream. The general approach was
Get the Asset (AVAsset from URL)
Get the AVAssetTrack for the video
Create AVMutableComposition with that track
Create a AVMutableVideoComposition with that composition above and then pass the CIFilter set up in that constructor
Create a player item from the composition and then pass the video composition as the VideoComposition
Now that appeared to work but frankly it seems a pretty odd set up
And i assume the reason why the HLS source doesn't work is because of step 2 and there not being a track until it starts playing?
So i'm really confused about the correct set up for passing the video through a CI Filter from a HLS source.
Can anyone point me in the vague direction where i should be looking?
thanks!
Paul