[vlc-devel] VLCKit

Mike Schrag mschrag at pobox.com
Tue Sep 22 02:33:33 CEST 2009


Yeah this is basically what I did, but I get audio and no video.   
Maybe I'm naively using the API, but:

_videoLayer = [[VLCVideoLayer alloc] init];
_videoLayer.frame = NSRectToCGRect(self.bounds);
_mediaPlayer = [[VLCMediaPlayer alloc] initWithVideoLayer:_videoLayer];
[self.layer addSublayer:_videoLayer];
[_mediaPlayer play];

In VLCLibrary, I hardcoded vout=opengllayer.  It appears that when I  
use opengllayer that addVoutLayer is never called ... I'm off to look  
into the impl of opengllayer, but has anyone actually ever seen this  
work at all?

ms

On Sep 21, 2009, at 6:25 AM, Pierre d'Herbemont wrote:

> Hi Mike,
>
> Layer mode doesn't work well. There might be some room for  
> optimization or work around, however it has some severe limitation  
> on leopard, such as being rendered on the main thread when using  
> public api.
>
> To turn it on you may want to force the openglvideolayer vout in  
> VLCLibrary.m.
>
> Pierre
>
> On Sep 21, 2009, at 9:16 AM, Mike Schrag <mschrag at pobox.com> wrote:
>
>> I've attempting to embed VLCKit in an app built on Snow Leopard and  
>> I've run into some issues.
>>
>> If I use VLCVideoView with a non-layer-backed parent view, it works  
>> properly. However, I would much rather use the VLCVideoLayer. Out- 
>> of-the-box, using VLCVideoLayer fails because the vout impl is not  
>> the CA OpenGL Layer one (it tries to call addVoutSubview on the  
>> VLCVideoLayer and explodes). If I modify VLCLibrary to use  
>> opengllayer as the vout, I don't get the error, but I only get  
>> audio and no video playback.
>>
>> Does anyone know what the proper configuration is to get  
>> VLCVideoLayer to show video?
>>
>> Thanks!
>> Mike Schrag
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> http://mailman.videolan.org/listinfo/vlc-devel
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel





More information about the vlc-devel mailing list