Device List showing up when Button is clicked but only displaying a white screen on selected casting deviceWhy does calling chrome.cast.initialize break the connection to the Chromecast device?How do I send a message from custom receiver to sender app with Chromecast?How can I cast an HTML page with the Google Cast Chrome extension?Custom Receiver fails to launch correctlyChromecast sample sender application CastHelloText-chrome ends with error when trying to get sessionHow to get systemjs to load module from CDN that is in global format?javascript library not loaded in ionicCan't load cast_framework.js on Chrome SenderReceiver application not getting closed when user click cast button to disconnect in android sender appGoogle Cast custom receiver timing out

Why did my folder names end up like this, and how can I fix this using a script?

How were medieval castles built in swamps or marshes without draining them?

Is this password scheme legit?

Tex Quotes(UVa 272)

How do I feed my black hole?

Number of academics in various EU countries

How to get trace to get a cylinder when I rotate a rectangle?

Is it legal for source code containing undefined behavior to crash the compiler?

Gambler coin problem: fair coin and two-headed coin

Convergence of series of normally distributed random variables

Rent contract say that pets are not allowed. Possible repercussions if bringing the pet anyway?

How is linear momentum conserved in case of a freely falling body?

What are the occurences of total war in the Native Americans?

How many lines of code does the original TeX contain?

Adoption records in 1871 based on census info

Thought experiment and possible contradiction between electromagnetism and special relativity

Half filled water bottle

Joining lists with same elements

Breaker Mapping Questions

Given current technology, could TV display screens double as video camera sensors?

Prevent use of CNAME record for untrusted domain

What is the meaning of “these lederhosen are riding up my Bundesliga”?

How many birds in the bush?

How should i charge 3 lithium ion batteries?



Device List showing up when Button is clicked but only displaying a white screen on selected casting device


Why does calling chrome.cast.initialize break the connection to the Chromecast device?How do I send a message from custom receiver to sender app with Chromecast?How can I cast an HTML page with the Google Cast Chrome extension?Custom Receiver fails to launch correctlyChromecast sample sender application CastHelloText-chrome ends with error when trying to get sessionHow to get systemjs to load module from CDN that is in global format?javascript library not loaded in ionicCan't load cast_framework.js on Chrome SenderReceiver application not getting closed when user click cast button to disconnect in android sender appGoogle Cast custom receiver timing out






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have two sets of code.. my receiver and my sender application. I am still new to this and it has been giving me so many issues. First and for most I am on an older chrome version which is how my application is running.
When I click to cast a given application the device list does drop down but when I click to cast to a device I only get a white screen on the TV attached to that chrome cast and then after a minute or so the application stops casting and gives me the "failed to cast" error message.



From my understanding the index.html file is where I have all the js script that initializes the API, and requests the session on the receiver code is where I have all this code:



<div id="containerDiv" ></div>
<div id="messageDiv"></div>
<script type="text/javascript"
src="//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js"/>
<!-- -
<script type="text/javascript"
src="//www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js"></script>
//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js
<!--

<script type="text/javascript" src="jsdebug.js"></script> -->
<script type="text/javascript">
window.onload = function()
cast.receiver.logger.setLevelValue(0);
window.castReceiverManager = cast.framework.CastReceiverContext.getInstance();
console.log('Starting Receiver Manager');

// handler for the 'ready' event
castReceiverManager.onReady = function(event)
console.log('Received Ready event: '
+ JSON.stringify(event.data));
window.castReceiverManager
.setApplicationState("Application status is ready...");
;

// handler for 'senderconnected' event
castReceiverManager.onSenderConnected = function(event)
console.log('Received Sender Connected event: ' + event.data);
console
.log(window.castReceiverManager.getSender(event.data).userAgent);
;

// handler for 'senderdisconnected' event
castReceiverManager.onSenderDisconnected = function(event)
console
.log('Received Sender Disconnected event: '
+ event.data);
if (window.castReceiverManager.getSenders().length == 0)
window.open();

;

// handler for 'systemvolumechanged' event
castReceiverManager.onSystemVolumeChanged = function(event)
console.log('Received System Volume Changed event: '
+ event.data['level'] + ' ' + event.data['muted']);
;

// create a CastMessageBus to handle messages for a custom namespace
window.messageBus = window.castReceiverManager
.getCastMessageBus('urn:x-cast:com.theWebsite');

// handler for the CastMessageBus message event
window.messageBus.onMessage = function(event)
console.log('Message [' + event.senderId + ']: ' + event.data);

// display the message from the sender
displayText(event.data);
// inform all senders on the CastMessageBus of the incoming message event
// sender message listener will be invoked
window.messageBus.send(event.senderId, event.data);


// initialize the CastReceiverManager with an application status message
window.castReceiverManager.start(
statusText : "Application is starting"
);
console.log('Receiver Manager started');
;

// utility function to display the text message in the input field
function displayText(text)
console.log(text);
panelSetup(text);
//document.getElementById("messagePanelDiv").innerHTML = text;
//$$('#messagePanelDiv').set('html', text);
window.castReceiverManager.setApplicationState(text);
;
</script>
</body>


What is the issue here because I believe my index.html page is working fine because I am making a connection otherwise I would not be able to see the device list when I click on the button to cast the file. But the connection is not going all the way through, meaning it never actually connects. It says its connecting and a minute or so later it says it has not connected.



Essentially i'd like to know if I check the receiver code? or would it be my index file that is just not initializing the API correctly?
I also do have the both new and old library connected, I thought the new libar would help but isn't



Any suggestions help.










