Advertisement
Guest User

Untitled

a guest
Jan 15th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.87 KB | None | 0 0
  1. cdn = HolaCDN(customer: "7sweaters", usingZone: nil, andMode: "hola_cdn")
  2.         player?.volume = 1
  3.         player = cdn.player(with: urlVideo)
  4.         cdn.attach(player)
  5.  
  6.         playerViewController = AVPlayerViewController()
  7.         self.playerViewController.player = player
  8.         self.playerViewController.view.frame = attachmentView.frame
  9.         attachmentView.addSubview(playerViewController.view)
  10.         attachmentView.isUserInteractionEnabled = true
  11.  
  12.  
  13. cdn = HolaCDN(customer: "7sweaters", usingZone: nil, andMode: "hola_cdn")
  14.         player?.volume = 1
  15.         player = cdn.player(with: urlVideo)
  16.         cdn.attach(player)
  17.  
  18.         playerViewController = AVPlayerViewController()
  19.         self.playerViewController.player = player
  20.         self.playerViewController.view.frame = attachmentView.frame
  21.         attachmentView.addSubview(playerViewController.view)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement