I’m attempting to attach a video MediaStream to the source of a video game object, but nothing seems to be working and all of my attempts have failed so far. I can’t seem to set a video game object to any particular size, and the way video works now in the latest master branch, it seems like it needs to be patched to accept a MediaStream.
Here’s the MediaStream patch for game objects: https://github.com/landongn/phaser/blob/28334e534e5ab778c6d6db9896729e418681f2f1/src/gameobjects/video/Video.js#L835
I’m completely stumped. There’s a video element created by the game object that is null until loadURL is called, but after loadURL happens, there’s no video in the container. It has no height or width, and neither constructor seems to take a size parameter.