Some code:
Code: Select all
_m = libvlc_media_new (_vlcinstance, song.toUtf8().data(), &_vlcexcep);
libvlc_media_player_set_media (_mp, _m, &_vlcexcep);
libvlc_media_player_play (_mp, &_vlcexcep );
Code: Select all
_m = libvlc_media_new (_vlcinstance, song.toUtf8().data(), &_vlcexcep);
libvlc_media_player_set_media (_mp, _m, &_vlcexcep);
libvlc_media_player_play (_mp, &_vlcexcep );
I get empty string._m = libvlc_media_new (_vlcinstance, song.toUtf8().data(), &_vlcexcep);
libvlc_media_player_set_media (_mp, _m, &_vlcexcep);
libvlc_media_player_play (_mp, &_vlcexcep );
qDebug() << libvlc_media_player_get_state(_mp, &_vlcexcep);
I'll get normally output.sleep(1);
qDebug() << libvlc_media_player_get_state(_mp, &_vlcexcep);
Return to “Development around libVLC”
Users browsing this forum: No registered users and 12 guests