-
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 Ping API #35
Uplynk Ping API #35
Conversation
62548de
to
7c10750
Compare
connectors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/network/UplynkAd.kt
Show resolved
Hide resolved
connectors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/UplynkListener.kt
Outdated
Show resolved
Hide resolved
...ctors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/internal/PingScheduler.kt
Outdated
Show resolved
Hide resolved
… documentation but was provided in examples. Most likely it's a mistake in documentation
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.
Nitpcik: I would move the following classes into com.theoplayer.android.connector.uplynk
, out of the network
module.
- UplynkAd
- UplynkAdBreak
- UplynkAds
- UplynkBreakOffsets
- UplynkPlaceholderAds
- UplynkPlayedAd
connectors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/UplynkListener.kt
Outdated
Show resolved
Hide resolved
...ectors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/UplynkSsaiDescription.kt
Outdated
Show resolved
Hide resolved
...ectors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/UplynkSsaiDescription.kt
Show resolved
Hide resolved
...ectors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/UplynkSsaiDescription.kt
Show resolved
Hide resolved
} | ||
|
||
override suspend fun setSource(source: SourceDescription): SourceDescription { | ||
adScheduler = null | ||
pingScheduler?.destroy() |
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.
Since we have the resetSource()
implemented, isn't these 2 lines redundant?
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.
resetSource()
is only called when we set the source
to null
. Not sure wether it was intended or it's a bug in the THEOplayer SSAI API.
This is why it's duplicated here
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.
Aha, didn't realize that.. I expect reset gets called whenever a new source is set regardless if it's a null or not.
Let's discuss internally for the THEOplayer SSAI API.
.../uplynk/src/main/java/com/theoplayer/android/connector/uplynk/network/PreplayLiveResponse.kt
Outdated
Show resolved
Hide resolved
...main/java/com/theoplayer/android/connector/uplynk/internal/UplynkSsaiDescriptionConverter.kt
Outdated
Show resolved
Hide resolved
...plynk/src/main/java/com/theoplayer/android/connector/uplynk/internal/network/PingResponse.kt
Outdated
Show resolved
Hide resolved
...plynk/src/main/java/com/theoplayer/android/connector/uplynk/internal/network/PingResponse.kt
Outdated
Show resolved
Hide resolved
connectors/uplynk/src/main/java/com/theoplayer/android/connector/uplynk/network/UplynkAd.kt
Outdated
Show resolved
Hide resolved
...uplynk/src/main/java/com/theoplayer/android/connector/uplynk/internal/UplynkAdIntegration.kt
Outdated
Show resolved
Hide resolved
...main/java/com/theoplayer/android/connector/uplynk/internal/UplynkSsaiDescriptionConverter.kt
Outdated
Show resolved
Hide resolved
} | ||
|
||
override suspend fun setSource(source: SourceDescription): SourceDescription { | ||
adScheduler = null | ||
pingScheduler?.destroy() |
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.
Aha, didn't realize that.. I expect reset gets called whenever a new source is set regardless if it's a null or not.
Let's discuss internally for the THEOplayer SSAI API.
@@ -33,5 +34,10 @@ internal data class MinimalPreplayResponse( | |||
|
|||
internal class PreplayInternalResponse(val body: String, private val json: Json) { |
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.
Nitpick: let's rename this to PreplayInternalVodResponse to match the public classes.
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.
Thanks, renamed that
No description provided.