Giter Club home page Giter Club logo

Comments (9)

myflashlab avatar myflashlab commented on May 20, 2024 2

Ok, here we go. Here's an easy sample project to reproduce the problem.

Steps to Reproduce

  1. Download the demo app here and try to run the ANE on Android according to the instruction.
  2. Inject your sound file to the Android's res/raw folder using this software.
  3. when scheduling for a LocalNotification to happen, set the sound property like this: setting.sound = "androidSound";
var setting:NotificationAndroidSettings = new NotificationAndroidSettings();
setting.notificationId = 3;
setting.payload = "payload data";
setting.title = "the title";
setting.message = "the message";
setting.time = new Date().getTime() + 5000; // means 5 seconds from now
//setting.sound = file.nativePath; // to play a sound from File.documentsDirectory
setting.sound = "androidSound"; // to play a sound from res/raw folder. Not including the .mp3 file extension
setting.vibrate = true;

Notification.init();
Notification.adjust(setting);

As soon as the notification happens, no sound will be heard and the error shows in AndroidStudio's logcat.

from adobe-runtime-support.

myflashlab avatar myflashlab commented on May 20, 2024 1

While I was writing the Steps to Reproduce section, I told to myself "this is too hard to be tested!" So, you're right. Let me build another ANE for this reason, maybe a localNotification ANE to avoid the hard steps of producing the FCM one. Thanks for the suggestion.

from adobe-runtime-support.

myflashlab avatar myflashlab commented on May 20, 2024 1

Oh, and by the way, this happens in Android ONLY on all AIR SDK versions.

from adobe-runtime-support.

PrimaryFeather avatar PrimaryFeather commented on May 20, 2024

Just to be sure I'm adding the correct labels: this happens on all AIR platforms, right? (I.e. iOS, Android, Desktop).

As for reproducibility: My guess is that if you take the time to create a minimal ANE without dependencies (containing a sound and trying to play it back), and provide Adobe with source + binaries, you'd have higher chances of them looking into it. But it's their call, of course.

from adobe-runtime-support.

PrimaryFeather avatar PrimaryFeather commented on May 20, 2024

Thanks a lot for the info — just saw that Android was mentioned in the title, too. Cheers!!

from adobe-runtime-support.

myflashlab avatar myflashlab commented on May 20, 2024

This also happens with Video files! Video files packaged inside the apk will be compressed and can't be played in our Augmented Reality ANE. I guess if Adobe is fixing the compression problem for sound files, they should also do the same fix for the video files.

from adobe-runtime-support.

FabioNani avatar FabioNani commented on May 20, 2024

Sound problem has solved in Air 29.0 ?

from adobe-runtime-support.

 avatar commented on May 20, 2024

@myflashlab Hi - are you able to confirm that this is sorted now using the configuration settings we've put into the ADT config file? e.g. UncompressedExtensions setting and the change to ensure files in res/raw aren't compressed?

If it's sorted now, please could you close the issue! Thanks

from adobe-runtime-support.

myflashlab avatar myflashlab commented on May 20, 2024

yes, it is fixed now. I confirm :) I didn't know this issue was open.

from adobe-runtime-support.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.