Package com.castlabs.android.gstreamer
Class GStreamerPlayerPlugin
java.lang.Object
com.castlabs.android.gstreamer.GStreamerPlayerPlugin
- All Implemented Interfaces:
PlayerPlugin
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.castlabs.android.player.PlayerPlugin
PlayerPlugin.DrmInitDataProvider<T extends com.google.android.exoplayer2.offline.FilterableManifest>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.android.exoplayer2.source.MediaSource
createMediaSource
(PlayerConfig config, boolean attachInitialPositionProvider, PlayerController playerController) createRendererContainers
(PlayerController playerController, DrmConfiguration drmConfiguration) com.google.android.exoplayer2.RendererCapabilities[]
getRendererCapabilities
(Context context, DrmConfiguration drmConfiguration) boolean
isFormatSupported
(int format, DrmConfiguration configuration) void
setLogLevel
(int logLevel)
-
Constructor Details
-
GStreamerPlayerPlugin
public GStreamerPlayerPlugin()
-
-
Method Details
-
setLogLevel
public void setLogLevel(int logLevel) -
isFormatSupported
- Specified by:
isFormatSupported
in interfacePlayerPlugin
-
getRendererCapabilities
@Nullable public com.google.android.exoplayer2.RendererCapabilities[] getRendererCapabilities(@NonNull Context context, @Nullable DrmConfiguration drmConfiguration) - Specified by:
getRendererCapabilities
in interfacePlayerPlugin
-
createDrmInitDataProvider
@Nullable public PlayerPlugin.DrmInitDataProvider createDrmInitDataProvider(@Nullable ManifestModifier unused) - Specified by:
createDrmInitDataProvider
in interfacePlayerPlugin
-
createMediaSource
@NonNull public com.google.android.exoplayer2.source.MediaSource createMediaSource(@NonNull PlayerConfig config, boolean attachInitialPositionProvider, @NonNull PlayerController playerController) - Specified by:
createMediaSource
in interfacePlayerPlugin
-
createRendererContainers
@NonNull public List<TrackRendererPlugin.TrackRendererContainer> createRendererContainers(@NonNull PlayerController playerController, @Nullable DrmConfiguration drmConfiguration) throws CastlabsPlayerException - Specified by:
createRendererContainers
in interfacePlayerPlugin
- Throws:
CastlabsPlayerException
-