You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when playing a region, the region-in event and region-out event fired almost same time(less than 20 micro-seconds) which lead to playing region fails
#3781
Open
alexzhangmaker opened this issue
Jul 11, 2024
· 3 comments
the console output:
timeRegionIn:1720684628131===>timeRegionOut:1720684628138, delta:7
here the number is Date().getTime(), and the delta is the difference between in and out event.
And below is the region to be play, and we can see the start and end is "start": 6.310421089646, "end": 8.87566764644661
{
"listeners": {
"update": {},
"update-end": {},
"play": {},
"click": {},
"dblclick": {},
"remove": {}
},
"totalDuration": 237.145397,
"numberOfChannels": 1,
"minLength": 0,
"maxLength": null,
"contentEditable": false,
"subscriptions": [
null,
null,
null
],
"id": "region-g4950a6n02g",
"start": 6.310421089646,
"end": 8.87566764644661,
"drag": false,
"resize": true,
"color": "rgba(58.7709341160575, 222.1914898683647, 59.940289305805834, 0.5)",
"channelIdx": -1,
"element": {},
"content": {}
}
And this happens very often.
Can anyone please help to figure out the reason? Thanks
The text was updated successfully, but these errors were encountered:
The reason is probably the browser seeking back and forth when the audio is unbuffered. I’ve seen this behavior in Safari.
You can set a backend: 'WebAudio' option to mitigate this.
the console output:
timeRegionIn:1720684628131===>timeRegionOut:1720684628138, delta:7
here the number is Date().getTime(), and the delta is the difference between in and out event.
And below is the region to be play, and we can see the start and end is "start": 6.310421089646, "end": 8.87566764644661
{
"listeners": {
"update": {},
"update-end": {},
"play": {},
"click": {},
"dblclick": {},
"remove": {}
},
"totalDuration": 237.145397,
"numberOfChannels": 1,
"minLength": 0,
"maxLength": null,
"contentEditable": false,
"subscriptions": [
null,
null,
null
],
"id": "region-g4950a6n02g",
"start": 6.310421089646,
"end": 8.87566764644661,
"drag": false,
"resize": true,
"color": "rgba(58.7709341160575, 222.1914898683647, 59.940289305805834, 0.5)",
"channelIdx": -1,
"element": {},
"content": {}
}
And this happens very often.
Can anyone please help to figure out the reason? Thanks
The text was updated successfully, but these errors were encountered: