NathanaelA / nativescript-exoplayer

Please use: https://github.com/nstudio/nativescript-plugins/
27 stars 36 forks source link

Suspend/Resume breaks video API <= 23 #16

Closed Rachnerd closed 7 years ago

Rachnerd commented 7 years ago

Hey,

Issue

Video breaks after resuming the app at API levels lower than 24.

API 19

API 19

API 23

API 23

API 24 (works)

API 24

Potential cause

Inside the Exoplayer demo activity source we see an explicit check on API level <= 23. It releases the player on suspend and it reinits on resume. Does this conflict with NativeScript or is this an Exoplayer issue?

NathanaelA commented 7 years ago

@Rachnerd - Yeah, we actually have a suspend suspendEvent /resume resumeEvent you can call; you just attach them to the application life cycle resume/suspend events. Butwe don't have that documented in our documentation...

We should actually tie them into those events ourselves. So that it is something that is automatically setup. Thanks for the heads up. I'll try and get that fix in the next version so that people don't have to manually do this...

NathanaelA commented 7 years ago

Should be fixed in 3.3

LSmint commented 5 years ago

I have the similar issue when i open new screen in the video player page. After close the new screen, the video player is disappear on the first page.