Monday, October 23, 2023
HomeiOS Developmentios - Find out how to repair seekbar pointer for stay video...

ios – Find out how to repair seekbar pointer for stay video streaming in tvOS


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.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments