void PlayerContext::StopEmbedding(void) { LockDeletePlayer(__FILE__, __LINE__); if (player) player->StopEmbedding(); UnlockDeletePlayer(__FILE__, __LINE__); }
bool PlayerContext::IsEmbedding(void) const { bool ret = false; LockDeletePlayer(__FILE__, __LINE__); if (player) ret = player->IsEmbedding(); UnlockDeletePlayer(__FILE__, __LINE__); return ret; }
bool PlayerContext::StartEmbedding(WId wid, const QRect &embedRect) { bool ret = false; LockDeletePlayer(__FILE__, __LINE__); if (player) { ret = true; player->EmbedInWidget(embedRect); } UnlockDeletePlayer(__FILE__, __LINE__); return ret; }
/** * \brief Resize PIP Window */ void PlayerContext::ResizePIPWindow(const QRect &rect) { if (!IsPIP()) return; QRect tmpRect; if (pipState == kPIPStandAlone) tmpRect = GetStandAlonePIPRect(); else tmpRect = QRect(rect); LockDeletePlayer(__FILE__, __LINE__); if (player && player->GetVideoOutput()) player->GetVideoOutput()->ResizeDisplayWindow(tmpRect, false); UnlockDeletePlayer(__FILE__, __LINE__); pipRect = QRect(rect); }
bool PlayerContext::StartEmbedding(WId wid, const QRect &embedRect) { embedWinID = 0; LockDeletePlayer(__FILE__, __LINE__); if (player) { embedWinID = wid; embedBounds = embedRect; player->EmbedInWidget( embedRect.topLeft().x(), embedRect.topLeft().y(), embedRect.width(), embedRect.height(), embedWinID); } UnlockDeletePlayer(__FILE__, __LINE__); return embedWinID; }