|
@@ -10,7 +10,7 @@ const connection = new Connection(testConfig);
|
|
|
|
|
|
console.log("sdk", sdk);
|
|
|
console.log("sdk", connection);
|
|
|
-const url = "webrtc://demo-kms.4dage.com/live/livestream";
|
|
|
+const url = "webrtc://demo-kms.4dage.com/live/test1";
|
|
|
sdk.start(url);
|
|
|
|
|
|
console.log("第一个");
|
|
@@ -81,24 +81,24 @@ window.connection = connection;
|
|
|
// }
|
|
|
// });
|
|
|
// 正转
|
|
|
-connection.socket.emit("getVideo", {
|
|
|
- videoList: ["0/0_1_0", "0/0_1_1", "0/0_1_2"],
|
|
|
- sessionId: "1",
|
|
|
- sceneCode: testConfig.sceneCode,
|
|
|
- roomId: testConfig.roomId,
|
|
|
- userId: testConfig.userId,
|
|
|
-});
|
|
|
+// connection.socket.emit("getVideo", {
|
|
|
+// videoList: ["0/0_1_0", "0/0_1_1", "0/0_1_2"],
|
|
|
+// // sessionId: "1",
|
|
|
+// sceneCode: testConfig.sceneCode,
|
|
|
+// roomId: testConfig.roomId,
|
|
|
+// userId: testConfig.userId,
|
|
|
+// });
|
|
|
|
|
|
-connection.socket.emit("getRotateVideo", {
|
|
|
- videoPath: "sample-5s",
|
|
|
- sessionId: "3",
|
|
|
- sceneCode: testConfig.sceneCode,
|
|
|
- roomId: testConfig.roomId,
|
|
|
- userId: testConfig.userId,
|
|
|
- sangle: "0",
|
|
|
- eangle: "360",
|
|
|
- reverses: true,
|
|
|
-});
|
|
|
+// connection.socket.emit("getRotateVideo", {
|
|
|
+// videoPath: "0/0_1_0",
|
|
|
+// // sessionId: "3",
|
|
|
+// sceneCode: testConfig.sceneCode,
|
|
|
+// roomId: testConfig.roomId,
|
|
|
+// userId: testConfig.userId,
|
|
|
+// sangle: "0",
|
|
|
+// eangle: "360",
|
|
|
+// reverses: true,
|
|
|
+// });
|
|
|
|
|
|
connection.socket.on("getSocketVideo", async (data) => {
|
|
|
console.log("getSocketVideo", data);
|