Https streams on ios app

I everyone thanks for the quick response , i have problem in building a streaming a live persistence streaming on my app . after all i did it was not responsive att all on the play button can some please help me .
import AVKit
import AVFoundation
import UIKit

class ViewController: UIViewController {

override func viewDidLoad() {


override func viewDidAppear(_ animated: Bool) {

    let player = AVPlayer(url: URL(fileURLWithPath: Bundle.main.path(forResource: "", ofType: "m3u8")!))
    let layer = AVPlayerLayer(player: player)
    layer.frame = view.bounds
    layer.videoGravity = .resizeAspectFill
    player.volume = 0

// let vc = AVPlayerViewController()
// vc.player = player
// present(vc, animated: true)
i did link it so if you didnt see it its beacuse

You might need a different player for this… Avplayer is usually just for whole or static video playback