Skip to content

Commit b3f5395

Browse files
committed
fix: namespace fixed
1 parent ffbfe2b commit b3f5395

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/moq-publisher/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ export class PublisherMoq extends HTMLElement {
120120
const opts: PublisherOptions = {
121121
url: this.getAttribute("src")!,
122122
fingerprintUrl: this.getAttribute("fingerprint")!,
123-
namespace: [...(this.getAttribute("namespace")! || crypto.randomUUID())],
123+
namespace: [
124+
this.getAttribute("namespace")! || crypto.randomUUID()
125+
],
124126
media: this.mediaStream,
125127
video: videoConfig,
126128
audio: audioConfig,

samples/publisher/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<body>
22
<script src="/moq-player/moq-publisher.iife.js"></script>
3-
<publisher-moq src="https://localhost:4443?namespace=bbb" fingerprint="https://localhost:4443/fingerprint">
3+
<publisher-moq src="https://localhost:4443" namespace="bbb" fingerprint="https://localhost:4443/fingerprint">
44
</publisher-moq>
5-
</body>
5+
</body>

0 commit comments

Comments
 (0)