I have to deal with seekbar in tvOS for stay video which is coming by m3u8 file.I’m utilizing default participant in AVPlayerViewController.As per my statement from different apps seekbar pointer is mounted eventually level of it.
Right here is the code to play stay video:
var playerViewController = AVPlayerViewController()
playerViewController.view.body = view.bounds
let str = "Video.m3u8"
let newURL = URL(string: str)!
let playerItem = AVPlayerItem(asset: .init(url: newURL))
let participant = AVPlayer(playerItem: playerItem)
playerViewController.playbackControlsIncludeTransportBar = true
playerViewController.showsPlaybackControls = true
playerViewController.participant = participant
addChild(playerViewController)
participant?.play()
Please assist if anybody having some concept about it.