Here are some technical details when creating a web page to be embedded in the LiveU Studio layer editor:
1. Have a transparent background
Transparency should not be handled with a green alpha channel (or chroma key) but rather have the CSS transparency enabled and applied to the body of the HTML page.
Either add the following CSS rule:
body {
background-color:rgba(0,0,0,0);
}
or define it inline:
<body style="background-color:rgba(0,0,0,0);">
2. When embedding the web page on LiveU Studio, user interactions are not allowed. (Think of it as the web page being opened on a browser on the server-side)
This has two consequences:
- The page embedded on LiveU Studio can't be clicked or interacted with in any way
- Settings can't be chosen nor memorized with any local data storing method (e.g. no settings saved with cookies)
Specific settings for the embedded page have to be inserted inside the URL query string or path structure, e.g. https://yourpagetoembed?setting1=test&setting2=option
Regarding the "X-Frame-Options" error
An "X-Frame-Options" error will be displayed as follow:"Refused to display ''https://your-website' in a frame because it set 'X-Frame-Options' to 'XXX'"
To correct this error, change the response headers and/or the metadata of your website if you have access to it. *If you don't, it means that embed mode is blocked by the website policy*
• "X-Frame-Options" header: allowed value is "ALLOWALL" or "ALLOW-FROM https://www.LiveU Studio" if you just want to authorize LiveU Studio
• "Access-Control-Allow-Origin" header: allowed value is "*". You can also remove the header or add https://www.studio.liveu.tv to it.
More info:
• https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
• https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
Time zone: you must have a fixed time zone (the time on your machine and on our servers is not identical).
We recommend using the latest version of the Chrome browser, thank you to check also in your Chrome settings that cookies are accepted on all sites (otherwise you will have problems displaying the LiveU Studio control panel).
3. How to know if it's LiveU Studio that loads my page?
https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer
To detect the source page you can use https://www.whatismyreferer.com/ (add this page as a new webpage input in the LiveU Studio).
If the hostname is program.studio.liveu.tv that means this URL is related to the LiveU Studio program.
If the hostname is like *.studio.liveu.tv that mean this URL is related to the LiveU Studio preview.
Have more questions?
Click here to head to our Knowledge base search engine.
Can't find the right answer?
Contact the LiveU Studio Support team via our Live Chat.