-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Fix various playback crashes #382
Conversation
ff4d84a
to
97b693a
Compare
@@ -45,7 +45,9 @@ export class ExternalPlayerPlugin { | |||
this._paused = false; | |||
this._currentSrc = options.url; | |||
this._isIntro = options.item && options.item.ProviderIds && options.item.ProviderIds.hasOwnProperty("prerolls.video"); | |||
this._externalPlayer.initPlayer(JSON.stringify(options.item.playOptions)); | |||
let playOptions = options.item.playOptions; |
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.
let playOptions = options.item.playOptions; | |
const playOptions = options.item.playOptions; |
).onSuccess { jellyfinMediaSource -> | ||
playMediaSource(playOptions, jellyfinMediaSource) | ||
}.onFailure { error -> |
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.
Is this an ExoPlayer thing or a Kotlin thing?
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.
It's the Result class
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-result/
Fixes #371, #370, #368.