gingerbeur / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Cast-SDK custom cast receiver cast.player is undifined #446

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Creating a Host object as described in the documentation of the custom 
receiver and the Media Player library, by executing the code below:

/////////
var host = new cast.player.api.Host({'mediaElement':mediaElement, 'url':url});
////////

What is the expected output? What do you see instead?
Expected is to create the host object by calling the constructor 
cast.player.api.Host, and what I see instead is that cast.player is undefined, 
and thus an error is thrown.

What version of the product are you using? On what operating system?
Google Cast Receiver SDK
//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js
windows 7, google-chrome

Please provide any additional information below.
Just to double check the error, I've made a simple html file with the cast 
receiver sdk script included, on the chrome console I've added a new watch 
expression "cast.player" and it's undefined.

Original issue reported on code.google.com by ayeshqum...@gmail.com on 8 Dec 2014 at 7:56

Attachments:

GoogleCodeExporter commented 9 years ago
Please also include media player library

//www.gstatic.com/cast/sdk/libs/mediaplayer/1.0.0/media_player.js

Original comment by vadi...@google.com on 9 Dec 2014 at 1:02

GoogleCodeExporter commented 9 years ago
Does including the media player library solve your issue?

Original comment by jonathan...@google.com on 11 Dec 2014 at 9:33

GoogleCodeExporter commented 9 years ago
Including the media_player.js file has solved the issue.

Original comment by ayeshqum...@gmail.com on 12 Dec 2014 at 12:23

GoogleCodeExporter commented 9 years ago
Good to hear, closing this issue now.

Original comment by jonathan...@google.com on 12 Dec 2014 at 12:40