mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 01:59:58 +00:00
Convert shim to Typescript (#32)
This commit is contained in:
17
ext/src/shim/cast/classes/SessionRequest.ts
Executable file
17
ext/src/shim/cast/classes/SessionRequest.ts
Executable file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
import { Capability } from "../enums";
|
||||
import { requestSession } from "../../timeout";
|
||||
|
||||
// https://developers.google.com/cast/docs/reference/chrome/chrome.cast.SessionRequest
|
||||
export default class SessionRequest {
|
||||
public language: string = null;
|
||||
public dialRequest: any = null;
|
||||
|
||||
constructor (
|
||||
public appId: string
|
||||
, public capabilities = [
|
||||
Capability.VIDEO_OUT
|
||||
, Capability.AUDIO_OUT ]
|
||||
, public requestSessionTimeout: number = requestSession) {}
|
||||
};
|
||||
Reference in New Issue
Block a user