Class: Newscast

Newscast. Newscast

new Newscast(config)

Creates a simple Chromecast app all on one page with full bi-directional communication.
Parameters:
Name Type Description
config Object Configuration object
Properties
Name Type Description
namespace String Chromecast namespace for this application.
appId String Chromecast application identifier.
onSenderCreated Newscast.Newscast~onSenderCreatedCallback Callback to be fired when a Sender instance is created.
onReceiverCreated Newscast.Newscast~onReceiverCreatedCallback Callback to be fired when a Receiver instance is created.
onSenderReady Sender~onSenderReadyCallback Callback to be fired when a device is available to be cast to.
onSenderStarted Sender~onSenderStartedCallback Callback to be fired when casting has begun.
onSenderStopped Sender~onSenderStoppedCallback Callback to be fired when casting has ceased.
debug Boolean If true, debug information will be logged to the console.
Source:

Type Definitions

onReceiverCreatedCallback(receiver)

Parameters:
Name Type Description
receiver Receiver A Receiver instance.
Source:

onSenderCreatedCallback(sender)

Parameters:
Name Type Description
sender Sender A Sender instance.
Source: