c-smile / sciter-sdk

Sciter is an embeddable HTML/CSS/scripting engine
http://sciter.com
Other
2.11k stars 223 forks source link

[Bug][Windows] Audio.play() after .pause() crash #162

Closed MaherFa closed 4 years ago

MaherFa commented 4 years ago

Isuue / Bug:

in the rare case of loading an mp3 audio file without an extension or with a random extension (e.g mp3File.whatever)

loading an mp3 file, the file loads and plays fine and returns an Audio that can be paused. after trying to call .play() on the Audio object the app crashes.

the behavior is inconsistent and works sometimes and crashes other times.

Minimal code to reproduce:

var myAudio = view.audio("file.mp3").play(); // loads fine and plays
myAudio.pause(); // pauses fine
myAudio.play(); // crash here

More info

Windows 10 x64 19H2 Version 4.4.2.8 (x32/x64), also present in earlier versions. using var myAudio = view.audio("mp3FileWihtExt.mp3").play(); pauses and plays as expected. at first I thought the issue was related to the mp3 file name having no extension, but now it crashes regardless of the file name.

MaherFa commented 4 years ago

Thank you @c-smile this issue is now fixed in 4.4.4.0 🎉