- DEFAULT_OPTIONS :
Object
Default options used when they are not provided on plugin installation
- $cast
CastPlugin available in Vue instance
Default options used when they are not provided on plugin installation
Kind: global constant
Properties
Name | Type | Default | Description |
---|---|---|---|
receiverApplicationId | String |
5CB45E5A |
Receiver Application ID |
lazyLoading | Boolean |
true |
When true, the Chromecast SDK will not be automatically downloaded |
className | String |
google-cast-btn |
The class name of the Google Cast Button |
chromecastSdkUrl | String |
//www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1 |
Chromecast SDK script URL |
CastPlugin available in Vue instance
Kind: global constant
- $cast
- .state :
State
- .States :
enum
- .Types :
enum
- .send(url, type)
- .state :
Current plugin's state
Kind: static property of $cast
Enum for connection states
Kind: static enum of $cast
Read only: true
Properties
Name | Type | Description |
---|---|---|
CREATED | String |
not installed |
LOADING | String |
fetching Chromecast SDK and initializing plugin |
READY | String |
everything is ready to cast |
Ways to send URL to Chromecast receiver application
Kind: static enum of $cast
Read only: true
Properties
Name | Type | Description |
---|---|---|
IFRAME | String |
website is displayed in an iframe. It keeps the connection to chromecast |
LOCATION | String |
Chromecast location is replaced and connection is lost |
Send an URL to connected Chromecast
Kind: static method of $cast
Param | Type | Default | Description |
---|---|---|---|
url | String |
URL of the website to load | |
type | String |
Types.IFRAME |
way to load the URL |