Skip to content

Commit 3195a94

Browse files
authored
Merge pull request #41 from jackien1/iOS
added mobile iOS support for audio
2 parents 37ab2eb + 67ccc3e commit 3195a94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/clips/audio/audio.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export class AudioClip extends MediaClip<AudioClipProps> {
4747
public async init(): Promise<void> {
4848
const objectURL = await this.source.createObjectURL();
4949
this.element.setAttribute('src', objectURL);
50+
this.element.load();
5051

5152
await new Promise<void>((resolve, reject) => {
5253
this.element.oncanplay = () => {

0 commit comments

Comments
 (0)