Skip to content
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

Merged
merged 25 commits into from
Sep 9, 2024
Merged

Uplynk Ping API #35

merged 25 commits into from
Sep 9, 2024

Conversation

OlegRyz
Copy link
Contributor

@OlegRyz OlegRyz commented Sep 5, 2024

No description provided.

@OlegRyz OlegRyz force-pushed the feature/uplynk-ping branch from 62548de to 7c10750 Compare September 5, 2024 10:25
Copy link
Contributor

@hovig-theo hovig-theo left a 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

}

override suspend fun setSource(source: SourceDescription): SourceDescription {
adScheduler = null
pingScheduler?.destroy()
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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.

}

override suspend fun setSource(source: SourceDescription): SourceDescription {
adScheduler = null
pingScheduler?.destroy()
Copy link
Contributor

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) {
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, renamed that

@OlegRyz OlegRyz merged commit beb97f6 into master Sep 9, 2024
1 check passed
@hovig-theo hovig-theo deleted the feature/uplynk-ping branch September 9, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants