Search found 6 matches

Go to advanced search

by maleev
21 Dec 2009 14:54
Forum: Development around libVLC
Topic: Problems embedding VLC in Qt-Widget on MacOS
Replies: 14
Views: 9233

Re: Problems embedding VLC in Qt-Widget on MacOS

Hi, I haven't been working for that project for a while. But, though I don't really remember what exactly fixed some of the problems, I will post some code from the libvlc wrapper that seemed to work well. Constructor VLCPlayer::VLCPlayer() : QWidget() { const char * const vlc_args[] = { "-I&qu...
by maleev
20 Jul 2009 11:25
Forum: Development around libVLC
Topic: Problems embedding VLC in Qt-Widget on MacOS
Replies: 14
Views: 9233

Re: Problems embedding VLC in Qt-Widget on MacOS

Problem with hanging is fixed by making 'lib' and 'modules' symbolic links to respective directories in <Application bundle>/Contents/Frameworks/Versions/Current/ instead of duplicating libraries in the bundle (as it was done before in my test app) Now got segmentation fault on exiting the applicati...
by maleev
10 Jul 2009 20:38
Forum: Development around libVLC
Topic: Problems embedding VLC in Qt-Widget on MacOS
Replies: 14
Views: 9233

Re: Problems embedding VLC in Qt-Widget on MacOS

Can add that to the wiki ? (or ifdef it?) Well, I'd like too, BUT 1. It's not usable yet - After some testing it appeared that GUI gets irresponsive at all times (right after the video starts playing) Looks like Qt's misbehaving. 2. It seems like a hack, - and thus may have undesired implications (...
by maleev
10 Jul 2009 18:29
Forum: Development around libVLC
Topic: Problems embedding VLC in Qt-Widget on MacOS
Replies: 14
Views: 9233

Re: Problems embedding VLC in Qt-Widget on MacOS

Managed to embed video inside a Qt window. Here are the main changes to original sample code : main.cpp - | QFrame *_videoWidget; + | QMacCocoaViewContainer *_videoWidget; vlc_on_qt.mm (vlc_on_qt.cpp renamed) + | #undef slots + | // yes, otherwise there's a confilct in some framework's header file +...
by maleev
10 Jul 2009 16:49
Forum: Development around libVLC
Topic: Problems embedding VLC in Qt-Widget on MacOS
Replies: 14
Views: 9233

Re: Problems embedding VLC in Qt-Widget on MacOS

Some thoughts * Qt 4.5 now has got QMacCocoaViewContainer class, which can wrap any Cocoa NSView in a QWidget. Might that be useful? * I have a guess that libvlc_media_player_set_nsobject( .. void* .. ) expects a pointer not just to any NSView to render to, but to an instance of VLCOpenGLVoutView (/...
by maleev
06 Jul 2009 16:14
Forum: Development around libVLC
Topic: Problems embedding VLC in Qt-Widget on MacOS
Replies: 14
Views: 9233

Re: Problems embedding VLC in Qt-Widget on MacOS

I've got exactly the same problem that Benjamin describes.
( Except that when I removed macosx-plugin, I get another crash now in minimal_macosx, should probably try the 1.0.0 release candidate )

Go to advanced search