Apply Router Gray's Media Remote Controls for CEF hack.

This commit is contained in:
Lirusaito
2017-01-13 02:01:30 -05:00
parent 0bc98aad3b
commit 6707e481de

View File

@@ -192,7 +192,7 @@ void LLMediaRemoteCtrl::enableMediaButtons()
play_media_enabled = true;
media_icon_color = LLUI::sColorsGroup->getColor( "IconEnabledColor" );
/* <HACK: Temporary fix until I know how to correctly catch messages from CEF. - Router Gray>
LLViewerMediaImpl::EMediaStatus status = LLViewerParcelMedia::getStatus();
switch(status)
{
@@ -216,6 +216,18 @@ void LLMediaRemoteCtrl::enableMediaButtons()
// inherit defaults above
break;
}
*/
if (LLViewerMedia::isParcelMediaPlaying())
{
stop_media_enabled = true;
play_media_enabled = false;
}
else
{
stop_media_enabled = false;
play_media_enabled = true;
}
// </HACK - Router Gray>
}
}