I need to add subtitles from a url file for my video.
player = AVPlayer(URL: NSURL(string: "http:////playlist.m3u8")!)
player?.play()
player?.closedCaptionDisplayEnabled=true
Can someone provide me proper solution for this.
Hi Manish,
You need to include the URL to your webVTT subtitles inside of your master playlist.
Please visit the streaming section of our Developer website: https://developer.apple.com/streaming/
On that page, you will find links to resources on implementing HTTP Live Streaming, including a link to the WWDC session entitled Subtitles in HTTP Live Streaming using WebVTT