mirror of
https://github.com/ONLYOFFICE/desktop-sdk.git
synced 2026-02-10 18:15:05 +08:00
Merge pull request 'Fix for missing video on win_arm64' (#48) from fix/libvlc-winarm64 into release/v9.2.0
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/desktop-sdk/pulls/48
This commit is contained in:
@ -589,10 +589,17 @@ QWidget* QAscVideoView::getMainWindow()
|
|||||||
void QAscVideoView::slotVideoAvailableChanged(bool isVideoAvailable)
|
void QAscVideoView::slotVideoAvailableChanged(bool isVideoAvailable)
|
||||||
{
|
{
|
||||||
if (m_pInternal->m_bIsPresentationMode && !m_pInternal->m_bIsPresentationModeMediaTypeSended)
|
if (m_pInternal->m_bIsPresentationMode && !m_pInternal->m_bIsPresentationModeMediaTypeSended)
|
||||||
{
|
{
|
||||||
|
#ifndef USE_VLC_LIBRARY
|
||||||
m_pInternal->m_bIsPresentationModeMediaTypeSended = true;
|
m_pInternal->m_bIsPresentationModeMediaTypeSended = true;
|
||||||
|
#endif
|
||||||
|
// for libVLC isAudio() may return `true` while the video is buffering,
|
||||||
|
// so this slot might be called several times
|
||||||
if (!m_pInternal->m_pPlayer->isAudio())
|
if (!m_pInternal->m_pPlayer->isAudio())
|
||||||
{
|
{
|
||||||
|
#ifdef USE_VLC_LIBRARY
|
||||||
|
m_pInternal->m_bIsPresentationModeMediaTypeSended = true;
|
||||||
|
#endif
|
||||||
this->show();
|
this->show();
|
||||||
Footer()->show();
|
Footer()->show();
|
||||||
// raise all widgets in order to prevent weird behavior with footer being rendered above the video but still being inactive
|
// raise all widgets in order to prevent weird behavior with footer being rendered above the video but still being inactive
|
||||||
|
|||||||
Reference in New Issue
Block a user