nexxPLAY
Search…
WebViews

Setting the Platform

nexxPLAY will work in WebViews out of the Box. It is strongly recommended though to use the Javascript SDK instead of iFrames here - nevertheless, iFrames will work most of the Times too.
If the Player will be shown in your own native App in a hybrid Context, you might want to inform the Player about this Gateway for statistical Purposes. You can use an SDK Method for this:
1
//supported are iOS and android WebViews. Choose the right Platform (lowercase)
2
_play.config.setPlatform('ios|android');
Copied!
You can find all available Configuration Settings here:

UI and Functionality

As the WebView in your hybrid App is under your Control, you can decide to disable (or force) certain common Web Restrictions (like AutoPlay, FullScreen etc). nexxPLAY will automatically detect, if Fullscreen and PictureInPicture Functionalities are available.
Nevertheless, if you want to use AutoPlay with active Sound without a User Gesture, you can configure your WebView to behave like that. There is no Way to detect this for nexxPLAY though, so you can force the Player to behave like this by using the following Override:
1
var cfg=new _play.PlayerConfiguration({
2
webViewRestrictionsDisabled:1
3
});
Copied!
In modern Apps without Borders and a fully stretched UI, the Player UI might intefere with the Status Bar or a physical Notch. This specific Case can be handled with another Override:
1
var cfg=new _play.PlayerConfiguration({
2
forceNotchPadding:1
3
});
Copied!
You can find all available Overrides here:
Last modified 1yr ago