마운트 된 Google Play APK 확장 OBB 파일 내의 파일에서 동영상을로드하려고합니다. 파일을 여는 동안 오류 (1, -2147483648) 오류 :MediaPlayer setDataSource to expansionFilePath가 작동하지 않습니다.
mMediaPlayer = new MediaPlayer();
StorageManager storageManager = (StorageManager)mParentActivity.getSystemService(Context.STORAGE_SERVICE);
String obbPath = ExpansionHelper.getExpansionFilePath(mParentActivity);
File movie = new File(storageManager.getMountedObbPath(obbPath), filename);
Log.d(Constants.TAG, "Movie exists is " + movie.exists());
mMediaPlayer.setDataSource(obbPath);
참고 :이 영화는 로그 '진정한'
E/MediaPlayer를 (27155)에 존재한다. 미디어 플레이어를 언로드 (지정되지 않은 미디어 플레이어 오류, -2147483648) E/MediaPlayer를 (27155) : 상태라는 중지 0 E/MediaPlayer를 (27155) : 오류 (-38, 0)
어떻게 재생할 수 있습니다 APK OBB 확장 파일 (zip 종류 아님)의 영화?
이있어 동일한 문제 그러나 그것은 최신 버전에서 잘 작동하고 있습니다. 어떤 Android 버전에서이 문제가 발생 했습니까? – Gros