Native interaction, common event listener, events from the native container,
such as PIP events, activity/controller lifecycle changes.
原生交互,通用事件监听,来自原生容器的事件,例如 PIP事件、activity/controller 生命周期变化
Get the system interface brightness. The iOS system has the same interface brightness,
while there may be differences in Android. Range: 0.0 ~ 1.0.
获取系统界面亮度,IOS系统与界面亮度一致,安卓可能会有差异 范围:0.0 ~ 1.0
Whether the current device supports picture-in-picture mode.
@return TXVodPlayEvent
0 Picture-in-picture mode can be enabled.
-101 The Android version is too low.
-102 Picture-in-picture permission is disabled or the device does not support picture-in-picture mode.
-103 The current interface has been destroyed.
register or unregister system brightness.if register the system brightness observer,
current window brightness wil changed by system brightness's change.
Set the absolute path of the player resource cache directory. This method will override each other with
setGlobalCacheFolderPath(String postfixPath), and you only need to call one of them.
Local caching of video files is a highly demanded feature in short video playback scenarios. For ordinary users,
when watching a video that has already been viewed, it should not consume data traffic again.
@Format support: The SDK supports caching for two common VOD formats: HLS(m3u8) and MP4.
@Timing of enabling: The SDK does not enable caching by default, and it is not recommended to
enable this feature for scenarios with low user review rates.
@Method of enabling: Global effect, enabled with the player. To enable this feature, two parameters need to be configured:
the local cache directory and the cache size.
Setting the environment for accessing the LiteAV SDK.
Tencent Cloud has deployed environments in various regions around the world, and different access points need to be accessed
according to local policies and regulations.
Setting the maximum cache size for the playback engine. After setting,
files in the Cache directory will be automatically cleaned up based on the set value.
@param size Maximum cache size (unit: MB).
Starts listening for device rotation direction. After it is turned on, if the device's auto-rotation is turned on,
the player will automatically rotate the video direction based on the current device orientation.