-
Notifications
You must be signed in to change notification settings - Fork 0
Web Browser vs Web View vs HTML render
So when someone embeds a website into the Player, there are broadly two options. The first option is that you create a web view control, put it on the screen, and tell the browser to navigate to the URL supplied. We call that "open natively" ie it's just a web browser, pointing at the URL the user sent. The other modes cause the CMS to send down an HTML resource which contains an iframe, which the webview control gets pointed at, and that loads the final website inside the iframe, and applies scaling to it so that it fits in the region, or is offset (moved left/up etc). So if modeId=1, it's Open Natively and the Player should get the URL from the options and point the browser at that. If it's any other mode ID, the Player should call getResource to get the HTML for that, and then point the web browser at that HTML from local disk