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

Fix various playback crashes #382

Merged
merged 1 commit into from
May 13, 2021
Merged

Fix various playback crashes #382

merged 1 commit into from
May 13, 2021

Conversation

Maxr1998
Copy link
Member

@Maxr1998 Maxr1998 commented May 11, 2021

Fixes #371, #370, #368.

@Maxr1998 Maxr1998 added bug Something isn't working exoplayer Related to the ExoPlayer integration labels May 11, 2021
@Maxr1998 Maxr1998 requested a review from nielsvanvelzen May 11, 2021 23:13
@Maxr1998 Maxr1998 force-pushed the crash-fixes branch 3 times, most recently from ff4d84a to 97b693a Compare May 12, 2021 21:50
@Maxr1998 Maxr1998 marked this pull request as ready for review May 12, 2021 21:50
@@ -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;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
let playOptions = options.item.playOptions;
const playOptions = options.item.playOptions;

Comment on lines +92 to +94
).onSuccess { jellyfinMediaSource ->
playMediaSource(playOptions, jellyfinMediaSource)
}.onFailure { error ->
Copy link
Member

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?

Copy link
Member

Choose a reason for hiding this comment

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

@nielsvanvelzen nielsvanvelzen merged commit b092b77 into master May 13, 2021
@nielsvanvelzen nielsvanvelzen deleted the crash-fixes branch May 13, 2021 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working exoplayer Related to the ExoPlayer integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when trying to play using external player
3 participants