marklovers / kaplay

🦖 A JavaScript game library
https://kaplayjs.com
MIT License
230 stars 14 forks source link

feat: video support #157

Open niceEli opened 2 weeks ago

niceEli commented 2 weeks ago

idk if useful but would be good if you could have a node that plays a video

k.loadSprite("testVid", "./mp3s/testVid.mov")
k.add([
  k.sprite("testVid")
]);

and also the controls like with audio component would be in video component (like pause, play, loop, detune, start position)

amyspark-ng commented 2 weeks ago

i think this is awesome, and should be added

mflerackers commented 2 weeks ago

I think playing a video on a texture would be most powerful? Since you can still use shaders and vertex deformation?

SpcFORK commented 1 week ago

I think playing a video on a texture would be most powerful? Since you can still use shaders and vertex deformation?

Yes, would be nice