libstreaming icon indicating copy to clipboard operation
libstreaming copied to clipboard

Android-Android Couldn't skip mp4 header :/

Open rerlanggas opened this issue 9 years ago • 2 comments

I am using example3 and getting this error "Couldn't skip mp4 header :/"

and got IOException : Try Again

for this code in VideoStream

try { byte buffer[] = new byte[4]; // Skip all atoms preceding mdat atom while (!Thread.interrupted()) { while (is.read() != 'm'); is.read(buffer,0,3); if (buffer[0] == 'd' && buffer[1] == 'a' && buffer[2] == 't') break; } } catch (IOException e) { Log.e(TAG,"Couldn't skip mp4 header :/"); stop(); throw e; }

rerlanggas avatar Jun 25 '15 03:06 rerlanggas

I also encountered the same problem, how do you solve this problem?

daobenzhen avatar Apr 24 '17 03:04 daobenzhen

@daobenzhen I'm sorry dude, I think the device is not supported mp4 method, just change your device

rerlanggas avatar Apr 25 '17 04:04 rerlanggas