Package 

Interface VideoPlayer

  • All Implemented Interfaces:

    @MainThread() 
    public interface VideoPlayer
    
                        

    This interface is used to control content playback while playing ads

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract float getVolume() Gets current content video volume with 0 being silence and 1 being maximum volume level
      abstract long getVideoPosition() Gets current content video position
      abstract long getVideoDuration() Gets content video duration
      abstract void prepareVideo() Prepares content video
      abstract void pauseVideo() Pauses playing content video
      abstract void resumeVideo() Resumes playing content video
      abstract void setVideoPlayerListener(@Nullable() VideoPlayerListener listener) Sets listener for content player events.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getVolume

         abstract float getVolume()

        Gets current content video volume with 0 being silence and 1 being maximum volume level

      • getVideoPosition

         abstract long getVideoPosition()

        Gets current content video position

      • prepareVideo

         abstract void prepareVideo()

        Prepares content video

      • pauseVideo

         abstract void pauseVideo()

        Pauses playing content video

      • resumeVideo

         abstract void resumeVideo()

        Resumes playing content video

      • setVideoPlayerListener

         abstract void setVideoPlayerListener(@Nullable() VideoPlayerListener listener)

        Sets listener for content player events. For each event of the content video player, the corresponding callback must be called on this object.

        Parameters:
        listener - Listener for content player events