Full configuration example - CoreSetup
import { CoreSetup } from "@arcware-cloud/pixelstreaming-websdk/core";
const { Config, PixelStreaming } = CoreSetup(
{
shareId: "<your-share-id>",
projectId: "<optional-project-id>"
},
{
initialSettings: {
ss: "wss://signalling-client.ragnarok.arcware.cloud", // default Arcware signalling server (can be omitted as the SDK uses this by default)
AutoConnect: true,
AutoPlayVideo: true,
StartVideoMuted: true,
HoveringMouse: true,
FakeMouseWithTouches: false,
SuppressBrowserKeys: true,
KeyboardInput: true,
MouseInput: true,
TouchInput: true,
GamepadInput: true,
XRControllerInput: true,
UseMic: true,
ForceMonoAudio: false,
MatchViewportRes: false,
TimeoutIfIdle: true
},
settings: {
fullscreenButton: true,
settingsButton: true,
infoButton: false,
audioButton: true,
micButton: true,
stopButton: false,
connectionStrengthIcon: false,
loveLetterLogging: false,
startWidth: 1920,
startHeight: 1080,
orientationZoom: {
landscape: 1,
portrait: 1
},
whiteLabelling: {
splashScreenUrl: "./branding/splash-screen.jpg",
splashScreenMode: "contain",
splashScreenPosition: "center",
splashScreenBgColor: "#000000",
loadingIconUrl: "./branding/loading-icon.png",
loadingIconFadeMs: 1000,
hideLoveLetters: false,
hideAfkOverlay: false
},
fetchRemoteWhiteLabelling: false
}
}
);Required Values
Field
Description
Default Asset Paths
Typical Usage
Last updated