moust / cordova-plugin-videoplayer

A Codova plugin to play video with the native MediaPlayer on Android devices.
MIT License
139 stars 102 forks source link

MediaPlayer: error (1, -1021) #52

Closed jcrosby10 closed 6 years ago

jcrosby10 commented 6 years ago

I'm trying to use this plugin but I keep getting this error seemingly randomly. I have 7 videos I need to play in a row and some will play with no error and others will have this error. Its not the same videos either. Sometimes the first video plays sometimes it doesn't. What I find from Googling is that its a generic error that is thrown when an unknown error occurred. Any ideas on what could be causing this?


03-27 13:55:38.440 31798-31811/com.tsi.fitpro V/MediaPlayer: New video size 1920 x 1080
03-27 13:55:38.440 31798-31811/com.tsi.fitpro V/MediaPlayer: callback application
03-27 13:55:38.440 31798-31811/com.tsi.fitpro V/MediaPlayer: back from callback
03-27 13:55:38.440 31798-31808/com.tsi.fitpro V/MediaPlayer: message received msg=1, ext1=0, ext2=0
03-27 13:55:38.440 31798-31808/com.tsi.fitpro V/MediaPlayer: prepared
03-27 13:55:38.440 31798-31808/com.tsi.fitpro V/MediaPlayer: callback application
03-27 13:55:38.440 31798-31808/com.tsi.fitpro V/MediaPlayer: back from callback
03-27 13:55:38.500 31798-31798/com.tsi.fitpro V/MediaPlayer: setVideoSurfaceTexture
03-27 13:55:38.560 31798-31798/com.tsi.fitpro E/MediaPlayer: Should have subtitle controller already set
03-27 13:55:38.560 31798-31798/com.tsi.fitpro W/MediaPlayer: this is IMEDIA_PLAYER_VIDEO_EXIST
03-27 13:55:38.560 31798-31798/com.tsi.fitpro I/MediaPlayer: sendBroadcast android.media.IMediaPlayer.videoexist
03-27 13:55:38.570 31798-31798/com.tsi.fitpro V/MediaPlayer-JNI: start
03-27 13:55:38.570 31798-31798/com.tsi.fitpro V/MediaPlayer: start
03-27 13:55:38.590 31798-31811/com.tsi.fitpro V/MediaPlayer: message received msg=100, ext1=1, ext2=-1021
03-27 13:55:38.590 31798-31811/com.tsi.fitpro E/MediaPlayer: error (1, -1021)
03-27 13:55:38.590 31798-31811/com.tsi.fitpro V/MediaPlayer: callback application
03-27 13:55:38.590 31798-31811/com.tsi.fitpro V/MediaPlayer: back from callback
03-27 13:55:38.600 31798-31808/com.tsi.fitpro V/MediaPlayer: message received msg=6, ext1=0, ext2=0
03-27 13:55:38.600 31798-31808/com.tsi.fitpro V/MediaPlayer: Received MEDIA_STARTED
03-27 13:55:38.600 31798-31808/com.tsi.fitpro V/MediaPlayer: callback application
03-27 13:55:38.600 31798-31808/com.tsi.fitpro V/MediaPlayer: back from callback
03-27 13:55:38.620 31798-31798/com.tsi.fitpro E/MediaPlayer: Error (1,-1021)
03-27 13:55:38.620 31798-31798/com.tsi.fitpro E/VideoPlayer: MediaPlayer.onError(1, -1021)
jcrosby10 commented 6 years ago

Not sure what the problem was but its fixed now so I'm closing the ticket.