Recorder bug #301
Recorder bug
#301
-
Hi!
Causing the simulator and real clocks (GTR4 /ZeppOS 3) to completely freeze. Is it a bug? |
Beta Was this translation helpful? Give feedback.
Answered by
silver-zepp
Feb 8, 2024
Replies: 1 comment 5 replies
-
Hey @mazezone . The media library is currently unsupported by the Simulator so you will have to use a dummy object like this: // just a test (doesn't work on the Simulator yet)
import { SoundPlayer } from "../include/libs/easy-media"
// actual sound object (to use with a physical device)
//const player = new SoundPlayer("click.mp3", true);
// dummy object (to use on a simulator)
const player = { play: function() {}, destroy: function() {} }; To address the freezing further, try using this library instead and see if the behavior persists: https://github.com/silver-zepp/zeppos-easy-media |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh, I see @mazezone. This very well might be a bug. Just make sure that you are stopping the recorder and deregistering all the callbacks in
onDestroy()
or prior. If that's the case, then it's for sure a bug and we'll have to look into it as soon as possible.@StarRrScreaM thanks for the report as well. Try removing the true flag from the
SoundPlayer
constructor. This should get rid of the lag you experience but you'll have to make sure that the files that you are trying to play are as short as possible, otherwise when another sound overlaps the ongoing one, it will be ignored. And if you still experience bug with sound being played only once then we might have some new bug around. Try the …