Package com.naver.ads.video.player
Interface VideoAdPlayer
-
- All Implemented Interfaces:
-
com.naver.ads.video.player.AdProgressProvider,com.naver.ads.video.player.VolumeProvider
public interface VideoAdPlayer implements AdProgressProvider, VolumeProvider
Defines the set of methods that a video player must implement to be used by the Naver Ads Services SDK, as well as a set of listeners that it must fire. This player should use the callbacks provided while interacting with ads only. VideoAdPlayer interface should be controlled only by Naver Ads Services SDK and should not be accessed by the application directly.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceVideoAdPlayer.VideoAdPlayerListenerListener that the player must fire.
-
Method Summary
Modifier and Type Method Description abstract UnitaddListener(VideoAdPlayer.VideoAdPlayerListener listener)Adds a listener for this player. abstract UnitremoveListener(VideoAdPlayer.VideoAdPlayerListener listener)Removes a listener for this player. abstract UnitloadAd(ResolvedAdMediaInfo adMediaInfo, ResolvedAdPodInfo adPodInfo)Loads a video ad. abstract UnitpauseAd(ResolvedAdMediaInfo adMediaInfo)Pauses a playing the current ad. abstract UnitplayAd(ResolvedAdMediaInfo adMediaInfo)Starts playing the video ad. abstract UnitstopAd(ResolvedAdMediaInfo adMediaInfo)Stops playing the current ad. abstract UnitseekTo(ResolvedAdMediaInfo adMediaInfo, Long positionMillis)Seeks to a position specified in milliseconds. abstract Unitrelease()Cleans up and releases all resources used by this player. abstract Unitmute(Boolean mute)Sets the mute state of the current audio stream. abstract BooleanisMuted()Returns true if the video is currently muted, false otherwise. abstract BooleanisEnded()Returns Whether the current ad has reached the end of the media or not. -
-
Method Detail
-
addListener
abstract Unit addListener(VideoAdPlayer.VideoAdPlayerListener listener)
Adds a listener for this player.
-
removeListener
abstract Unit removeListener(VideoAdPlayer.VideoAdPlayerListener listener)
Removes a listener for this player.
-
loadAd
abstract Unit loadAd(ResolvedAdMediaInfo adMediaInfo, ResolvedAdPodInfo adPodInfo)
Loads a video ad.
-
pauseAd
abstract Unit pauseAd(ResolvedAdMediaInfo adMediaInfo)
Pauses a playing the current ad.
-
playAd
abstract Unit playAd(ResolvedAdMediaInfo adMediaInfo)
Starts playing the video ad. provided VideoAdPlayer.loadAd has already been called for it.
-
stopAd
abstract Unit stopAd(ResolvedAdMediaInfo adMediaInfo)
Stops playing the current ad.
-
seekTo
abstract Unit seekTo(ResolvedAdMediaInfo adMediaInfo, Long positionMillis)
Seeks to a position specified in milliseconds.
-
-
-
-