public class AliPlayerFactory
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
AliPlayerFactory.BlackType
The type of the blacklist.
|
static class |
AliPlayerFactory.DeviceInfo
Device information.
|
static class |
AliPlayerFactory.SupportFeatureType
The type of the feature.
|
构造器和说明 |
---|
AliPlayerFactory() |
限定符和类型 | 方法和说明 |
---|---|
static void |
addBlackDevice(AliPlayerFactory.BlackType blackType,
AliPlayerFactory.DeviceInfo deviceInfo)
Add a device to the blacklist.
|
static void |
addBlackList(AliPlayerFactory.BlackType blackType,
java.util.List<AliPlayerFactory.DeviceInfo> deviceInfos)
Add multiple devices to the blacklist.
|
static AliListPlayer |
createAliListPlayer(android.content.Context context)
Create a playlist player.
|
static AliListPlayer |
createAliListPlayer(android.content.Context context,
java.lang.String traceId)
Create a playlist player.
|
static AliLiveShiftPlayer |
createAliLiveShiftPlayer(android.content.Context context)
Create a broadcast timeshift player.
|
static AliLiveShiftPlayer |
createAliLiveShiftPlayer(android.content.Context context,
java.lang.String traceId)
Create a broadcast timeshift player.
|
static AliPlayer |
createAliPlayer(android.content.Context context)
Create a player.
|
static AliPlayer |
createAliPlayer(android.content.Context context,
java.lang.String traceId)
Create a player.
|
static java.lang.String |
getDeviceUUID()
Get device UUID.
|
static java.lang.String |
getSdkVersion()
Query the version of the SDK.
|
static boolean |
isFeatureSupport(AliPlayerFactory.SupportFeatureType type)
judge whether support the type of feature.
|
static void |
setConvertURLCallback(IPlayer.ConvertURLCallback callback)
URL conversion callback.
|
public static AliPlayer createAliPlayer(android.content.Context context)
context
- The context.public static AliPlayer createAliPlayer(android.content.Context context, java.lang.String traceId)
context
- The context.traceId
- A trace ID for troubleshooting with the relevant log.
Set as "DisableAnalytics" to disable report analytics data to server(not recommended).public static AliListPlayer createAliListPlayer(android.content.Context context)
context
- The context.public static AliListPlayer createAliListPlayer(android.content.Context context, java.lang.String traceId)
context
- The context.traceId
- A trace ID for troubleshooting with the relevant log.
Set as "DisableAnalytics" to disable report analytics data to server(not recommended).public static AliLiveShiftPlayer createAliLiveShiftPlayer(android.content.Context context)
context
- The context.public static AliLiveShiftPlayer createAliLiveShiftPlayer(android.content.Context context, java.lang.String traceId)
context
- The context.traceId
- A trace ID for troubleshooting with the relevant log.public static java.lang.String getSdkVersion()
public static void addBlackDevice(AliPlayerFactory.BlackType blackType, AliPlayerFactory.DeviceInfo deviceInfo)
blackType
- The type of the blacklist. See AliPlayerFactory.BlackType.deviceInfo
- Information of the specified device. See AliPlayerFactory.DeviceInfo.public static void addBlackList(AliPlayerFactory.BlackType blackType, java.util.List<AliPlayerFactory.DeviceInfo> deviceInfos)
blackType
- The type of the blacklist. See AliPlayerFactory.BlackType.deviceInfos
- Information of the specified devices. See AliPlayerFactory.DeviceInfo.public static void setConvertURLCallback(IPlayer.ConvertURLCallback callback)
callback
- The URL conversion callback. See IPlayer.ConvertURLCallback.public static java.lang.String getDeviceUUID()
public static boolean isFeatureSupport(AliPlayerFactory.SupportFeatureType type)
type
- The type of the support feature. See AliPlayerFactory.SupportFeatureType.