forked from google/ExoPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- vcb protocol intercepted and licence is made to work only when a vi…
…deo is clicked or downloaded.
- Loading branch information
1 parent
410bf52
commit 239e726
Showing
5 changed files
with
199 additions
and
78 deletions.
There are no files selected for viewing
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
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
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
50 changes: 50 additions & 0 deletions
50
library/core/src/main/java/com/google/android/exoplayer2/vocab/CredUpdateSingleton.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,50 @@ | ||
package com.google.android.exoplayer2.vocab; | ||
|
||
/** | ||
* Created by Hisham on 04/Oct/2018 - 17:51 | ||
*/ | ||
public class CredUpdateSingleton { | ||
|
||
private CredUpdateSingleton() { | ||
} | ||
|
||
private static final CredUpdateSingleton ourInstance = new CredUpdateSingleton(); | ||
|
||
private String token; | ||
private String videoId; | ||
private String licecnceUrl; | ||
|
||
public static CredUpdateSingleton getInstance() { | ||
return ourInstance; | ||
} | ||
|
||
|
||
public String getToken() { | ||
return token; | ||
} | ||
|
||
public CredUpdateSingleton setToken(String token) { | ||
this.token = token; | ||
return this; | ||
} | ||
|
||
public String getVideoIdAndResetIt() { | ||
String temp = videoId; | ||
videoId = null; | ||
return temp; | ||
} | ||
|
||
public CredUpdateSingleton setVideoId(String videoId) { | ||
this.videoId = videoId; | ||
return this; | ||
} | ||
|
||
public String getLicecnceUrl() { | ||
return licecnceUrl; | ||
} | ||
|
||
public CredUpdateSingleton setLicecnceUrl(String licecnceUrl) { | ||
this.licecnceUrl = licecnceUrl; | ||
return this; | ||
} | ||
} |
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