-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uplynk connector: Preplay events #26
Conversation
connectors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/events/UplynkEvent.kt
Outdated
Show resolved
Hide resolved
connectors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/UplynkConnector.kt
Outdated
Show resolved
Hide resolved
92c0560
to
f5b0edf
Compare
connectors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/UplynkListener.kt
Outdated
Show resolved
Hide resolved
...lynk/src/main/java/com/theoplayer/android/connector/uplynk/internal/UplynkEventDispatcher.kt
Outdated
Show resolved
Hide resolved
connectors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/UplynkListener.kt
Show resolved
Hide resolved
...ain/java/com/theoplayer/android/connector/uplynk/internal/network/PreplayInternalResponse.kt
Show resolved
Hide resolved
connectors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/network/UplynkApi.kt
Outdated
Show resolved
Hide resolved
Uplynk connector could only work with a single source at a moment so we'll fail fast rather than ignore other Uplynk sources.
…than Player Error.
aa28bd2
to
7178e9b
Compare
...ctors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/common/HttpsConnection.kt
Outdated
Show resolved
Hide resolved
|
||
val newSource = source.replaceSources(source.sources.toMutableList().apply { | ||
remove(uplynkSource) | ||
add(0, uplynkSource.replaceSrc(response.playURL)) | ||
add(0, uplynkSource.replaceSrc(internalResponse.playURL)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated to this PR, but I think here we miss the playbackUrlParameters from here that has to be appended to the final (resolved/parsed) playURL.
(maybe it is coming in the next iteration of the feature, just do not forget it :) )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I supposed that this will be a part of the DRM task. Currently I didn't check that it could play any signed url.
...ectors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/UplynkSsaiDescription.kt
Outdated
Show resolved
Hide resolved
connectors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/UplynkAdIntegration.kt
Outdated
Show resolved
Hide resolved
...lynk/src/main/java/com/theoplayer/android/connector/uplynk/internal/UplynkEventDispatcher.kt
Outdated
Show resolved
Hide resolved
...tors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/network/PreplayResponse.kt
Show resolved
Hide resolved
...uplynk/src/main/java/com/theoplayer/android/connector/uplynk/internal/UplynkAdIntegration.kt
Outdated
Show resolved
Hide resolved
connectors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/network/UplynkApi.kt
Outdated
Show resolved
Hide resolved
...ctors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/common/HttpsConnection.kt
Outdated
Show resolved
Hide resolved
...uplynk/src/main/java/com/theoplayer/android/connector/uplynk/internal/UplynkAdIntegration.kt
Show resolved
Hide resolved
return when { | ||
sessionId.isBlank() -> urlList | ||
else -> urlList.map { "$it?pbs=$sessionId" } | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit-pick: this would probably read better as a regular return if..else
.
No description provided.