As a result video ad is shown to user. If an error has been occurred during this process, an error reason is passed in data parameter.
- not_prepared - not video was found to display;
- mp4_not_supported - video can not be played in user’s browser.
How it works Requires a video prepared by method FAPI.invokeUIMethod(“prepareMidroll”) before method’s invoking.
Function should be called only when a video ad was found.
10-15 seconds await between methods’ invocations is a must.
Video ads for mobile apps
To display a video ad in mobile HTML game special widget should be used.
To do so you should open browser window (or iframe) with a specially crafted URL:
|st.session_key||Yes||User’s session key|