mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
25 lines
694 B
JavaScript
Executable File
25 lines
694 B
JavaScript
Executable File
"use strict";
|
|
|
|
import { Capability
|
|
, ReceiverType } from "../enums";
|
|
|
|
// https://developers.google.com/cast/docs/reference/chrome/chrome.cast.Receiver
|
|
export default class Receiver {
|
|
constructor (
|
|
label
|
|
, friendlyName
|
|
, opt_capabilities = [
|
|
Capability.VIDEO_OUT
|
|
, Capability.AUDIO_OUT ]
|
|
, opt_volume = null) {
|
|
|
|
this.capabilities = opt_capabilities;
|
|
this.displayStatus = null;
|
|
this.friendlyName = friendlyName;
|
|
this.isActiveInput = null;
|
|
this.label = label;
|
|
this.receiverType = ReceiverType.CAST;
|
|
this.volume = opt_volume;
|
|
}
|
|
};
|