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 connector: Preplay events #26

Merged
merged 31 commits into from
Aug 26, 2024
Merged

Conversation

OlegRyz
Copy link
Contributor

@OlegRyz OlegRyz commented Aug 12, 2024

No description provided.

@MattiasBuelens MattiasBuelens changed the title Feature/uplink preplay events Uplynk connector: Preplay events Aug 12, 2024
@MattiasBuelens MattiasBuelens added the 🔌 connector: uplynk Affects the Uplynk connector label Aug 12, 2024
@MattiasBuelens MattiasBuelens self-requested a review August 12, 2024 14:30
@OlegRyz OlegRyz force-pushed the feature/uplink-preplay-events branch from 92c0560 to f5b0edf Compare August 14, 2024 05:18
@OlegRyz OlegRyz force-pushed the feature/uplink-preplay-events branch from aa28bd2 to 7178e9b Compare August 16, 2024 11:03
@OlegRyz OlegRyz requested review from Danesz and hovig-theo August 20, 2024 08:07

val newSource = source.replaceSources(source.sources.toMutableList().apply {
remove(uplynkSource)
add(0, uplynkSource.replaceSrc(response.playURL))
add(0, uplynkSource.replaceSrc(internalResponse.playURL))
Copy link

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 :) )

Copy link
Contributor Author

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.

Comment on lines 31 to 35
return when {
sessionId.isBlank() -> urlList
else -> urlList.map { "$it?pbs=$sessionId" }
}
}
Copy link
Contributor

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.

@OlegRyz OlegRyz merged commit 13709fc into master Aug 26, 2024
1 check passed
@MattiasBuelens MattiasBuelens deleted the feature/uplink-preplay-events branch August 26, 2024 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔌 connector: uplynk Affects the Uplynk connector
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants