Page 1 of 1

Multiple Streams in one app

Posted: 30 Jan 2018 20:03
by netizen01
I'm working on a macOS app and have been trying to get libvlc to play multiple (4+) streams at the same time.
I know it's possible as OBS (Open Broadcaster Studio) can do it fine (for the most part), so it's something with how I'm constructing the vlc libraries / media players / media elements.

I've created a test harness app that isolates the issue:
https://github.com/netizen01/VLCFourUpTest

Any help with fixing up my libvlc initialization / library instantiation / threading issues / NSView configuration / etc. would be greatly appreciated (willing to PayPal some $ as well).

Thanks for any help!

Note: I've tried VLCKit and got the exact same issues, so I am using libvlc directly to eliminate any possible issues.

Re: Multiple Streams in one app

Posted: 31 Jan 2018 01:09
by netizen01
Thanks to ePirat on IRC he figured out that it's a bug / issue with CoreAnimation backed layers in the NSView and the way the OpenGL drawing was happening.
He's opened a bug report with Apple.
For now, if you run into a similar issue, disable (uncheck) the Core Animation backing in your view tree.

Re: Multiple Streams in one app

Posted: 18 Dec 2018 10:10
by rstardev016
Hi @netizen01

I have met the same problem as yours. Did you solve this problem now?
If yes, please help me!

Regards,

Re: Multiple Streams in one app

Posted: 28 Feb 2019 04:56
by ryaniguo
Hi @netizen01,

I also have the problem, regarding disable the Core Animation, do you mean set wantsLayer to false for each NSview?
If not, could you please show more details here?

Thanks very much.

-------------------------------------------------

Update:
Never mind, I found the Core Animation Layer section in View Effects inspector, and uncheck them, now it works.
Very helpful tips, thanks again.