File R.raw.empty(empty.wav) sample rate is not supported by Android.
Reported by
forest...@gmail.com,
Dec 9 2016
|
|
Issue descriptionExample URL: http://v.baidu.com/ Steps to reproduce the problem: 1. Goto http://v.baidu.com/ 2. Click one video 3. adb logcat shows Exception: MediaPlayer-JNI E QCMediaPlayer mediaplayer NOT present MediaPlayer E error (1, -2147483648) D create failed: D java.io.IOException: Prepare failed.: status=0x1 D at android.media.MediaPlayer._prepare(Native Method) D at android.media.MediaPlayer.prepare(MediaPlayer.java:1135) D at android.media.MediaPlayer.create(MediaPlayer.java:933) D at android.media.MediaPlayer.create(MediaPlayer.java:904) D at org.chromium.content.browser.MediaThrottler$StartWatchDogTask.doInBackground(MediaThrottler.java:107) D at org.chromium.content.browser.MediaThrottler$StartWatchDogTask.doInBackground(MediaThrottler.java:101) D at android.os.AsyncTask$2.call(AsyncTask.java:292) D at java.util.concurrent.FutureTask.run(FutureTask.java:237) D at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) D at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) D at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) D at java.lang.Thread.run(Thread.java:818) cr_MediaThrottler E Unable to create watch dog player, treat it as server crash. Failed to create Android MediaPlayer. 4.Click the second video, the third video. What is the expected behavior? Succeed to play video. What went wrong? Cannot play the third video, because of the exception. Did this work before? N/A Is it a problem with Flash or HTML5? N/A Does this work in other browsers? N/A Chrome version: 51.0.2704.81 Channel: n/a OS Version: Flash Version: Shockwave Flash 23.0 r0 Media file src/content/public/android/java/res/raw/empty.wav sample rate is 22050Hz, but Android only support 8000, 16000 and 44100Hz. Android specific: https://developer.android.com/guide/appendix/media-formats.html PCM/WAVE (Android 4.1+) 8- and 16-bit linear PCM (rates up to limit of hardware). Sampling rates for raw PCM recordings at 8000, 16000 and 44100 Hz. WAVE (.wav) That's why failed to create Android MediaPlayer on some platforms. Chromium call code: mPlayer = MediaPlayer.create(mContext, R.raw.empty); Return value is null, because R.raw.empty(empty.wav) sample rate is 22050 Hz, MediaPlayer cannot play empty.wav too.
,
Dec 12 2016
Actually it's easy to reproduce on v51, even on v55, the bug will exist if use WMPA. There is no need to patch if remove WMPA.
,
Dec 12 2016
WMPA is not used by default anymore; only HLS.
,
Dec 12 2016
Err, only for HLS. |
|
►
Sign in to add a comment |
|
Comment 1 by dalecur...@chromium.org
, Dec 9 2016