Apply Router Gray's Media Remote Controls for CEF hack.
This commit is contained in:
@@ -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>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user