Furioos - Support Furioos - Support

  • Home
  • FAQ
  • Documentation
  • Forums
Home / 3 - FURIOOS SDK / JS SDK – Getting started

JS SDK – Getting started

331 views 1 min , 10 sec read 0

Requirements

You’ll need a pro version subscription on your Furioos interface in order to use the SDK. Then choose the app you want to use with the SDK and share it as SDK link.

Installation

npm install --save furioos-sdk

Exemple

You should copy past your link previously you got in your Furioos interface.

import { Player } from 'furioos-sdk';

const player = new Player("sdkShareLinkID", "containerDivId", {options});

player.onLoad(function() {
    // Here you know when the player is ready.
    player.start();
})

Properties

quality: String :

Get the current setted quality.

Possible values : LOW / MEDIUM / HIGH / ULTRA

Methods

constructor(sdkShareLinkID, containerDivId, options)

Instanciate the player for a given app.

  • sdkShareLinkID: String: Link of the app you want to share (ex: “123.456”).
  • containerDivId: String: The ID of the container div that will host the render.
  • options: Object: The options to setup the player are these following :
    • whiteLabel: Boolean: Remove all Furioos’ Logo
    • hideToolbar: Boolean: Hide the toolbar to create your own.
    • hideTitle: Boolean: Hide the title bar to create your own.
    • hidePlayButton: Boolean: Hide the play button.

onLoad(callback)

Bind a callback that will be called when the player is ready.

  • callback: Function: Your own code to do what you want when it’s ready (ex: call player.start()).

Methods to create your own interface

Those methods permit you to create your own interface.

start()

Start streaming the app.

stop()

Stop streaming the app.

maximize()

Enable Full screen mode.

minimize()

Disable Full screen mode.

mouseLock(value)

Lock/Unlock the mouse.

  • value: Boolean: true to lock, false to unlock the mouse.

setQuality(value)

Set the quality of the stream.

  • value: QualityValue: Use one of the static value Player.qualityValues.LOW / Player.qualityValues.MEDIUM / Player.qualityValues.HIGH / Player.qualityValues.ULTRA

restartApp()

Restart the application

restartClient()

Reload all the streaming.

API Method

To use correctly this method, you will need to use the Furioos SDK for Unity in order to received the sended data and treat it into your app.

sendData(data)

Send data to your own application by using the Furioos SDK for Unity.

  • data: JSON: The data you want to send to your app formated in JSON.
3 - FURIOOS SDK

Related Articles

  • UNITY SDK – Getting started

Search

Documentation Categories

  • 41 - Getting Started
  • 62 - User Interface
  • 23 - FURIOOS SDK

Most Viewed

  • Users preferences 745
  • Adding an application on Furioos 369
  • UNITY SDK – Getting started 365
  • JS SDK – Getting started 331
  • How to create an iFrame of your application 224

Most Liked

  • Users preferences 0
  • Adding an application on Furioos 0
  • UNITY SDK – Getting started 1
  • JS SDK – Getting started 0
  • How to create an iFrame of your application 1

Social

Documentation Categories

1 - Getting Started 2 - User Interface 3 - FURIOOS SDK

Any 3D application available anywhere, anytime, on any device.

FURIOOS transforms nearly any device with an internet connection into the 3D workstation of your dreams. It simply outsources any task your device cannot execute: it delivers power and speed in the palm of your hand.

Create your account!

Flatbase by NiceThemes © 2019. — Powered by WordPress.