Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ofAVFoundationPlayer doesn't work with network stream #5679

Open
alesaccoia opened this issue Jun 29, 2017 · 5 comments
Open

ofAVFoundationPlayer doesn't work with network stream #5679

alesaccoia opened this issue Jun 29, 2017 · 5 comments

Comments

@alesaccoia
Copy link

I have tested with http (JPEG) and RTSP (h264), and I always get the error:
error loading asset tracks: The operation could not be completed
Did anybody manage to get video from an IP camera or an HTTP stream?

@alesaccoia
Copy link
Author

I have delved a bit in the ofAVFoundationPlayer code, comparing the code with the WWDC slides:
http://docs.huihoo.com/apple/wwdc/2010/session_405__discovering_av_foundation.pdf

For a stream, the AVAsset shouldn't be used but it's exposed by an AVPlayerItem instantiated with
AVPlayer *player = [AVPlayer playerWithURL:streamURL]

if someone will confirm that issue exists, I can work on this.
you can test for example with the URL
http://195.200.199.8/axis-cgi/mjpg/video.cgi?resolution=320x240

@bakercp
Copy link
Member

bakercp commented Jun 29, 2017

If you want to view mjpg streams you might check out ofxIpVideoGrabber https://github.com/bakercp/ofxIpVideoGrabber

@bakercp
Copy link
Member

bakercp commented Jun 29, 2017

Also, what version of oF are you using? I believe Streaming was added in the master branch recently.

@alesaccoia
Copy link
Author

alesaccoia commented Jun 29, 2017

Thanks for that, unfortunately I have already tried ofxIpVideoGrabber but doesn't work with the RTSP h264 streams that is what I actually need... http mjpg was just an extra test I did to open this issue.
And, I am using the master branch... for streaming you mean with ofVideoPlayer? it doesn't work out of the box for me, at least with the AVFoundation implementation (on Sierra 10.12)

@alesaccoia
Copy link
Author

for future reference, I gave up with the RTSP stream using AVFoundation, it only seem to support HTTP Live Streaming (HLS)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants