I am using Cocos Creator 3.3.2
I want to use Howerjs with my project.
I install hower with
npm install howler
Also installed types with
npm install @types/howler
The package.json files seems to indicate they are installed correctly.
I import the package with;
import Howl from "howler/src/howler.core.js"
When I try to play an audio file, I am getting error;
Uncaught TypeError: (intermediate value)(intermediate value)(intermediate value) is not a constructor
Can you please provide some assistance on how to get this package integrated.
Sample project files can be found in the link below .
https://drive.google.com/file/d/1GotSkefrEZ2iy5LcbYWXwBYyenemjCl-/view?usp=sharing
I can ask engineering to have a look.
@slackmoehrle were you able to find a solution for this?
Allow me to follow-up with the team.
linrm
#6
You need to import howler like this:
55555_demo.zip (307.1 KB)
@linrm thank you for your help on this.
I want to integrate another library to this project.
I followed the instructions provided in previous post to integrate it;
But I am getting errors when I tried it.
Can you please provide some help integrating this library also ?
You can find the project from this link.
https://drive.google.com/file/d/15PRPCidWDxJ5mBHLfuSMzOdKkXMQWY-q/view?usp=sharing
linrm
#8
You can use rlxfeim like this:
here is the project:
55555_demo2.zip (1.4 MB)
system
closed
#9
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.