Skip to content

Commit 1fa30a0

Browse files
committed
⬆️ upgrade sdk version
1 parent 2a54816 commit 1fa30a0

File tree

13 files changed

+50
-63
lines changed

13 files changed

+50
-63
lines changed

react-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12-
"live-dragon": "^1.9.10",
12+
"live-dragon": "^1.10.1",
1313
"react": "^18.2.0",
1414
"react-dom": "^18.2.0"
1515
},

react-demo/src/App.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ function App() {
1515
<Launcher
1616
url={url}
1717
iceConfig={iceConfig}
18-
// autorunRivatuner: true 获取网络信息
19-
options={{ autorunRivatuner: true }}
18+
// autorunRivatuner: true 获取网络信息, enableControlPanel: 开启控制面板
19+
// 详见 https://www.npmjs.com/package/live-dragon
20+
options={{ autorunRivatuner: true, enableControlPanel: true }}
2021
/>
2122
</div>
2223
)

react-demo/src/launcher.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,6 @@ function LDLauncher(props: Props) {
5353
ref={containerRef}
5454
style={{ width: '100%', height: '100%', position: 'relative' }}
5555
></div>
56-
<div
57-
style={{
58-
position: 'fixed',
59-
left: '0px',
60-
top: '0px',
61-
background: 'rgba(0, 0, 0, 0.3)',
62-
color: '#fff',
63-
padding: '10px',
64-
}}
65-
>
66-
{data &&
67-
Object.keys(data).map((key) => (
68-
<p key={key}>
69-
{key}: {data[key as keyof typeof data]}
70-
</p>
71-
))}
72-
</div>
7356
</>
7457
)
7558
}

react-demo/yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -554,12 +554,12 @@ json5@^2.2.2:
554554
resolved "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
555555
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==
556556

557-
live-dragon@^1.9.10:
558-
version "1.9.10"
559-
resolved "https://registry.npmjs.org/live-dragon/-/live-dragon-1.9.10.tgz#7f274fb8bbbff801ac76a30beb69c3c2a9d3db94"
560-
integrity sha512-XZoJS5KJ0mkt/ySUf0jRvH1ePjUwO5ZRCs+HfPTtxaqqyt/eVa5b8pX02u7qb6NoyDVWvYcRuiWR+ja/hkuN1A==
557+
live-dragon@^1.10.1:
558+
version "1.10.1"
559+
resolved "https://registry.yarnpkg.com/live-dragon/-/live-dragon-1.10.1.tgz#945c65e2d1ff1e64f4ff5dc19b138ab69435813e"
560+
integrity sha512-Aqn8DfXjVlIAALVvJaBKVkKs9/B2Ag3I2NNyJjva2LYzAjMmXhfnuA7V9wG/77ftfHr6G9y+/ZJzYPMg0K5x3Q==
561561
dependencies:
562-
ray-streaming "2.19.8"
562+
ray-streaming "2.20.1"
563563
rxjs "^7.4.0"
564564

565565
loose-envify@^1.1.0:
@@ -617,10 +617,10 @@ postcss@^8.4.21:
617617
picocolors "^1.0.0"
618618
source-map-js "^1.0.2"
619619

620-
ray-streaming@2.19.8:
621-
version "2.19.8"
622-
resolved "https://registry.npmjs.org/ray-streaming/-/ray-streaming-2.19.8.tgz#745776f0a61595896afefce39f9f19b6406cfbf0"
623-
integrity sha512-iGpxOPE/ZNUtX+bGMzW5SnvBZocyuyBTzugrSony+FfoW748oD1NTBKNRBsgSO07inrmjb8VMrE2ID/j0xVaXA==
620+
ray-streaming@2.20.1:
621+
version "2.20.1"
622+
resolved "https://registry.yarnpkg.com/ray-streaming/-/ray-streaming-2.20.1.tgz#5c89275cc8517550cb4cc1ca33d6ea1a1fe6ec1f"
623+
integrity sha512-UiODksNu+Pvz1jXOoey62WkNGv/S1ENS5Vl2ZciDRe9hstXKkKxaqwodYmyyUKiXXN7ChI37May8QTtFy1CLKA==
624624
dependencies:
625625
resize-observer-polyfill "^1.5.1"
626626
rxjs "^7.4.0"

