kaplayjs / kaplay

🦖 A JavaScript/TypeScript Game Library that feels like a game, fun
https://kaplayjs.com
MIT License
530 stars 35 forks source link

feat: video support #157

Open niceEli opened 4 months ago

niceEli commented 4 months 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 4 months ago

i think this is awesome, and should be added

mflerackers commented 4 months ago

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

SpcFORK commented 4 months 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