Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #21 from SRGSSR/develop
Browse files Browse the repository at this point in the history
DRM Support
  • Loading branch information
StaehliJ authored Aug 21, 2018
2 parents 8e4910a + ca788e0 commit 5e00294
Show file tree
Hide file tree
Showing 7 changed files with 738 additions and 34 deletions.

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions srgmediaplayer/src/main/java/ch/srg/mediaplayer/DrmConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package ch.srg.mediaplayer;

import java.util.UUID;

/**
* Copyright (c) SRG SSR. All rights reserved.
* <p>
* License information is available from the LICENSE file.
*/
public class DrmConfig {
private String licenceUrl;
private UUID drmType;

public DrmConfig(String licenceUrl, UUID drmType) {
this.licenceUrl = licenceUrl;
this.drmType = drmType;
}

public String getLicenceUrl() {
return licenceUrl;
}

public UUID getDrmType() {
return drmType;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
import android.util.Log;
import android.view.Surface;

import com.akamai.android.exoplayer2loader.AkamaiExoPlayerLoader;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.ExoPlaybackException;
import com.google.android.exoplayer2.ExoPlayer;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.PlaybackParameters;
import com.google.android.exoplayer2.Player;
import com.google.android.exoplayer2.RendererCapabilities;
import com.google.android.exoplayer2.Timeline;
import com.google.android.exoplayer2.audio.AudioRendererEventListener;
Expand Down Expand Up @@ -59,7 +59,7 @@
/**
* Logs player events using {@link Log}.
*/
/* package */ final class EventLogger implements ExoPlayer.EventListener,
/* package */ final class EventLogger implements Player.EventListener,
AudioRendererEventListener, VideoRendererEventListener, AdaptiveMediaSourceEventListener,
ExtractorMediaSource.EventListener, DefaultDrmSessionManager.EventListener,
MetadataRenderer.Output {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package ch.srg.mediaplayer;

/**
* Copyright (c) SRG SSR. All rights reserved.
* <p>
* License information is available from the LICENSE file.
*/
public class SRGDrmMediaPlayerException extends SRGMediaPlayerException {
public SRGDrmMediaPlayerException(String detailMessage) {
super(detailMessage);
}

public SRGDrmMediaPlayerException(String detailMessage, Throwable throwable) {
super(detailMessage, throwable);
}

public SRGDrmMediaPlayerException(Throwable throwable) {
super(throwable);
}
}
Loading

0 comments on commit 5e00294

Please sign in to comment.