share|improve this question
































    0















    I have two sets of code.. my receiver and my sender application. I am still new to this and it has been giving me so many issues. First and for most I am on an older chrome version which is how my application is running.
    When I click to cast a given application the device list does drop down but when I click to cast to a device I only get a white screen on the TV attached to that chrome cast and then after a minute or so the application stops casting and gives me the "failed to cast" error message.



    From my understanding the index.html file is where I have all the js script that initializes the API, and requests the session on the receiver code is where I have all this code:



    <div id="containerDiv" ></div>
    <div id="messageDiv"></div>
    <script type="text/javascript"
    src="//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js"/>
    <!-- -
    <script type="text/javascript"
    src="//www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js"></script>
    //www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js
    <!--

    <script type="text/javascript" src="jsdebug.js"></script> -->
    <script type="text/javascript">
    window.onload = function()
    cast.receiver.logger.setLevelValue(0);
    window.castReceiverManager = cast.framework.CastReceiverContext.getInstance();
    console.log('Starting Receiver Manager');

    // handler for the 'ready' event
    castReceiverManager.onReady = function(event)
    console.log('Received Ready event: '
    + JSON.stringify(event.data));
    window.castReceiverManager
    .setApplicationState("Application status is ready...");
    ;

    // handler for 'senderconnected' event
    castReceiverManager.onSenderConnected = function(event)
    console.log('Received Sender Connected event: ' + event.data);
    console
    .log(window.castReceiverManager.getSender(event.data).userAgent);
    ;

    // handler for 'senderdisconnected' event
    castReceiverManager.onSenderDisconnected = function(event)
    console
    .log('Received Sender Disconnected event: '
    + event.data);
    if (window.castReceiverManager.getSenders().length == 0)
    window.open();

    ;

    // handler for 'systemvolumechanged' event
    castReceiverManager.onSystemVolumeChanged = function(event)
    console.log('Received System Volume Changed event: '
    + event.data['level'] + ' ' + event.data['muted']);
    ;

    // create a CastMessageBus to handle messages for a custom namespace
    window.messageBus = window.castReceiverManager
    .getCastMessageBus('urn:x-cast:com.theWebsite');

    // handler for the CastMessageBus message event
    window.messageBus.onMessage = function(event)
    console.log('Message [' + event.senderId + ']: ' + event.data);

    // display the message from the sender
    displayText(event.data);
    // inform all senders on the CastMessageBus of the incoming message event
    // sender message listener will be invoked
    window.messageBus.send(event.senderId, event.data);


    // initialize the CastReceiverManager with an application status message
    window.castReceiverManager.start(
    statusText : "Application is starting"
    );
    console.log('Receiver Manager started');
    ;

    // utility function to display the text message in the input field
    function displayText(text)
    console.log(text);
    panelSetup(text);
    //document.getElementById("messagePanelDiv").innerHTML = text;
    //$$('#messagePanelDiv').set('html', text);
    window.castReceiverManager.setApplicationState(text);
    ;
    </script>
    </body>


    What is the issue here because I believe my index.html page is working fine because I am making a connection otherwise I would not be able to see the device list when I click on the button to cast the file. But the connection is not going all the way through, meaning it never actually connects. It says its connecting and a minute or so later it says it has not connected.



    Essentially i'd like to know if I check the receiver code? or would it be my index file that is just not initializing the API correctly?
    I also do have the both new and old library connected, I thought the new libar would help but isn't



    Any suggestions help.










    share|improve this question




























      0












      0








      0








      I have two sets of code.. my receiver and my sender application. I am still new to this and it has been giving me so many issues. First and for most I am on an older chrome version which is how my application is running.
      When I click to cast a given application the device list does drop down but when I click to cast to a device I only get a white screen on the TV attached to that chrome cast and then after a minute or so the application stops casting and gives me the "failed to cast" error message.



      From my understanding the index.html file is where I have all the js script that initializes the API, and requests the session on the receiver code is where I have all this code:



      <div id="containerDiv" ></div>
      <div id="messageDiv"></div>
      <script type="text/javascript"
      src="//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js"/>
      <!-- -
      <script type="text/javascript"
      src="//www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js"></script>
      //www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js
      <!--

      <script type="text/javascript" src="jsdebug.js"></script> -->
      <script type="text/javascript">
      window.onload = function()
      cast.receiver.logger.setLevelValue(0);
      window.castReceiverManager = cast.framework.CastReceiverContext.getInstance();
      console.log('Starting Receiver Manager');

      // handler for the 'ready' event
      castReceiverManager.onReady = function(event)
      console.log('Received Ready event: '
      + JSON.stringify(event.data));
      window.castReceiverManager
      .setApplicationState("Application status is ready...");
      ;

      // handler for 'senderconnected' event
      castReceiverManager.onSenderConnected = function(event)
      console.log('Received Sender Connected event: ' + event.data);
      console
      .log(window.castReceiverManager.getSender(event.data).userAgent);
      ;

      // handler for 'senderdisconnected' event
      castReceiverManager.onSenderDisconnected = function(event)
      console
      .log('Received Sender Disconnected event: '
      + event.data);
      if (window.castReceiverManager.getSenders().length == 0)
      window.open();

      ;

      // handler for 'systemvolumechanged' event
      castReceiverManager.onSystemVolumeChanged = function(event)
      console.log('Received System Volume Changed event: '
      + event.data['level'] + ' ' + event.data['muted']);
      ;

      // create a CastMessageBus to handle messages for a custom namespace
      window.messageBus = window.castReceiverManager
      .getCastMessageBus('urn:x-cast:com.theWebsite');

      // handler for the CastMessageBus message event
      window.messageBus.onMessage = function(event)
      console.log('Message [' + event.senderId + ']: ' + event.data);

      // display the message from the sender
      displayText(event.data);
      // inform all senders on the CastMessageBus of the incoming message event
      // sender message listener will be invoked
      window.messageBus.send(event.senderId, event.data);


      // initialize the CastReceiverManager with an application status message
      window.castReceiverManager.start(
      statusText : "Application is starting"
      );
      console.log('Receiver Manager started');
      ;

      // utility function to display the text message in the input field
      function displayText(text)
      console.log(text);
      panelSetup(text);
      //document.getElementById("messagePanelDiv").innerHTML = text;
      //$$('#messagePanelDiv').set('html', text);
      window.castReceiverManager.setApplicationState(text);
      ;
      </script>
      </body>


      What is the issue here because I believe my index.html page is working fine because I am making a connection otherwise I would not be able to see the device list when I click on the button to cast the file. But the connection is not going all the way through, meaning it never actually connects. It says its connecting and a minute or so later it says it has not connected.



      Essentially i'd like to know if I check the receiver code? or would it be my index file that is just not initializing the API correctly?
      I also do have the both new and old library connected, I thought the new libar would help but isn't



      Any suggestions help.










      share|improve this question
















      I have two sets of code.. my receiver and my sender application. I am still new to this and it has been giving me so many issues. First and for most I am on an older chrome version which is how my application is running.
      When I click to cast a given application the device list does drop down but when I click to cast to a device I only get a white screen on the TV attached to that chrome cast and then after a minute or so the application stops casting and gives me the "failed to cast" error message.



      From my understanding the index.html file is where I have all the js script that initializes the API, and requests the session on the receiver code is where I have all this code:



      <div id="containerDiv" ></div>
      <div id="messageDiv"></div>
      <script type="text/javascript"
      src="//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js"/>
      <!-- -
      <script type="text/javascript"
      src="//www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js"></script>
      //www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js
      <!--

      <script type="text/javascript" src="jsdebug.js"></script> -->
      <script type="text/javascript">
      window.onload = function()
      cast.receiver.logger.setLevelValue(0);
      window.castReceiverManager = cast.framework.CastReceiverContext.getInstance();
      console.log('Starting Receiver Manager');

      // handler for the 'ready' event
      castReceiverManager.onReady = function(event)
      console.log('Received Ready event: '
      + JSON.stringify(event.data));
      window.castReceiverManager
      .setApplicationState("Application status is ready...");
      ;

      // handler for 'senderconnected' event
      castReceiverManager.onSenderConnected = function(event)
      console.log('Received Sender Connected event: ' + event.data);
      console
      .log(window.castReceiverManager.getSender(event.data).userAgent);
      ;

      // handler for 'senderdisconnected' event
      castReceiverManager.onSenderDisconnected = function(event)
      console
      .log('Received Sender Disconnected event: '
      + event.data);
      if (window.castReceiverManager.getSenders().length == 0)
      window.open();

      ;

      // handler for 'systemvolumechanged' event
      castReceiverManager.onSystemVolumeChanged = function(event)
      console.log('Received System Volume Changed event: '
      + event.data['level'] + ' ' + event.data['muted']);
      ;

      // create a CastMessageBus to handle messages for a custom namespace
      window.messageBus = window.castReceiverManager
      .getCastMessageBus('urn:x-cast:com.theWebsite');

      // handler for the CastMessageBus message event
      window.messageBus.onMessage = function(event)
      console.log('Message [' + event.senderId + ']: ' + event.data);

      // display the message from the sender
      displayText(event.data);
      // inform all senders on the CastMessageBus of the incoming message event
      // sender message listener will be invoked
      window.messageBus.send(event.senderId, event.data);


      // initialize the CastReceiverManager with an application status message
      window.castReceiverManager.start(
      statusText : "Application is starting"
      );
      console.log('Receiver Manager started');
      ;

      // utility function to display the text message in the input field
      function displayText(text)
      console.log(text);
      panelSetup(text);
      //document.getElementById("messagePanelDiv").innerHTML = text;
      //$$('#messagePanelDiv').set('html', text);
      window.castReceiverManager.setApplicationState(text);
      ;
      </script>
      </body>


      What is the issue here because I believe my index.html page is working fine because I am making a connection otherwise I would not be able to see the device list when I click on the button to cast the file. But the connection is not going all the way through, meaning it never actually connects. It says its connecting and a minute or so later it says it has not connected.



      Essentially i'd like to know if I check the receiver code? or would it be my index file that is just not initializing the API correctly?
      I also do have the both new and old library connected, I thought the new libar would help but isn't



      Any suggestions help.







      google-chrome google-chrome-app chromecast






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 27 at 20:08







      Cookies

















      asked Mar 27 at 20:01









      CookiesCookies

      379 bronze badges




      379 bronze badges

























          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55385557%2fdevice-list-showing-up-when-button-is-clicked-but-only-displaying-a-white-screen%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55385557%2fdevice-list-showing-up-when-button-is-clicked-but-only-displaying-a-white-screen%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript