Reputation: 5012
any sugestion to make a VideoPlayer (for a HLS stream) who retain the buffer status on rotating the device? I was making a service always in background and handling the surface attach when rotating the device, but doesn't work. I loose the video (the audio still working) and get the error : E/MediaPlayer(28347): error (1, -2147483648) The videoView is in a fragment with setRetainInstance(true); enabled
Any idea? it's this idea possible?
Upvotes: 0
Views: 244
Reputation: 29
The Aplication get newly created on rotate check methods like onStop onResume which get called in case of rotate.
Take care that you don't launch the service twice
Activity restart on rotation Android
Upvotes: 1