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.MediaSourcecreateMediaSource(PlayerConfig config, boolean attachInitialPositionProvider, PlayerController playerController) createRendererContainers(PlayerController playerController, DrmConfiguration drmConfiguration) com.google.android.exoplayer2.RendererCapabilities[]getRendererCapabilities(Context context, DrmConfiguration drmConfiguration) booleanisFormatSupported(int format, DrmConfiguration configuration) voidsetLogLevel(int logLevel)
-
Constructor Details
-
GStreamerPlayerPlugin
public GStreamerPlayerPlugin()
-
-
Method Details
-
setLogLevel
public void setLogLevel(int logLevel) -
isFormatSupported
- Specified by:
isFormatSupportedin interfacePlayerPlugin
-
getRendererCapabilities
@Nullable public com.google.android.exoplayer2.RendererCapabilities[] getRendererCapabilities(@NonNull Context context, @Nullable DrmConfiguration drmConfiguration) - Specified by:
getRendererCapabilitiesin interfacePlayerPlugin
-
createDrmInitDataProvider
@Nullable public PlayerPlugin.DrmInitDataProvider createDrmInitDataProvider(@Nullable ManifestModifier unused) - Specified by:
createDrmInitDataProviderin interfacePlayerPlugin
-
createMediaSource
@NonNull public com.google.android.exoplayer2.source.MediaSource createMediaSource(@NonNull PlayerConfig config, boolean attachInitialPositionProvider, @NonNull PlayerController playerController) - Specified by:
createMediaSourcein interfacePlayerPlugin
-
createRendererContainers
@NonNull public List<TrackRendererPlugin.TrackRendererContainer> createRendererContainers(@NonNull PlayerController playerController, @Nullable DrmConfiguration drmConfiguration) throws CastlabsPlayerException - Specified by:
createRendererContainersin interfacePlayerPlugin- Throws:
CastlabsPlayerException
-