Skip to content

Commit

Permalink
use new version tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
HoangHai24 committed Aug 30, 2024
1 parent f6e6422 commit bf73b3a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,12 @@ init sdk in onCreate of Activity
new ResponseInitListener() {
@Override
public void onInitSuccess(String url) {
FullLog.d("AdsTracking=>>onInitSuccess" + url);
configPlayer();
}
@Override
public void onInitFailed(String url, int code, String msg) {
FullLog.d("AdsTracking=>>onInitFailed" + code + ':' + url);
FullLog.d("AdsTracking=>>onInitFailed_msg:" + msg);
Log.d("onInitFailed:", + code + ':' + msg);
}
});
```
Expand All @@ -59,7 +58,7 @@ After initializing the session in the SDK, the SDK returns a SourceUrl --> confi
call configPlayer after init exoplayer

`````
AdsTracking.getInstance().initPlayerView(exoPlayer, url);
AdsTracking.getInstance().initPlayerView(exoPlayer);

##### Note:

Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ dependencies {
implementation 'com.google.android.exoplayer:extension-ima:2.18.2'
implementation 'com.google.code.gson:gson:2.8.7'

implementation 'com.sigma.ssai:sigma-ssai-exo:1.0.0'
implementation 'com.sigma.ssai:sigma-ssai-exo:1.0.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private void configPlayer(String url) {
exoPlayer.setPlayWhenReady(false);
playerView.setPlayer(exoPlayer);

AdsTracking.getInstance().initPlayerView(exoPlayer, url);
AdsTracking.getInstance().initPlayerView(exoPlayer);
}
@SuppressLint("SetTextI18n")

Expand Down

0 comments on commit bf73b3a

Please sign in to comment.