Skip to main content
Participant
July 7, 2011
Question

Is necesary hardware acceleration to watch mpeg-4?

  • July 7, 2011
  • 1 reply
  • 737 views

Hi, first of all my English is very poor... sorry. I try to improve.

I can´t watch mpeg-4 in stagewebviews but I can hear it. I read:

"In Android 3.0+, an application must enable hardware acceleration in the Android manifestAdditions element of the AIR application descriptor to display plug-in content in a StageWebView object."

So, unsuccessfully I followed the steps trough this page: Enabling Flash Player and other plug-ins in a StageWebView object.

My problem is when packaging, the error is:

Exception in thread "main" java.lang.NoClassDefFoundError: org/jf/baksmali/main
        at com.adobe.air.apk.APKOutputStream.addClassesDex(APKOutputStream.java:
708)
        at com.adobe.air.apk.APKOutputStream.addApplicationDescriptor(APKOutputS
tream.java:249)
        at com.adobe.air.ApplicationPackager.addSpecialFiles(ApplicationPackager
.java:242)
        at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.j
ava:63)
        at com.adobe.air.ADT.parseArgsAndGo(ADT.java:504)
        at com.adobe.air.ADT.run(ADT.java:361)
        at com.adobe.air.ADT.main(ADT.java:411)
Caused by: java.lang.ClassNotFoundException: org.jf.baksmali.main
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 7 more

Any ideas?

Thanks in advance.

This topic has been closed for replies.

1 reply

jose4mggAuthor
Participant
July 7, 2011

Hi, it's solved.

The problem was a silly thing, adt.bat (used to packaging) called adt.jar but files were in different directories. Once in the same directory, I've packaged the apk file and now I can watch and hear mpeg-4 videos in stagewebviews, so seems to be true, hardware acceleration is necesary in Android 3.0+

Thanks anyway.