Skip to content

Commit

Permalink
Merge pull request #2 from EkoLabs/new_urls_event
Browse files Browse the repository at this point in the history
New urls event
  • Loading branch information
ptelad authored Jul 22, 2020
2 parents e792ee7 + 8ea60ad commit d58e670
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion samples/helloeko/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
applicationId "com.eko.sdktest"
minSdkVersion 21
targetSdkVersion 28
versionCode 10
versionCode 12
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/eko/sdk/EkoPlayer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class EkoPlayer : FrameLayout {
private fun onJSEvent(type: String, args: JSONArray?) {
if (coverShown && type == "eko.canplay") {
removeCover()
} else if (type == "eko.urls.openinparent") {
} else if (type == "eko.urls.intent") {
val url = args?.getJSONObject(0)?.getString("url")
?: return // event is malformed so we return
if (urlListener != null) {
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/eko/sdk/EkoProjectLoader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class EkoProjectLoader {
throw EkoPlayerError(EkoPlayerError.TYPE.MALFORMED_RESPONSE, "URL not found - Missing embed url in response")
}

var url = "${json.getString("embedUrl")}/?embedapi=1.0&sharemode=proxy"
var url = "${json.getString("embedUrl")}/?embedapi=1.0&sharemode=proxy&urlsmode=proxy"
config.params.forEach { entry ->
url += "&${entry.key}=${entry.value}"
}
Expand Down

0 comments on commit d58e670

Please sign in to comment.