For FLASH games attribute’s wmode value must be set to opaque to display video ads properly
Following arguments can be passed to API_callback function as a result:
Callback if video was successfully shown
Callback if video was not found
Callback if video ads are not available for current user
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.
How it looks