VersaPlayer | Versatile Video Player implementation for iOS macOS | Video Utils library
kandi X-RAY | VersaPlayer Summary
kandi X-RAY | VersaPlayer Summary
Versatile Video Player implementation for iOS, macOS, and tvOS
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of VersaPlayer
VersaPlayer Key Features
VersaPlayer Examples and Code Snippets
Community Discussions
Trending Discussions on VersaPlayer
QUESTION
Im trying to use Versaplayer framework to Play a video using it , i used this code
@IBOutlet weak var playerView: VersaPlayerView! @IBOutlet weak var controls: VersaPlayerControls override func viewDidLoad() { super.viewDidLoad() playerView.use(controls: controls) if let url = URL.init(string: "http://rmcdn.2mdn.net/Demo/html5/output.mp4") { let item = VersaPlayerItem(url: url) playerView.set(item: item) } }
But when i add this playerView.use(controls: controls)
I have an error because all of controls are nil ! It seems that I misunderstood of how can i add controls right.
Can anyone help me to figure out how can i add controls to my video player. And here’s the repo it have a deep details ,
...ANSWER
Answered 2020-Sep-18 at 04:28Your code seems to correct. I think the outlet connection you took is not in right way.
Step 1: Copy the versacontrol view from example provided by them and add it to your storyboard.
Step 2: Connect your outlet to the view you added in your storyboard.
I am attaching images please check.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install VersaPlayer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page