mschrag at pobox.com
Tue Sep 22 04:50:01 CEST 2009
Looks like openggllayer.m expects drawable-gl to be set to the
VLCVideoView for video to be bound to the view, but I don't see
anything that actually sets that value. If I force the value down in
opengllayer to find my view, it works. Bear with me -- I'm a total
VLC dev newbie ... Anyone happen to know the proper way to actually
set this from within VLCKit? I have a vlc pointer in there, but I
don't know how to get ahold of the p_vout that i need to set the
On Sep 21, 2009, at 8:33 PM, Mike Schrag wrote:
> 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]
> [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?
> 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
>> 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?
>>> Mike Schrag
>>> vlc-devel mailing list
>>> To unsubscribe or modify your subscription options:
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
More information about the vlc-devel