Skip to content

Latest commit

 

History

History
99 lines (68 loc) · 2.72 KB

README.md

File metadata and controls

99 lines (68 loc) · 2.72 KB

Constants

DEFAULT_OPTIONS : Object

Default options used when they are not provided on plugin installation

$cast

CastPlugin available in Vue instance

DEFAULT_OPTIONS : Object

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

$cast

CastPlugin available in Vue instance

Kind: global constant


$cast.state : State

Current plugin's state

Kind: static property of $cast


$cast.States : enum

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

$cast.Types : enum

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

$cast.send(url, type)

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