svelte-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"vite": "^4.2.0"
2020
},
2121
"dependencies": {
22-
"live-dragon": "^1.9.10"
22+
"live-dragon": "^1.10.1"
2323
}
2424
}

svelte-demo/src/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<main class="container">
15-
<Launcher {url} {iceConfig} />
15+
<Launcher {url} {iceConfig} options={{ enableControlPanel: true, autorunRivatuner: true }} />
1616
</main>
1717

1818
<style>

svelte-demo/yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,12 @@ kleur@^4.1.5:
426426
resolved "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz#95106101795f7050c6c650f350c683febddb1780"
427427
integrity sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==
428428

429-
live-dragon@^1.9.10:
430-
version "1.9.10"
431-
resolved "https://registry.npmjs.org/live-dragon/-/live-dragon-1.9.10.tgz#7f274fb8bbbff801ac76a30beb69c3c2a9d3db94"
432-
integrity sha512-XZoJS5KJ0mkt/ySUf0jRvH1ePjUwO5ZRCs+HfPTtxaqqyt/eVa5b8pX02u7qb6NoyDVWvYcRuiWR+ja/hkuN1A==
429+
live-dragon@^1.10.1:
430+
version "1.10.1"
431+
resolved "https://registry.yarnpkg.com/live-dragon/-/live-dragon-1.10.1.tgz#945c65e2d1ff1e64f4ff5dc19b138ab69435813e"
432+
integrity sha512-Aqn8DfXjVlIAALVvJaBKVkKs9/B2Ag3I2NNyJjva2LYzAjMmXhfnuA7V9wG/77ftfHr6G9y+/ZJzYPMg0K5x3Q==
433433
dependencies:
434-
ray-streaming "2.19.8"
434+
ray-streaming "2.20.1"
435435
rxjs "^7.4.0"
436436

437437
magic-string@^0.25.7:
@@ -553,10 +553,10 @@ queue-microtask@^1.2.2:
553553
resolved "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"
554554
integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
555555

556-
ray-streaming@2.19.8:
557-
version "2.19.8"
558-
resolved "https://registry.npmjs.org/ray-streaming/-/ray-streaming-2.19.8.tgz#745776f0a61595896afefce39f9f19b6406cfbf0"
559-
integrity sha512-iGpxOPE/ZNUtX+bGMzW5SnvBZocyuyBTzugrSony+FfoW748oD1NTBKNRBsgSO07inrmjb8VMrE2ID/j0xVaXA==
556+
ray-streaming@2.20.1:
557+
version "2.20.1"
558+
resolved "https://registry.yarnpkg.com/ray-streaming/-/ray-streaming-2.20.1.tgz#5c89275cc8517550cb4cc1ca33d6ea1a1fe6ec1f"
559+
integrity sha512-UiODksNu+Pvz1jXOoey62WkNGv/S1ENS5Vl2ZciDRe9hstXKkKxaqwodYmyyUKiXXN7ChI37May8QTtFy1CLKA==
560560
dependencies:
561561
resize-observer-polyfill "^1.5.1"
562562
rxjs "^7.4.0"

umd-demo/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
const { Launcher, MobileLauncher } = LiveDragon
2626
const container = document.querySelector('.container')
2727
let isPC = true
28-
28+
2929
const signaling = `replace_signaling_url_here`
3030
const iceConfig = [
3131
{
@@ -35,7 +35,10 @@
3535
},
3636
]
3737
if (isPC) {
38-
const launcher = new Launcher(signaling, iceConfig, container)
38+
const launcher = new Launcher(signaling, iceConfig, container, {
39+
enableControlPanel: true,
40+
autorunRivatuner: true,
41+
})
3942
} else {
4043
const launcher = new MobileLauncher(signaling, iceConfig, container)
4144
}

vanilla-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"rollup": "^3.20.2"
1313
},
1414
"dependencies": {
15-
"live-dragon": "^1.9.10"
15+
"live-dragon": "^1.10.1"
1616
}
1717
}

vanilla-demo/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ window.onload = () => {
1515
},
1616
]
1717
if (isPC) {
18-
launcher = new Launcher(signaling, iceConfig, container)
18+
launcher = new Launcher(signaling, iceConfig, container, { enableControlPanel: true, autorunRivatuner: true })
1919
} else {
2020
launcher = new MobileLauncher(signaling, iceConfig, container)
2121
}

0 commit comments

Comments
 (0)