Here's something simple that I'm running that will reproduce the issue:
XWalkView xWalkView = new XWalkView(this);
setContentView(xWalkView);
xWalkView.load("http://techslides.com/demos/sample-videos/small.mp4", null);
That will result in:
W/ResourceType﹕ No package identifier when getting value for resource
number 0x00000000
E/cr_MediaThrottler﹕ Exception happens while creating the watch dog player.
android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.Resources.getValue(Resources.java:1343)
at android.content.res.Resources.getValue(Resources.java:1323)
at
android.content.res.Resources.openRawResourceFd(Resources.java:1285)
at android.media.MediaPlayer.create(MediaPlayer.java:921)
at android.media.MediaPlayer.create(MediaPlayer.java:904)
at
org.chromium.content.browser.MediaThrottler$StartWatchDogTask.doInBackground(MediaThrottler.java:107)
at
org.chromium.content.browser.MediaThrottler$StartWatchDogTask.doInBackground(MediaThrottler.java:101)
at android.os.AsyncTask$2.call(AsyncTask.java:292)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
E/cr_MediaThrottler﹕ Unable to create watch dog player, treat it as server
crash.
My best guess is that it's not able to find the empty.wav file in the
/res/raw directory. However, I can confirm that the file is there in the
apk.
On Thu, Aug 4, 2016 at 5:36 PM, Fu, Junwei <[email protected]> wrote:
> It would be helpful if you could share your partial code or simplify your
> usage scenario to reproduce the issue.
>
>
>
> Thanks,
>
> Junwei.
>
>
>
> *From:* Crosswalk-help [mailto:[email protected]
> project.org] *On Behalf Of *Justin Li
> *Sent:* Friday, August 05, 2016 3:36 AM
> *To:* [email protected]
> *Subject:* [Crosswalk-help] MediaThrottler Resource not found exception.
>
>
>
> Hello,
>
>
>
> I'm running an android application with crosswalk embedded in it. I'm
> encountering an issue when medias (either video or audio) start playing.
> When this happens, the mediathrottler throws:
>
>
>
> cr_MediaThrottler﹕ Exception happens while creating the watch dog player.
>
> android.content.res.Resources$NotFoundException: Resource ID #0x0
>
>
>
> Which eventually causes the medias to throttle after a certain number of
> playback. My guess is it's having trouble accessing the empty.wav resource.
> I've confirm that empty.wav was in the /res/raw directory.
>
>
>
> I'm not quite sure if I'm missing something or doing anything wrong.
> Please advise and thanks.
>
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help