KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I try to play some "media" but at the time the AVPlayer starts I don't know if it is audio or Video. I connected the player Layer and it works fine. self.avPlayerLayer = [AVPlayerLayer playerLayerWithPlayer:[[PCPlayerManager sharedManager] audioPlayer]]; avPlayerLayer.videoGravity = AVLayerVideoGravityResizeAspect; avPlayerLayer.frame = CGRectMake(0, 0, videoView.frame.size.width, videoView.frame.size.height); [videoView.layer addSublayer:avPlayerLayer]; But how can I check if there is Video so I can add/remove some Options?
Tags (comma-separated)
Save Edits
Cancel