Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

ofVideoPlayer.load and .loadMovie problems when streaming

$
0
0

Attending to this: https://developer.apple.com/library/prerelease/ios/documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/02_Playback.html Looks like you need to call specific constructor when using a URL:

If you simply want to play a live stream, you can take a shortcut and create a player directly using the URL use the following code:

self.player = [AVPlayer playerWithURL:<#Live stream URL#>]; [player addObserver:self forKeyPath:@"status" options:0 context:&PlayerStatusContext]; Is this built on OFv0.9? I have checked the ofAVFoundationVideoPlayer.h file and there is a reference to loadWithURL and looking the .m makes me think about the Option passed, but that starts to get fuzzy for my -lack of-knowledge :frowning:


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>