Package com.naver.ads.video.player
Object VideoPlayer.Companion
-
- All Implemented Interfaces:
public class VideoPlayer.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private BooleancacheEnabledprivate final VideoCacheManagercacheManagerpublic final static VideoPlayer.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final IntegerconvertKbpsToBps(Integer kbps)convert kbps to bps, honoring UNLIMITED_MAX_BITRATE_KBPS. final LoopergetCurrentOrMainLooper()final BooleangetCacheEnabled()set true to enable cache, or false to disable. final UnitsetCacheEnabled(Boolean cacheEnabled)set true to enable cache, or false to disable. final VideoCacheManagergetCacheManager()-
-
Method Detail
-
convertKbpsToBps
final Integer convertKbpsToBps(Integer kbps)
convert kbps to bps, honoring UNLIMITED_MAX_BITRATE_KBPS.
-
getCurrentOrMainLooper
final Looper getCurrentOrMainLooper()
-
getCacheEnabled
final Boolean getCacheEnabled()
set true to enable cache, or false to disable. this is a hint: it will be ignored if the current implementation does not support cache.
-
setCacheEnabled
final Unit setCacheEnabled(Boolean cacheEnabled)
set true to enable cache, or false to disable. this is a hint: it will be ignored if the current implementation does not support cache.
-
getCacheManager
final VideoCacheManager getCacheManager()
-
-
-
-