Postby guenther » 29 Nov 2013 17:35
I managed to write a little Qt (5.2) application integrating libVlc for Android. The VLC media player can play a file stored on my Android device, but the actual picture is only displayed when I use callbacks and print each picture into some QWidget manually.
I'm looking for a way to let VLC paint the picture directly to some QWidget. For Windows, MacOS or Linux, one has to simply specify:
#ifdef Q_OS_WIN
libvlc_media_player_set_hwnd (_mp, (void *)winId());
#elif defined Q_OS_MAC
libvlc_media_player_set_nsobject(_mp, (void *)winId());
#else
libvlc_media_player_set_xwindow(_mp, winId());
#endif
How can that be done for Android?