Rodrigo Amaro Reveco
Rodrigo Amaro Reveco

Reputation: 5012

Error in Service with MediaPlayer when rotated the device

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

Answers (1)

user2119701
user2119701

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

Related Questions