public interface InstreamAdPlayer
| Modifier and Type | Interface and Description |
|---|---|
static interface |
InstreamAdPlayer.AdPlayerListener
Calls from this listener must be implemented in videoplayer for calculating video ad
statistics
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Shutdown all connections and release all resources
|
InstreamAdPlayer.AdPlayerListener |
getAdPlayerListener() |
float |
getAdVideoDuration()
Retrieving duration of current playing advertising video
|
float |
getAdVideoPosition()
Retrieving play time left of current playing advertising video
|
android.view.View |
getView() |
void |
pauseAdVideo()
Call player to pause current playing ad
|
void |
playAdVideo(android.net.Uri uri,
int width,
int height)
Call player to play videofile or stream with predefined dimensions
|
void |
playAdVideo(android.net.Uri uri,
int width,
int height,
float position)
Call player to play videofile or stream with predefined dimensions
|
void |
resumeAdVideo()
Call player to resume current playing ad
|
void |
setAdPlayerListener(InstreamAdPlayer.AdPlayerListener listener)
Sets listener for ad playing events
|
void |
setVolume(float volume)
Setting the volume
|
void |
stopAdVideo()
Call player to stop current video ad.
|
@Nullable InstreamAdPlayer.AdPlayerListener getAdPlayerListener()
float getAdVideoDuration()
float getAdVideoPosition()
@NonNull android.view.View getView()
void setAdPlayerListener(@Nullable
InstreamAdPlayer.AdPlayerListener listener)
listener - listener should be setvoid playAdVideo(@NonNull
android.net.Uri uri,
int width,
int height)
uri - URI of video of streamwidth - width of video in pixelsheight - height of video in pixelsvoid playAdVideo(@NonNull
android.net.Uri uri,
int width,
int height,
float position)
uri - URI of video of streamwidth - width of video in pixelsheight - height of video in pixelsposition - position of video. Used after swapvoid pauseAdVideo()
void resumeAdVideo()
void stopAdVideo()
void destroy()
void setVolume(float volume)
volume - volume