Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
3 changes: 1 addition & 2 deletions DemoSigmaInteractiveAndroid/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion DemoSigmaInteractiveAndroid/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions DemoSigmaInteractiveAndroid/.idea/runConfigurations.xml

This file was deleted.

278 changes: 172 additions & 106 deletions DemoSigmaInteractiveAndroid/README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions DemoSigmaInteractiveAndroid/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.google.android.exoplayer:exoplayer:2.17.0'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.17.0'
implementation 'com.auth0:java-jwt:3.19.2'
implementation files('../libs/SigmaInteractiveSDK.aar')
}
6 changes: 6 additions & 0 deletions DemoSigmaInteractiveAndroid/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data
android:name="com.sigma.interactive.sdk.appId"
android:value="@string/interactive_app_id" />
<meta-data
android:name="com.sigma.interactive.sdk.version"
android:value="@string/interactive_app_version" />
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.example.sigmainteractive;

public class Constant {
static final String string = "string";
static final String bool = "bool";
static final String number = "number";
static final String keyField = "key";
static final String valueField = "value";
static final String typeField = "type";
static final String idField = "id";
static final String expField = "exp";
static final String roleField = "role";
static final String roleUser = "user";
static final String roleAdmin = "admin";
static final String roleGuest = "guest";
static final String appIdField = "appId";
static final String userDataField = "userData";
static final String keyUserRole = "userRole";
static final String keyUserId = "userId";
static final String keyChannelId = "channelId";
static final String keyVideoLink = "videoLink";
static final String keyUserData = "userData";
static final String keySharePreferences = "app_shared_preferences";
static final String keyAccessToken = "accessToken";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package com.example.sigmainteractive;

public class ListChannel {
static final String baseUrlChannel = "https://dev-livestream.gviet.vn/manifest/";
static final String vtv1Key = "vtv1";
static final String vtv2Key = "vtv2";
static final String vtv3Key = "vtv3";
static final String vtv4Key = "vtv4";
static public String getSource(String channelId) {
switch (channelId) {
case vtv1Key:
return baseUrlChannel + "VTV1-PACKAGE/master.m3u8";
case vtv2Key:
return baseUrlChannel + "VTV2-PACKAGE/master.m3u8";
case vtv3Key:
return baseUrlChannel + "VTV3-PACKAGE/master.m3u8";
case vtv4Key:
return baseUrlChannel + "VTV4/master.m3u8";
default: return "";
}
}
static public String getId(String channelKey) {
switch (channelKey) {
case vtv1Key:
return "c9c2ebfb-2887-4de6-aec4-0a30aa848915";
case vtv2Key:
return "32a55ed3-4ee1-42f8-819a-407b54a39923";
case vtv3Key:
return "60346597-8ed9-48de-bd4d-8546d0070c7c";
case vtv4Key:
return "22e1fdb6-8d10-4193-8411-562c7104aa2b";
default: return "c9c2ebfb-2887-4de6-aec4-0a30aa848915";
}
}
}
Loading