static void clutter_vlc_set_playing(ClutterVlcVideoTexture* video_texture, gboolean playing) { ClutterVlcVideoTexturePrivate* priv; priv = video_texture->priv; if (priv->vlc_instance == NULL) return; if (priv->uri == NULL) return; if (priv->vlc_media_player == NULL) return; if (playing == FALSE) { libvlc_media_player_pause(priv->vlc_media_player, &priv->vlc_exception); } else { libvlc_media_player_play(priv->vlc_media_player, &priv->vlc_exception); } clutter_vlc_catch(&priv->vlc_exception); g_object_notify(G_OBJECT(video_texture), "playing"); g_object_notify(G_OBJECT(video_texture), "progress"); }
void VLCVideoWidgetDelegator::pause(){ if( m_player != Nullptr ){ m_hasPaused = !false; m_isPlaying = false; libvlc_media_player_pause ( m_player ) ; } }
void xmr_player_pause(XmrPlayer *player) { g_return_if_fail(player != NULL); libvlc_media_player_pause(player->priv->player); }
void VPlayer::play() { if(mp){ if(state==Stop){ libvlc_media_track_info_t *info; libvlc_media_parse(m); int i=libvlc_media_get_tracks_info(m,&info); for(--i;i>=0;--i){ if(info[i].i_type==libvlc_track_video){ srcSize.setWidth (info[i].u.video.i_width); srcSize.setHeight(info[i].u.video.i_height); } } free(info); dstSize=srcSize; avpicture_alloc(&srcFrame,PIX_FMT_RGB32,srcSize.width(),srcSize.height()); avpicture_alloc(&dstFrame,PIX_FMT_RGB32,dstSize.width(),dstSize.height()); valid=true; libvlc_video_set_format(mp,"RV32",srcSize.width(),srcSize.height(),srcSize.width()*4); libvlc_video_set_callbacks(mp,lock,NULL,display,this); Utils::delayExec(50,[this](){libvlc_media_player_play(mp);}); } else{ libvlc_media_player_pause(mp); if(state==Play){ state=Pause; emit paused(); } else{ state=Play; } } } }
void VideoWindow::pausePlayback() { if (!m) return; // ignore if no media selected // stop playback & wipe player libvlc_media_player_pause (mp); }
void CAVPlayer::Pause() { if (m_pVLC_Player) { libvlc_media_player_pause(m_pVLC_Player); } }
void VlcVideoWidget::Pause() { if (!vlcPlayer_) return; if (libvlc_media_player_can_pause(vlcPlayer_)) libvlc_media_player_pause(vlcPlayer_); }
void CAVPlayer::Pause() { if (m_pVLC_Player) { libvlc_media_player_pause(m_pVLC_Player); m_bStatus = em_pause; } }
void Transcode::cancelTranscode() { m_timer->stop(); libvlc_media_player_pause( m_vlcMp, &m_vlcEx ); catchVLCException( &m_vlcEx ); m_releaseVLCRessources(); delete m_progress; delete m_timer; m_running = false; }
void VideoWindow::resumePlayback() { if (!m) return; // ignore if no media selected // stop playback & wipe player if(m_MediaChanged) startPlayback(); else libvlc_media_player_pause (mp); }
void Java_org_videolan_libvlc_MediaPlayer_pause(JNIEnv *env, jobject thiz) { vlcjni_object *p_obj = VLCJniObject_getInstance(env, thiz); if (!p_obj) return; libvlc_media_player_pause(p_obj->u.p_mp); }
STDMETHODIMP VLCPlaylist::togglePause() { libvlc_media_player_t* p_md; HRESULT hr = getMD(&p_md); if( SUCCEEDED(hr) ) { libvlc_media_player_pause(p_md); } return hr; };
void VlcMediaPlayer::pause() { if (!_vlcMediaPlayer) return; if (libvlc_media_player_can_pause(_vlcMediaPlayer)) libvlc_media_player_pause(_vlcMediaPlayer); VlcError::errmsg(); }
/************************************************************************** * Pause (Public) **************************************************************************/ void libvlc_media_list_player_pause(libvlc_media_list_player_t * p_mlp, libvlc_exception_t * p_e) { lock(p_mlp); if (!p_mlp->p_mi) { unlock(p_mlp); return; } libvlc_media_player_pause(p_mlp->p_mi, p_e); unlock(p_mlp); }
/************************************************************************** * Pause (Public) **************************************************************************/ void libvlc_media_list_player_pause(libvlc_media_list_player_t * p_mlp) { lock(p_mlp); if (!p_mlp->p_mi) { unlock(p_mlp); return; } libvlc_media_player_pause(p_mlp->p_mi); unlock(p_mlp); }
void mediacontrol_resume( mediacontrol_Instance *self, mediacontrol_Exception *exception ) { libvlc_exception_t ex; mediacontrol_exception_init( exception ); libvlc_exception_init( &ex ); libvlc_media_player_pause( self->p_media_player, &ex ); HANDLE_LIBVLC_EXCEPTION_VOID( &ex ); }
void CPlayer::pause() { LOG4CPLUS_TRACE_METHOD(msLogger, __PRETTY_FUNCTION__); if (hasPlayerInstance) { mMutex->lockWrite(); libvlc_media_player_pause(mMediaPlayer); mMutex->unlockWrite(); } }
void player::pause() { // libvlc_media_player_set_pause(mp,pause()); // pause(); if (mp && libvlc_media_player_is_playing(mp)) {// if player is initialize pause player libvlc_media_player_pause(mp); dataObject ob; ob.object = "player"; ob.msg = "play"; // Notify(ob); } else { // exit(EXIT_FAILURE); } }
int libvlc_pause(int nameId) { int result = 0; CHECK_NAMEID(nameId); if (libvlc_media_player_is_playing(soundPlay[nameId]) == 0) { result = libvlc_media_player_play(soundPlay[nameId]); } else { libvlc_media_player_pause(soundPlay[nameId]); } return result; }
void VideoWindow::pausePlayback() { #ifdef GC_VIDEO_VLC if (!m) return; // ignore if no media selected // stop playback & wipe player libvlc_media_player_pause (mp); #endif #ifdef GC_VIDEO_QT5 mp->pause(); #endif }
void VLCMainwindow::play() { if(vlcPlayer) { if (libvlc_media_player_is_playing(vlcPlayer)) { libvlc_media_player_pause(vlcPlayer); playBut->setText("Play"); } else { libvlc_media_player_play(vlcPlayer); playBut->setText("Pause"); } } }
void VideoWindow::resumePlayback() { #ifdef GC_VIDEO_VLC if (!m) return; // ignore if no media selected // stop playback & wipe player if(m_MediaChanged) startPlayback(); else libvlc_media_player_pause (mp); #endif #ifdef GC_VIDEO_QT5 mp->play(); #endif }
void Mwindow::play() { if (!vlcPlayer) return; if (libvlc_media_player_is_playing(vlcPlayer)) { /* Pause */ libvlc_media_player_pause(vlcPlayer); playBut->setText("Play"); } else { /* Play again */ libvlc_media_player_play(vlcPlayer); playBut->setText("Pause"); } }
void PlayerEngine_vlc::playState(){ if (!vlcPlayer) return; if (libvlc_media_player_is_playing(vlcPlayer)) { /* Pause */ libvlc_media_player_pause(vlcPlayer); } else { /* Play again */ libvlc_media_player_play(vlcPlayer); } }
bool VLCVideoWrapper::pause(void) { // check if the player can be paused if(libvlc_media_player_can_pause(_MediaPlayer)) { // can pause it? do it libvlc_media_player_pause(_MediaPlayer); // error checking of course checkVLCError("pausing"); } if(isPaused()) { producePaused(); return true; } else { return false; } }
void VideoWidget::pause() { libvlc_media_player_pause(mp); }
void MediaPlayer::pause() { libvlc_media_player_pause(vlcMediaPlayer); }
void Java_org_videolan_libvlc_LibVLC_pause(JNIEnv *env, jobject thiz) { libvlc_media_player_t *mp = getMediaPlayer(env, thiz); if (mp) libvlc_media_player_pause(mp); }
/************************************************************************** * Pause (Public) **************************************************************************/ void libvlc_media_list_player_pause(libvlc_media_list_player_t * p_mlp) { lock(p_mlp); libvlc_media_player_pause(p_mlp->p_mi); unlock(p_mlp); }
void VLCWrapper::pause () { libvlc_media_player_pause (Player_.get ()); }