JA
apps/winzik / tools / cast-receiver.php · commit 6576d6f
<?php// Writes site/cast/receiver.html (WinZik's Google Cast receiver: the TV page with the Cast transport) from// assets/cast/tv.html. Run it after changing the TV page: bin/jumphp php apps/winzik tools/cast-receiver.php// (tests/CastTest.php checks they are the same). The page is then hosted on HTTPS for a Cast App ID (AGENTS.md "Cast").require __DIR__ . '/../src/Cast/TvPage.php';$file = App\Cast\TvPage::receiverFile();@mkdir(dirname($file), 0777, true);file_put_contents($file, App\Cast\TvPage::html('cast'));echo "$file\n";