동영상 처음부분에 8바이트를 붙인 동영상이 있어 이 부분을 제외하고 재생시켜주려고 합니다.
RandomAccessFile rdFile = new RandomAccessFile(path, "r");
rdFile.seek(8);
FileDescriptor fd = rdFile.getFD();
MediaPlayer mPlayer;
mPlayer.setDataSource(fd);
대충이런식으로 파일을 randomaccessfile로 불러와서 seek으로 8바이트만 옮기면 되는거 아닌가요??
근데 이런식으로 재생시키면 에러가 발생합니다.
혹시 다른방법으로 앞부분 바이트를 제외하고 파일 재생시키는방법이 있을까요?