问题描述:

I want to put a vitamio media player on the top of a view and an image below of that but I do not how to change the position of vitamio media player using swift. the media player appears in the middle of screen and I want to move it to the top.

This is part of my code,

 var player:VMediaPlayer = VMediaPlayer.sharedInstance()

player.setupPlayerWithCarrierView(self.view, withDelegate: self)

player.setAdaptiveStream(true)

player.setDataSource(NSURL(string: url))

player.prepareAsync()

imageView = UIImageView(image: UIImage(named: "abajo.png"))

imageView.clipsToBounds = true

imageView.frame = CGRectMake(0, 460, 380, 250)

view.addSubview(imageView)

In the case of imageView I can change the position using CGRectMake function, but in the case of player I can't because I can't find a similiar function.

相关阅读:
Top