Package com.castlabs.android.player
Class IPTVPlugin
java.lang.Object
com.castlabs.android.Plugin
com.castlabs.android.player.IPTVPlugin
Plugin for IPTV playback.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longDiscontinuity threshold in stream to be marked as discontinuousstatic final intDefault number of Queued RTP Packets -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new IPTVPlugin instance with default values.IPTVPlugin(boolean playsClearWithExo, boolean ignorDataTillVideoKeyframe, int rtpQueueSizeInPackets, long discontinuityThreshold) Creates a new IPTVPlugin instance. -
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns the ID of the plugin.setDrmSystemInformation(int drmSystem, String licenseUrl) Sets the DRM system and license URL used to build the in-band PSSH data for encrypted IPTV streams.Methods inherited from class com.castlabs.android.Plugin
init, onRemotePlay
-
Field Details
-
DEFAULT_RTP_QUEUE_SIZE
public static final int DEFAULT_RTP_QUEUE_SIZEDefault number of Queued RTP Packets- See Also:
-
DEFAULT_DISCONTINUITY_THRESHOLD
public static final long DEFAULT_DISCONTINUITY_THRESHOLDDiscontinuity threshold in stream to be marked as discontinuous- See Also:
-
-
Constructor Details
-
IPTVPlugin
public IPTVPlugin(boolean playsClearWithExo, boolean ignorDataTillVideoKeyframe, int rtpQueueSizeInPackets, long discontinuityThreshold) Creates a new IPTVPlugin instance.- Parameters:
playsClearWithExo- Whether to play clear content with ExoPlayer.ignorDataTillVideoKeyframe- Whether to ignore data until a video keyframe is received.rtpQueueSizeInPackets- The size of the RTP queue in number of packets.discontinuityThreshold- The threshold for detecting discontinuities in milliseconds.
-
IPTVPlugin
public IPTVPlugin()Creates a new IPTVPlugin instance with default values.
-
-
Method Details
-
setDrmSystemInformation
Sets the DRM system and license URL used to build the in-band PSSH data for encrypted IPTV streams.This must be called before the plugin is registered with
PlayerSDK, becauseregister()copies the values into the player plugin.- Parameters:
drmSystem- EitherExoDrmUtils.DRM_SYSTEM_WIDEVINEorExoDrmUtils.DRM_SYSTEM_PLAYREADYlicenseUrl- The license URL embedded in the generated PlayReady header- Returns:
- This instance, for call chaining
-
getId
Description copied from class:PluginReturns the ID of the plugin. This ID is used to identify the plugin
-