I have a video frame on top of Main.storyboard and I put ScrollView with TextView under that, now my problem is the ScrollView is not in the same position on all devices.
For example, in iPhone 7 Plus its in the correct position but in the iPhone SE its different same iPad.
Here is my ViewController.swift code:
import UIKit
import AVFoundation
import AVKit
class ViewController: UIViewController {
    let playerController = AVPlayerViewController()
    var player:AVPlayer?
    @IBOutlet weak var textView: UITextView!
    override func viewDidLoad() {
        super.viewDidLoad()
        let videoString:String? = Bundle.main.path(forResource: "m9", ofType: ".mov")
        playerController.player = player
        self.addChildViewController(playerController)
        let screenSize = UIScreen.main.bounds.size
        let videoFrame = CGRect(x: 0, y: 30, width: screenSize.width, height: (screenSize.width * 9) / 16 )
        playerController.view.frame = videoFrame
        self.view.addSubview(playerController.view)
        player?.play()
Then I tried to link the ScrollView to video frame:
let frame1 = CGRect(x: 0, y:  350 + videoFrame.height , width: screenSize.width, height: screenSize.height)
textView.frame = frame1
 
     
     
    