mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 01:59:58 +00:00
Add stubbed cast.framework API implementation
This commit is contained in:
25
ext/src/shim/framework/classes/CastOptions.ts
Normal file
25
ext/src/shim/framework/classes/CastOptions.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
|
||||
import { AutoJoinPolicy } from "../../cast/enums";
|
||||
|
||||
export default class CastOptions {
|
||||
public autoJoinPolicy: string = AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;
|
||||
public language: string = null;
|
||||
public receiverApplicationId: string = null;
|
||||
public resumeSavedSession: boolean = true;
|
||||
|
||||
constructor (options: CastOptions = ({} as CastOptions)) {
|
||||
if (options.autoJoinPolicy) {
|
||||
this.autoJoinPolicy = options.autoJoinPolicy;
|
||||
}
|
||||
if (options.language) {
|
||||
this.language = options.language;
|
||||
}
|
||||
if (options.receiverApplicationId) {
|
||||
this.receiverApplicationId = options.receiverApplicationId;
|
||||
}
|
||||
if (options.resumeSavedSession) {
|
||||
this.resumeSavedSession = options.resumeSavedSession;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user