Permalink
Browse files

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

  • Loading branch information...
1 parent 0bc98aa commit 6707e481de214e74afd90ca3ac5c810bc079cb3f @Lirusaito Lirusaito committed Jan 13, 2017
Showing with 13 additions and 1 deletion.
  1. +13 −1 indra/newview/llmediaremotectrl.cpp
@@ -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>
}
}

0 comments on commit 6707e48

Please sign in to comment.