chromecast - 摆脱红色覆盖的css" SAMPLE"

时间:2014-05-01 16:30:29

标签: android css chromecast

我调试了与版本2 player.js(0002 / player.js)一起使用的css,并找到了我想从我的默认接收器中删除的RED Overlay下面的CSS。

来自player.css的

#player[type="video"][state="idle"]:after {
  content: "SAMPLE";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  bottom: 0;
  text-align: center;
  font-size: 50px;
  margin-top: -150px;
  opacity: 0.1;
  color: red;
}

当默认的player.js循环通过状态[IDLE PLAY BUFFER]时,显示红色透明覆盖,“SAMPLE”。

当我玩自己的mp4时,我想摆脱这个功能。

所以,我删除了上面的违规css并且我托管了没有红色样本的新css文件。

我访问了“Google Cast SDK”的开发控制台,并将自定义样式更改为我托管的CSS文件的URL。

我等了4个小时。

我重新启动了chromecast设备。

我在设备的调试器控制台中手动重新加载窗口。

而且,我仍然看到带有红色SAMPLE的旧CSS。

我需要更改什么来摆脱与默认接收器一起使用的player.js上的CSS?

下面是我的Android应用程序在chromecast设备的调试器中加载的html。

<html><head>
    <title>Cast Media Player</title>
    <link rel="stylesheet" href="0002/player.css">
    <script type="text/javascript" src="0002/player.js"></script><link rel="stylesheet" type="text/css" href="https://storage.googleapis.com/gtv-videos-bucket/receivers/f742e4109ea711e3a5e20800200c9a66/style.css">
    <script type="text/javascript" src="//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js"></script>
    <script type="text/javascript" src="//www.gstatic.com/cast/sdk/libs/mediaplayer/0.3.0/media_player.js"></script>
  </head>
  <body>
    <div id="player" class="gcpa" type="video" state="playing"><div class="background"></div><div class="gcpb" style=""><video style="background-image: none;" src="http://....0685/fade0569-bd5b-4cc2-a05d-85cb24860c56-20140430101403.mp4"></video><div class="logo"></div><div class="gcpr"></div><div class="splash"></div><div class="watermark"></div><div class="gcpc"></div><div class="gcpd"><div class="gcph"><div class="gcpg" style="background-image: url(http://.....ecb7c32-me1563624197.jpg);"></div><div class="gcpf"><div class="gcpi">the light the Divinity t</div><div class="gcpj"><div><span>robrowntree</span></div><div><span>the light the Divinity the absolute poise Aaron rumpled beds at morning </span></div></div></div></div><div class="gcpk"><span class="gcpl"></span><span class="gcpp">00:08</span><span class="gcpq">00:10</span><div class="gcpm"><div class="gcpn progressBar" style="width: 80%;"></div><div class="gcpo" style="left: 80%;"></div></div></div></div></div><div class="message"></div></div>
    <script>
      var playerDiv = document.querySelector("#player");
      new castplayer.CastPlayer(playerDiv).start();
    </script>


</body></html>

2 个答案:

答案 0 :(得分:10)

如果使用applicationId“CC1AD845”,则删除SAMPLE。

这是默认的应用程序ID,由常量CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID定义。

答案 1 :(得分:4)

我不清楚这里的问题是什么。如果您使用“默认接收器”或您自己的样式接收器,则根本不会有SAMPLE水印;如果您使用CastVideos应用程序正在使用的接收器,您将看到大红色水印(您将无法删除)。

相关问题