Multiple Streams in one app

This forum is about all development around libVLC.
netizen01
New Cone
New Cone
Posts: 2
Joined: 30 Jan 2018 19:58

Multiple Streams in one app

Postby netizen01 » 30 Jan 2018 20:03

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.

netizen01
New Cone
New Cone
Posts: 2
Joined: 30 Jan 2018 19:58

Re: Multiple Streams in one app

Postby netizen01 » 31 Jan 2018 01:09

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.

rstardev016
New Cone
New Cone
Posts: 1
Joined: 18 Dec 2018 10:02

Re: Multiple Streams in one app

Postby rstardev016 » 18 Dec 2018 10:10

Hi @netizen01

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

Regards,

ryaniguo
New Cone
New Cone
Posts: 1
Joined: 28 Feb 2019 04:44

Re: Multiple Streams in one app

Postby ryaniguo » 28 Feb 2019 04:56

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 29 guests