STDMETHODIMP VLCVideo::put_fullscreen(VARIANT_BOOL fullscreen) { libvlc_media_player_t *p_md; HRESULT hr = getMD(&p_md); if( SUCCEEDED(hr) ) { libvlc_set_fullscreen(p_md, VARIANT_FALSE != fullscreen); } return hr; };
void mediacontrol_set_fullscreen( mediacontrol_Instance *self, const int b_fullscreen, mediacontrol_Exception *exception ) { libvlc_exception_t ex; mediacontrol_exception_init( exception ); libvlc_exception_init( &ex ); libvlc_set_fullscreen( self->p_media_player, b_fullscreen, &ex ); HANDLE_LIBVLC_EXCEPTION_VOID( &ex ); }
Player::Player() : QWidget() { #ifdef Q_WS_X11 videoWidget=new QX11EmbedContainer(this); #else videoWidget=new QFrame(this); #endif isPlaying = false; inPause = false; this->setStyleSheet("background-color: black"); poller=new QTimer(this); connect(poller, SIGNAL(timeout()), this, SLOT(updateInterface())); poller->start(100); vlcInstance=libvlc_new(0, NULL); mediaPlayer = libvlc_media_player_new (vlcInstance); /*Fullscreen + FramelessWindow to hide bord;*/ libvlc_set_fullscreen(mediaPlayer, true); setWindowFlags(Qt::FramelessWindowHint); }
void VlcPlugin::set_fullscreen( int yes, libvlc_exception_t *ex ) { if( playlist_isplaying(ex) ) libvlc_set_fullscreen(libvlc_media_player,yes,ex); }
void VlcPluginMac::set_fullscreen(int yes) { if (!get_options().get_enable_fs()) return; if (playlist_isplaying()) libvlc_set_fullscreen(getMD(), yes); }