Write a video todayProgramWhen a problem occurs, use mediaplayer + surfaceview to play a network video (this problem also exists after testing the local video). After normal playback, press home to switch out the activity. Then long press home and select this program to switch back. However, after switching back, I only heard a very short voice, and the sound and image were lost.
Log hit an error (260. No specific descriptions can be found on the Internet, and no solution can be found.
The final cause is found. When switching out, call the pause method of MP (mediaplayer) to pause playing. When switching back, call the start method of MP to continue playing. This error occurs. You need to add MP. setdisplay () before MP. Start and reset the playback interface. (This requirement is not mentioned in the document. It is a bit difficult ).