Skip to content

Commit 8daa65e

Browse files
committed
Local Video src format update in index.ts and README update
1 parent f3170dc commit 8daa65e

3 files changed

Lines changed: 17 additions & 19 deletions

File tree

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ _The fastest way to launch your virtual club, gallery, or event space — powere
1212
- **🎛 VideoGuide Component**
1313
The scene’s “brain.” Connects to the shared M1D content network and syncs live playback across all visitors. Includes a sleek channel selector UI.
1414

15-
- **📺 Local Content Support**
16-
Showcase your own content by adding a playlist to `index.ts`. A “Venue Content” button appears automatically in the UI for a seamless blend of global and local programming.
15+
- **📺 Local Video Support**
16+
Showcase your own video by adding a video URL to `index.ts`. A “Venue Content” button appears automatically in the UI for a seamless blend of global and local programming.
1717

1818
- **🌀 Custom Mesh Screen**
1919
A high-performance, procedurally curved mesh screen for vibrant playback and excellent framerate — even under heavy scene load.
@@ -57,12 +57,12 @@ export async function main() {
5757
// =============================================================================
5858

5959
// --- Initialize the All-in-One Video Guide Component ---
60-
// The local playlist is defined directly inside the function call for conciseness.
61-
const videoGuide = await createVideoGuide({
62-
localPlaylist: [{
63-
src: '' // <<---add your https://your-local-video-url.m3u8 inside ''
64-
}]
65-
})
60+
// The local video is defined directly inside the function call for conciseness.
61+
const videoGuide = await createVideoGuide({
62+
localVideo: {
63+
src: 'https://demo.unified-streaming.com/k8s/features/stable/video/tears-of-steel/tears-of-steel.ism/.m3u8' // <<--Replace with your video URL or leave empty ''s for no local video button.
64+
}
65+
})
6666

6767
// Create the physical screen that will display the video.
6868
// This uses the `createCurvedScreen` component from the library.
@@ -80,7 +80,7 @@ export async function main() {
8080
videoTexture: videoGuide.videoTexture
8181
});
8282

83-
// Load ground, floor, and other assets here...
83+
// Load ground, floor, and other assets here...
8484
}
8585
```
8686

@@ -91,7 +91,7 @@ export async function main() {
9191
Make the space your own:
9292

9393
- 🎬 **Add Your Video**
94-
Edit `src/index.ts` and paste your HLS URL (`.m3u8`) into the `localPlaylist`.
94+
Edit `src/index.ts` and paste your HLS URL (`.m3u8`) into the `localVideo` object.
9595

9696
- 🧱 **Swap 3D Models**
9797
Replace `models/ground1Parcel.glb` or `DF_WithSpinning_Shuffle_Float2.glb` with custom `.glb` assets.
@@ -118,4 +118,3 @@ Join us for support, sneak peeks, and creative inspiration:
118118
**Build boldly. Dance freely. Create something unforgettable.**
119119

120120
---
121-

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
},
1212
"devDependencies": {
1313
"@dcl/asset-packs": "latest",
14-
"@dcl/js-runtime": "7.8.12",
15-
"@dcl/sdk": "latest"
14+
"@dcl/js-runtime": "7.8.15",
15+
"@dcl/sdk": "^7.8.15"
1616
},
1717
"engines": {
1818
"node": ">=16.0.0",
@@ -25,6 +25,6 @@
2525
"trailingComma": "none"
2626
},
2727
"dependencies": {
28-
"@m1d/dcl-components": "^1.1.54"
28+
"@m1d/dcl-components": "^1.1.55"
2929
}
3030
}

src/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ export async function main() {
3030
// This single call now handles fetching, fallback, UI, and the scheduler.
3131
// The local playlist is defined directly inside the function call for conciseness.
3232
const videoGuide = await createVideoGuide({
33-
localPlaylist: [{
34-
//add your https://your-local-video-url.m3u8 inside ''
35-
src: ''
36-
}]
37-
})
33+
localVideo: {
34+
src: 'https://demo.unified-streaming.com/k8s/features/stable/video/tears-of-steel/tears-of-steel.ism/.m3u8' // <<--Replace with your video URL or leave empty ''s for no local video button.
35+
}
36+
});
3837

3938
// Create the physical screen that will display the video.
4039
// This uses the `createCurvedScreen` component from the library.

0 commit comments

Comments
 (0)