YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
24 stars 8 forks source link

Allow video_open to accept a buffer as the input as well properly check the supplied file type #8024

Open EvanSkiStudios opened 6 days ago

EvanSkiStudios commented 6 days ago

Is your feature request related to a problem?

playing videos in GM is cool, I also understand YoYo doesn't want to ship a codec with GM Currently, the function does some black box stuff as well, and will only accept file names/paths that end with a .mp4 extension you can supply the exact same file but with a different file extension and GM will not play it like a video file, despite being a mp4 file just renamed.

Describe the solution you'd like

so not only should the file extension name thing be changed, it would be nifty if we could supply a buffer to the function and have the video played from that buffer, under the hood GM already loads the video into a buffer, so it would be simple to just supply our own for it to use.

Describe alternatives you've considered

I have tried doing this myself but the function will not accept anything other than a file or file path with a specified.mp4 extension so the function should be tweaked to be smarter about the file being supplied even if the .mp4 is named filename.myt for example

Additional context

No response

stuckie commented 5 days ago

If you are having issues with playing back a video, please submit a bug report with an attached project and problem video, so we can take a look.