Comments (2)
Hello
This is something we are discussing, we will update this issue to keep you updated.
from furioos-sdk-js.
#46 should close this, but in the meanwhile you can add this to typings/furioos-sdk.d.ts
:
declare module "furioos-sdk" {
declare type PlayerOptions = {
whiteLabel?: boolean;
hideToolbar?: boolean;
hideTitle?: boolean;
hidePlayButton?: boolean;
overridedURL?: string;
debugAppMode?: boolean;
wsServerAddress?: string;
};
export declare class Player {
sdkDebug?: SDKDebug;
loaded: boolean;
debugAppMode: boolean;
sharedLink: string;
containerId: string;
embed?: HTMLIFrameElement;
options: PlayerOptions;
location?: string;
private _quality;
_onLoadCallback?: () => void;
_onSDKMessageCallback?: (data: any) => void;
_onUserActiveCallback?: () => void;
_onUserInactiveCallback?: () => void;
_onAppInstallProgress?: (value: any) => void;
_onAppInstallSuccess?: () => void;
_onAppInstallFail?: () => void;
_onAppStart?: () => void;
_onStreamStart?: () => void;
_onSessionStoppedCallback?: () => void;
_onStatsCallback?: (value: any) => void;
_getServerAvailabilityErrorCallback?: (error: any) => void;
_getServerAvailabilityCallback?: (stats: any) => void;
_getServerMetadataErrorCallback?: (error: any) => void;
_getServerMetadataCallback?: (metadata: any) => void;
static qualityValues: {
readonly AUTO: 0;
readonly LOW: 1;
readonly MEDIUM: 2;
readonly HIGH: 3;
readonly ULTRA: 4;
};
static regions: {
EUW: number[];
USW: number[];
USE: number[];
AUE: number[];
};
constructor(
sharedLinkID: string,
containerId: string,
options: PlayerOptions,
);
_createIframe(): HTMLIFrameElement;
_displayErrorMessage(message: string): void;
_onLoad(): void;
get quality(): "AUTO" | "LOW" | "MEDIUM" | "HIGH" | "ULTRA";
onLoad(onLoadCallback: () => void): void;
setDefaultLocation(location: string): void;
start(location?: string): void;
stop(): void;
maximize(): void;
minimize(): void;
setQuality(value: number): void;
restartStream(): void;
onSDKMessage(onSDKMessageCallback: (data: any) => void): void;
onUserActive(onUserActiveCallback: () => void): void;
onUserInactive(onUserInactiveCallback: () => void): void;
onAppInstallProgress(onAppInstallProgress: (value: any) => void): void;
onAppInstallSuccess(onAppInstallSuccess: () => void): void;
onAppInstallFail(onAppInstallFail: () => void): void;
onAppStart(onAppStart: () => void): void;
onStreamStart(onStreamStart: () => void): void;
onSessionStopped(onSessionStoppedCallback: () => void): void;
onStats(callback: (value: any) => void): void;
sendSDKMessage(data: any): void;
setUserActive(): void;
setThumbnailUrl(thumbnailUrl: string): void;
getServerAvailability(
getServerAvailabilityCallback: (stats: any) => void,
getServerAvailabilityErrorCallback: (error: any) => void,
): void;
getServerMetadata(
getServerMetadataCallback: (metadata: any) => void,
getServerMetadataErrorCallback: (error: any) => void,
): void;
}
declare class SDKDebug {
private ws;
onReady?: () => void;
private _onSDKMessageCallback?;
constructor(localServerAddress: string);
private _wsOnError;
private _wsOnClose;
private _wsOnMessage;
private _wsOnSendError;
onSDKMessage(onSDKMessageCallback: (data: any) => void): void;
sendSDKMessage(data: any): void;
}
}
from furioos-sdk-js.
Related Issues (20)
- Cursor locking issues HOT 1
- onLoad callback takes very long to get called HOT 3
- OnSDKMessage was designed for debug only? HOT 2
- React and typescript support
- integration and support with ASP.NET Core
- Fullscreen focus method
- JSON.Parse exception with debugAppMode: true HOT 1
- "onSessionStopped" should be named "onSessionStop"
- SDK methods don't work
- "onAppInstallProgress" event can not be trigger
- onAppStart and onStreamStart never called when running in localhost
- Feature request: hideToasters
- Events do not get invoked, when player has been stopped once HOT 1
- SDK Messaging broken HOT 1
- Restricted Domain HOT 4
- Issue with session resume
- FS_SDK_EVENTS_NAME is undefined
- FurioosSDK class in not found
- sendSDKMessage does not work on the any of the events like ON_APP_START or ON_STREAM_START
- [Request] Documentation or example on Furioos Signalling and Furioos Render Stream Bridge
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from furioos-sdk-js.