Skip to content

Commit

Permalink
chore: Change DashCast image URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
skorokithakis committed Jul 31, 2022
1 parent 740a622 commit e30fa5c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

### Fixes

* Change DashCast app ID. [Stavros Korokithakis]

* Fix discovery function in the API (#406) [Scott Moreau]


Expand Down
4 changes: 2 additions & 2 deletions catt_receiver/error.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<html>
<style>
div{
div{
padding: 10px;
width: 80%;
margin: auto;
Expand All @@ -15,4 +15,4 @@
</style>
<body>
<div>This site does not support dashboard display.<br/>This problem is often fixed by selecting the "Force Display" option.</div>
</body>
</body>
12 changes: 6 additions & 6 deletions catt_receiver/receiver.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
color: #555;
font-weight: bold;
height: 1.2em;
text-align: center;
text-align: center;
padding: 10px;
background: rgba(32, 27, 37, 0.9);
z-index: 10;
Expand All @@ -50,7 +50,7 @@
#status.empty {
opacity: 0;
}

iframe {
position: absolute;
left: 0; top: 0; right: 0; bottom: 0;
Expand All @@ -68,7 +68,7 @@
</style>
</head>
<body id="dcast">

<div id="main" class="fade">
<iframe id="if1"></iframe>
<iframe id="if2"></iframe>
Expand All @@ -87,7 +87,7 @@
const loadRequestData = new cast.framework.messages.LoadRequestData();
loadRequestData.autoplay = true;
loadRequestData.media = new cast.framework.messages.MediaInformation();
loadRequestData.media.contentId = "https://swiergot.github.io/dashcast/loading.png";
loadRequestData.media.contentId = "https://catt.stavros.io/loading.png";
loadRequestData.media.contentType = "image/jpeg";
loadRequestData.media.streamType = cast.framework.messages.StreamType.NONE;
const metadata = new cast.framework.messages.GenericMediaMetadata();
Expand Down Expand Up @@ -137,7 +137,7 @@

if2.onload = if1.onload = function(e){
var the_if = this;
if (the_if.src.indexOf("dashcast_is_error_page_zz") > 0) {
if (the_if.src.indexOf("dashcast_is_error_page_zz") > 0) {
the_if.src = the_if.getAttribute("target-src");
return;
}
Expand Down Expand Up @@ -211,7 +211,7 @@
// initialize the CastReceiverContext with options
window.castReceiverContext.start(options);
};

</script>
</body>
</html>

0 comments on commit e30fa5c

Please sign in to comment.