com.google.android.exoplayer.drm.MediaDrmCallback Java Examples

The following examples show how to use com.google.android.exoplayer.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: DashRendererBuilder.java    From WliveTV with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
  manifestDataSource = new DefaultUriDataSource(context, userAgent);
  manifestFetcher = new ManifestFetcher<>(url, manifestDataSource, parser);
}
 
Example #2
Source File: DashRendererBuilder.java    From google-media-framework-android with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url,
                            MediaDrmCallback drmCallback, ExoplayerWrapper player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
  manifestDataSource = new DefaultUriDataSource(context, userAgent);
  manifestFetcher = new ManifestFetcher<>(url, manifestDataSource, parser);
}
 
Example #3
Source File: DashRendererBuilder.java    From google-media-framework-android with Apache License 2.0 5 votes vote down vote up
public DashRendererBuilder(Context context, String userAgent, String url,
                           MediaDrmCallback drmCallback) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = url;
  this.drmCallback = drmCallback;
}
 
Example #4
Source File: SmoothStreamingRendererBuilder.java    From androidtv-sample-inputs with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url,
        MediaDrmCallback drmCallback, DemoPlayer player) {
    this.context = context;
    this.userAgent = userAgent;
    this.drmCallback = drmCallback;
    this.player = player;
    SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
    manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
            parser);
}
 
Example #5
Source File: SmoothStreamingRendererBuilder.java    From androidtv-sample-inputs with Apache License 2.0 5 votes vote down vote up
public SmoothStreamingRendererBuilder(Context context, String userAgent, String url,
        MediaDrmCallback drmCallback) {
    this.context = context;
    this.userAgent = userAgent;
    this.url = Util.toLowerInvariant(url).endsWith("/manifest") ? url : url + "/Manifest";
    this.drmCallback = drmCallback;
}
 
Example #6
Source File: DashRendererBuilder.java    From androidtv-sample-inputs with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url,
                            MediaDrmCallback drmCallback, DemoPlayer player) {
    this.context = context;
    this.userAgent = userAgent;
    this.drmCallback = drmCallback;
    this.player = player;
    MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
    manifestDataSource = new DefaultUriDataSource(context, userAgent);
    manifestFetcher = new ManifestFetcher<>(url, manifestDataSource, parser);
}
 
Example #7
Source File: DashRendererBuilder.java    From androidtv-sample-inputs with Apache License 2.0 5 votes vote down vote up
public DashRendererBuilder(Context context, String userAgent, String url,
                           MediaDrmCallback drmCallback) {
    this.context = context;
    this.userAgent = userAgent;
    this.url = url;
    this.drmCallback = drmCallback;
}
 
Example #8
Source File: DashVodRendererBuilder.java    From Mobilyzer with Apache License 2.0 5 votes vote down vote up
public static Pair<DrmSessionManager, Boolean> getDrmSessionManagerData(DemoPlayer player,
    MediaDrmCallback drmCallback) throws UnsupportedSchemeException {
  StreamingDrmSessionManager streamingDrmSessionManager = new StreamingDrmSessionManager(
      DemoUtil.WIDEVINE_UUID, player.getPlaybackLooper(), drmCallback, player.getMainHandler(),
      player);
  return Pair.create((DrmSessionManager) streamingDrmSessionManager,
      getWidevineSecurityLevel(streamingDrmSessionManager) == SECURITY_LEVEL_1);
}
 
Example #9
Source File: DashVodRendererBuilder.java    From Mobilyzer with Apache License 2.0 5 votes vote down vote up
public DashVodRendererBuilder(String userAgent, String url, String contentId,
    MediaDrmCallback drmCallback, TextView debugTextView, AdaptiveType adaptiveType) {
  this.userAgent = userAgent;
  this.url = url;
  this.contentId = contentId;
  this.drmCallback = drmCallback;
  this.debugTextView = debugTextView;
  this.adaptiveType=adaptiveType;
}
 
