Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRidings committed Mar 12, 2017
1 parent ac3b370 commit 2ce5d26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CCBaseSender.php
Expand Up @@ -20,13 +20,13 @@ public function launch() {
// Grab the appid
preg_match("/\"appId\":\"([^\"]*)/",$s,$m);
$appid = $m[1];
if ($appid == "CC1AD845") {
if ($appid == $this->appid) {
// Default Media Receiver is live
$this->chromecast->getStatus();
$this->chromecast->connect();
} else {
// Default Media Receiver is not currently live, start it.
$this->chromecast->launch("CC1AD845");
$this->chromecast->launch($this->appid);
$this->chromecast->transportid = "";
$r = "";
while (!preg_match("/Ready to Cast/",$r) && !preg_match("/Default Media Receiver/",$r)) {
Expand Down
1 change: 1 addition & 0 deletions CCDefaultMediaPlayer.php
Expand Up @@ -6,6 +6,7 @@

class CCDefaultMediaPlayer extends CCBaseSender
{
public $appid="CC1AD845";

public function play($url,$streamType,$contentType,$autoPlay,$currentTime) {
// Start a playing
Expand Down

0 comments on commit 2ce5d26

Please sign in to comment.