Debugging
To get detailed development logs from the SMIL Player runtime, add the following record to your browser Local Storage where you are testing SMIL Player:
// Enable debug logs for SMIL Player
localStorage.setItem("debug", "@signageos/smil-player:*");
// Once the debugging is over, disable the logs
localStorage.removeItem("debug");
In Chrome, press F12 on an active Emulator window. This will open up a Chrome debugger. In the debugger navigate into the Console tab and paste there the two lines of code above. Once done, refresh the Emulator window.
If your want to debug on devices, enable Native debug to access device debug console and apply the code there.
Enabling debug logs might affect device performance for certain tasks. Never keeps debug logs enabled on production device.
FAQ
CORS settings while developing on Emulator
If you run into issues while developing SMIL Player within Emulator, make sure you add https://2.signageos.io into the whitelisted domains on your server.
Videos are not playing in background
The possibility to play videos in background is currently under review. As of now, you can workaround the missing layering by force all videos to run in background.
- Open the parameters.ts file
- Change
background: false
tobackground: true
https://github.com/signageos/smil-player/blob/master/config/parameters.ts#L6 - Build and upload this adjusted version
Known limitations:
- you cannot layer videos