build
DEVELOPER NOTE: This is overloaded version of the build function that handles clear content and should be used mainly for testing purposes.
Builds a BroadpeakPlayer instance for Server-Side Ad Insertion (SSAI).
This function constructs a BroadpeakPlayer capable of handling SSAI and creates a Broadpeak SmartLib's streaming session. If the streaming URL cannot be obtained from Broadpeak, teh player will fall back to using the original content URL.
Return
A Result which is either a Result.Success containing the configured BroadpeakPlayer or a Result.Failure with an Error if the player could not be built.
Parameters
The PlatformContext instance.
The ConsumptionType of the media (e.g., VOD, LIVE).
The View (or its ViewGroup parent) to which the ad rendering overlay will be attached during playback.
Deprecated
Use overloaded build function instead
Replace with
import com.quickplay.vstb7.player.PlayerBuilder
build(platformContext, consumptionType, rootContainerView)