com.google.android.exoplayer2.drm.MediaDrmCallback Java Examples
The following examples show how to use
com.google.android.exoplayer2.drm.MediaDrmCallback.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DashTest.java From ExoPlayer-Offline with Apache License 2.0 | 6 votes |
@Override protected final DefaultDrmSessionManager<FrameworkMediaCrypto> buildDrmSessionManager( final String userAgent) { DefaultDrmSessionManager<FrameworkMediaCrypto> drmSessionManager = null; if (parameters.isWidevineEncrypted) { try { MediaDrmCallback drmCallback = new HttpMediaDrmCallback(parameters.widevineLicenseUrl, new DefaultHttpDataSourceFactory(userAgent)); drmSessionManager = DefaultDrmSessionManager.newWidevineInstance(drmCallback, null, null, null); if (!parameters.useL1Widevine) { drmSessionManager.setPropertyString(SECURITY_LEVEL_PROPERTY, WIDEVINE_SECURITY_LEVEL_3); } if (offlineLicenseKeySetId != null) { drmSessionManager.setMode(DefaultDrmSessionManager.MODE_PLAYBACK, offlineLicenseKeySetId); } } catch (UnsupportedDrmException e) { throw new IllegalStateException(e); } } return drmSessionManager; }
Example #2
Source File: StreamingDrmSessionCreator.java From no-player with Apache License 2.0 | 4 votes |
StreamingDrmSessionCreator(MediaDrmCallback mediaDrmCallback, FrameworkMediaDrmCreator frameworkMediaDrmCreator, Handler handler) { this.mediaDrmCallback = mediaDrmCallback; this.frameworkMediaDrmCreator = frameworkMediaDrmCreator; this.handler = handler; }
Example #3
Source File: NativeAudioPlayer.java From ExoMedia with Apache License 2.0 | 4 votes |
@Override public void setDrmCallback(@Nullable MediaDrmCallback drmCallback) { //Purposefully left blank }
Example #4
Source File: ExoAudioPlayer.java From ExoMedia with Apache License 2.0 | 4 votes |
@Override public void setDrmCallback(@Nullable MediaDrmCallback drmCallback) { exoMediaPlayer.setDrmCallback(drmCallback); }
Example #5
Source File: NativeTextureVideoView.java From ExoMedia with Apache License 2.0 | 4 votes |
@Override public void setDrmCallback(@Nullable MediaDrmCallback drmCallback) { //Purposefully left blank }
Example #6
Source File: NativeSurfaceVideoView.java From ExoMedia with Apache License 2.0 | 4 votes |
@Override public void setDrmCallback(@Nullable MediaDrmCallback drmCallback) { //Purposefully left blank }
Example #7
Source File: ExoTextureVideoView.java From ExoMedia with Apache License 2.0 | 4 votes |
@Override public void setDrmCallback(@Nullable MediaDrmCallback drmCallback) { delegate.setDrmCallback(drmCallback); }
Example #8
Source File: ExoSurfaceVideoView.java From ExoMedia with Apache License 2.0 | 4 votes |
@Override public void setDrmCallback(@Nullable MediaDrmCallback drmCallback) { delegate.setDrmCallback(drmCallback); }
Example #9
Source File: ExoVideoView.java From v9porn with MIT License | 2 votes |
/** * Sets the {@link MediaDrmCallback} to use when handling DRM for media. * This should be called before specifying the videos uri or path * <br> * <b>NOTE:</b> DRM is only supported on API 18 + * * @param drmCallback The callback to use when handling DRM media */ public void setDrmCallback(@Nullable MediaDrmCallback drmCallback) { videoViewImpl.setDrmCallback(drmCallback); }
Example #10
Source File: ExoVideoView.java From v9porn with MIT License | 2 votes |
/** * Sets the {@link MediaDrmCallback} to use when handling DRM for media. * This should be called before specifying the videos uri or path * <br> * <b>NOTE:</b> DRM is only supported on API 18 + * * @param drmCallback The callback to use when handling DRM media */ public void setDrmCallback(@Nullable MediaDrmCallback drmCallback) { videoViewImpl.setDrmCallback(drmCallback); }
Example #11
Source File: AudioPlayer.java From ExoMedia with Apache License 2.0 | 2 votes |
/** * Sets the {@link MediaDrmCallback} to use when handling DRM for media. * This should be called before specifying the videos uri or path * <br> * <b>NOTE:</b> DRM is only supported on API 18 + * * @param drmCallback The callback to use when handling DRM media */ public void setDrmCallback(@Nullable MediaDrmCallback drmCallback) { audioPlayerImpl.setDrmCallback(drmCallback); }
Example #12
Source File: VideoView.java From ExoMedia with Apache License 2.0 | 2 votes |
/** * Sets the {@link MediaDrmCallback} to use when handling DRM for media. * This should be called before specifying the videos uri or path * <br> * <b>NOTE:</b> DRM is only supported on API 18 + * * @param drmCallback The callback to use when handling DRM media */ public void setDrmCallback(@Nullable MediaDrmCallback drmCallback) { videoViewImpl.setDrmCallback(drmCallback); }
Example #13
Source File: VideoViewApi.java From ExoMedia with Apache License 2.0 | 2 votes |
/** * Sets the {@link MediaDrmCallback} to use when handling DRM for media. * This should be called before specifying the videos uri or path * <br> * <b>NOTE:</b> DRM is only supported on API 18 + * * @param drmCallback The callback to use when handling DRM media */ void setDrmCallback(@Nullable MediaDrmCallback drmCallback);
Example #14
Source File: AudioPlayerApi.java From ExoMedia with Apache License 2.0 | 2 votes |
/** * Sets the {@link MediaDrmCallback} to use when handling DRM for media. * This should be called before specifying the videos uri or path * <br> * <b>NOTE:</b> DRM is only supported on API 18 + * * @param drmCallback The callback to use when handling DRM media */ void setDrmCallback(@Nullable MediaDrmCallback drmCallback);
Example #15
Source File: ExoMediaPlayer.java From ExoMedia with Apache License 2.0 | 2 votes |
/** * Sets the {@link MediaDrmCallback} to use when handling DRM for media. * This should be called before specifying the videos uri or path * <br> * <b>NOTE:</b> DRM is only supported on API 18 + * * @param drmCallback The callback to use when handling DRM media */ public void setDrmCallback(@Nullable MediaDrmCallback drmCallback) { this.drmCallback = drmCallback; }
Example #16
Source File: ExoVideoDelegate.java From ExoMedia with Apache License 2.0 | 2 votes |
/** * Sets the {@link MediaDrmCallback} to use when handling DRM for media. * This should be called before specifying the videos uri or path * <br> * <b>NOTE:</b> DRM is only supported on API 18 + * * @param drmCallback The callback to use when handling DRM media */ public void setDrmCallback(@Nullable MediaDrmCallback drmCallback) { exoMediaPlayer.setDrmCallback(drmCallback); }