polybiusproxy / hxCodec

Haxe library for native video playback on HaxeFlixel and OpenFL.
https://lib.haxe.org/p/hxCodec
Mozilla Public License 2.0
108 stars 70 forks source link

mp4 video is in path, not playing, app crashing #299

Open HeyCodeSnooper opened 6 months ago

HeyCodeSnooper commented 6 months ago

i have a video in my haxeflixel project named secret.mp4, for a little easter egg >:) and i get an error message on close when the FlxButton i made is pressed and crashes the game in the vscode terminal (screenshot attached)

screenshot: Screenshot 2024-04-06 221729


this is the callback function that isnt finding the file.

function funny():Void { var funny:FlxVideo = new FlxVideo(); funny.onEndReached.add(funny.dispose); funny.play("assets/videos/secret.mp4"); cutsceneTimer.start(12, donewithfunny, 1); }


EDIT: the file IS there! (screenshot) Screenshot 2024-04-06 223105