Example #10
Source File: SmoothStreamingRendererBuilder.java    From Exoplayer_VLC with Apache License 2.0 5 votes vote down vote up
public SmoothStreamingRendererBuilder(String userAgent, String url, String contentId,
    MediaDrmCallback drmCallback, TextView debugTextView) {
  this.userAgent = userAgent;
  this.url = url;
  this.contentId = contentId;
  this.drmCallback = drmCallback;
  this.debugTextView = debugTextView;
}
 
Example #11
Source File: DashRendererBuilder.java    From Exoplayer_VLC with Apache License 2.0 5 votes vote down vote up
public DashRendererBuilder(String userAgent, String url, String contentId,
    MediaDrmCallback drmCallback, TextView debugTextView) {
  this.userAgent = userAgent;
  this.url = url;
  this.contentId = contentId;
  this.drmCallback = drmCallback;
  this.debugTextView = debugTextView;
}
 
Example #12
Source File: SmoothStreamingRendererBuilder.java    From WliveTV with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
 
Example #13
Source File: SmoothStreamingRendererBuilder.java    From WliveTV with Apache License 2.0 5 votes vote down vote up
public SmoothStreamingRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = Util.toLowerInvariant(url).endsWith("/manifest") ? url : url + "/Manifest";
  this.drmCallback = drmCallback;
}
 
Example #14
Source File: DashRendererBuilder.java    From AndroidTvDemo with Apache License 2.0 5 votes vote down vote up
public DashRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = url;
  this.drmCallback = drmCallback;
}
 
Example #15
Source File: DashRendererBuilder.java    From WliveTV with Apache License 2.0 5 votes vote down vote up
public DashRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = url;
  this.drmCallback = drmCallback;
}
 
Example #16
Source File: SmoothStreamingRendererBuilder.java    From talk-android with MIT License 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
 
Example #17
Source File: SmoothStreamingRendererBuilder.java    From talk-android with MIT License 5 votes vote down vote up
public SmoothStreamingRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = Util.toLowerInvariant(url).endsWith("/manifest") ? url : url + "/Manifest";
  this.drmCallback = drmCallback;
}
 
Example #18
Source File: DashRendererBuilder.java    From talk-android with MIT License 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
  manifestDataSource = new DefaultUriDataSource(context, userAgent);
  manifestFetcher = new ManifestFetcher<>(url, manifestDataSource, parser);
}
 
Example #19
Source File: DashRendererBuilder.java    From talk-android with MIT License 5 votes vote down vote up
public DashRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = url;
  this.drmCallback = drmCallback;
}
 
Example #20
Source File: SmoothStreamingRendererBuilder.java    From ShareBox with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
 
Example #21
Source File: SmoothStreamingRendererBuilder.java    From ShareBox with Apache License 2.0 5 votes vote down vote up
public SmoothStreamingRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = Util.toLowerInvariant(url).endsWith("/manifest") ? url : url + "/Manifest";
  this.drmCallback = drmCallback;
}
 
Example #22
Source File: DashRendererBuilder.java    From ShareBox with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
  manifestDataSource = new DefaultUriDataSource(context, userAgent);
  manifestFetcher = new ManifestFetcher<>(url, manifestDataSource, parser);
}
 
Example #23
Source File: DashRendererBuilder.java    From ShareBox with Apache License 2.0 5 votes vote down vote up
public DashRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = url;
  this.drmCallback = drmCallback;
}
 
Example #24
Source File: SmoothStreamingRendererBuilder.java    From AndroidTvDemo with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
 
Example #25
Source File: SmoothStreamingRendererBuilder.java    From AndroidTvDemo with Apache License 2.0 5 votes vote down vote up
public SmoothStreamingRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = Util.toLowerInvariant(url).endsWith("/manifest") ? url : url + "/Manifest";
  this.drmCallback = drmCallback;
}
 
Example #26
Source File: DashRendererBuilder.java    From AndroidTvDemo with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
  manifestDataSource = new DefaultUriDataSource(context, userAgent);
  manifestFetcher = new ManifestFetcher<>(url, manifestDataSource, parser);
}