This repository has been archived by the owner on Jul 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from SRGSSR/develop
DRM Support
- Loading branch information
Showing
7 changed files
with
738 additions
and
34 deletions.
There are no files selected for viewing
512 changes: 512 additions & 0 deletions
512
srgmediaplayer/src/main/java/ch/srg/mediaplayer/DefaultDashChunkSource.java
Large diffs are not rendered by default.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
srgmediaplayer/src/main/java/ch/srg/mediaplayer/DrmConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
srgmediaplayer/src/main/java/ch/srg/mediaplayer/SRGDrmMediaPlayerException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
Oops, something went wrong.