[regression] Close player in onPlaybackShutdown()
This commit is contained in:
parent
5ef407d15f
commit
12ac5ef781
|
@ -1068,14 +1068,6 @@ public abstract class BasePlayer implements
|
||||||
registerView();
|
registerView();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onPlaybackShutdown() {
|
|
||||||
if (DEBUG) {
|
|
||||||
Log.d(TAG, "Shutting down...");
|
|
||||||
}
|
|
||||||
destroy();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*//////////////////////////////////////////////////////////////////////////
|
/*//////////////////////////////////////////////////////////////////////////
|
||||||
// General Player
|
// General Player
|
||||||
//////////////////////////////////////////////////////////////////////////*/
|
//////////////////////////////////////////////////////////////////////////*/
|
||||||
|
|
|
@ -622,7 +622,7 @@ public class VideoPlayerImpl extends VideoPlayer
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
Log.d(TAG, "onPlaybackShutdown() called");
|
Log.d(TAG, "onPlaybackShutdown() called");
|
||||||
}
|
}
|
||||||
// Override it because we don't want playerImpl destroyed
|
service.onDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue