microsoft / mixed-reality-extension-sdk

The Mixed Reality Extension SDK enables developers to build 3D world extensions for AltspaceVR, using Node.JS.
MIT License
142 stars 61 forks source link

Live streaming not creating video streaming assets #775

Open MiladNazeri opened 2 years ago

MiladNazeri commented 2 years ago

Using this as a guide - https://github.com/microsoft/mixed-reality-extension-sdk/blob/master/packages/functional-tests/src/tests/livestream-test.ts

I was trying to get live streaming working with the following code:

this.videoActor = MRE.Actor.Create(this.context, {
            actor: {
                name: "videoActor",
                transform: {
                    app: {
                        position: {x: 0, y: 0, z: 0},
                    },
                    local: {
                        scale: {x: 2, y:2, z:2}
                    }
                }
            }
        });

        this.videoStream = this.assets.createVideoStream("testStream", {
            uri: "youtube://5yx6BWlEVcY",
        });

        this.videoInstance = this.videoActor.startVideoStream(this.videoStream.id, {
            volume: 1.0,
        });

        this.videoInstance.resume();

However, this produces the following error message:


  client Not implemented: CreateAsset of new asset type +0ms
  app Start failed 8a64adb6-2f8a-41ff-b1aa-ebfd090f126c. Error: Creation/Loading of asset testStream failed: Not implemented: CreateAsset of new asset type +863ms
  app SetState failed 8a64adb6-2f8a-41ff-b1aa-ebfd090f126c. Error: Creation/Loading of asset testStream failed: Not implemented: CreateAsset of new asset type +0ms```

Using just a normal mp4 in my public folder worked just fine, but not sure what I'm doing different than what your functional test says.