Skip to content

Commit 8f40ea8

Browse files
committed
2 parents 45b634c + 9e11b74 commit 8f40ea8

221 files changed

Lines changed: 196 additions & 154 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/page.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export default function FirstPost() {
136136
src={mainVideo}
137137
title="DreamGen Overview"
138138
className={styles.videoElement}
139+
defaultVolume={1.0}
139140
controls
140141
/>
141142
</div>
@@ -501,6 +502,19 @@ export default function FirstPost() {
501502
</div>
502503
</div>
503504

505+
<div className={styles.blogContent}>
506+
<p style={{
507+
fontSize: '0.9rem',
508+
opacity: 0.85,
509+
fontStyle: 'italic',
510+
marginTop: '1rem',
511+
marginBottom: '2rem',
512+
textAlign: 'center'
513+
}}>
514+
Prompt: "{selectedInteractivePrompting.prompt}"
515+
</p>
516+
</div>
517+
504518
<div className={styles.blogContent}>
505519
<h3 style={{
506520
display: 'flex',

components/LazyVideo.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState, useEffect, useRef } from 'react';
22
import styles from '../styles/Home.module.css';
33

4-
const LazyVideo = ({ src, title, ...props }) => {
4+
const LazyVideo = ({ src, title, defaultVolume, ...props }) => {
55
const [isVisible, setIsVisible] = useState(false);
66
const [isLoading, setIsLoading] = useState(true);
77
const videoRef = useRef(null);
@@ -205,6 +205,15 @@ const LazyVideo = ({ src, title, ...props }) => {
205205
exitFullscreen: 'Exit fullscreen',
206206
}
207207
});
208+
209+
// Set custom volume if specified
210+
if (playerRef.current && defaultVolume <= 1.0) {
211+
playerRef.current.volume = defaultVolume;
212+
// Also set it directly on the video element
213+
if (videoElementRef.current) {
214+
videoElementRef.current.volume = defaultVolume;
215+
}
216+
}
208217

209218
// Check video element is still valid
210219
if (!videoElementRef.current) return;

data/videoData.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,46 +1140,49 @@ export const InteractivePromptingVideos = [
11401140
id: 'push_elevator',
11411141
label: 'Push Elevator Button',
11421142
policyRolloutVideo: '/labs/gear/videos/agi_interactive_prompting/hsl/Open_the_elevator.m3u8',
1143+
prompt: 'Move forward and press the elevator button with right arm',
11431144
},
11441145
{
11451146
id: 'pop_balloon',
11461147
label: 'Pop the Balloon',
11471148
policyRolloutVideo: '/labs/gear/videos/agi_interactive_prompting/hsl/Balloon_pop.m3u8',
1149+
prompt: 'Pick up the knife with right arm and pop the balloon with the knife',
11481150
},
11491151
{
11501152
id: 'pull_cart',
11511153
label: 'Pull Cart',
11521154
policyRolloutVideo: '/labs/gear/videos/agi_interactive_prompting/hsl/Pull_the_cart.m3u8',
1155+
prompt: 'Grab the cart with both arms and move backwards.',
11531156
},
11541157
{
11551158
id: 'insert_lab',
11561159
label: 'Insert Lab Equipment',
11571160
policyRolloutVideo: '/labs/gear/videos/agi_interactive_prompting/hsl/Lab_Equipment_Insertion.m3u8',
1161+
prompt: 'Take the tube from the human\'s hand and place it into the tube holder.',
11581162
},
11591163
{
11601164
id: 'water_plant',
11611165
label: 'Water Plant',
11621166
policyRolloutVideo: '/labs/gear/videos/agi_interactive_prompting/hsl/Water_the_plant.m3u8',
1167+
prompt: 'Water the plant',
11631168
},
11641169
{
11651170
id: 'lost_found',
11661171
label: 'Place in Lost & Found',
11671172
policyRolloutVideo: '/labs/gear/videos/agi_interactive_prompting/hsl/Lost_and_Found.m3u8',
1168-
},
1169-
{
1170-
id: 'match_shape',
1171-
label: 'Match Shape',
1172-
policyRolloutVideo: '/labs/gear/videos/agi_interactive_prompting/hsl/Maneuver_shape.m3u8',
1173+
prompt: 'Pick up a forgotten pair of glasses and bring them to the \"Lost and Found\" box.',
11731174
},
11741175
{
11751176
id: 'open_door',
11761177
label: 'Open the Door',
11771178
policyRolloutVideo: '/labs/gear/videos/agi_interactive_prompting/hsl/Open_the_door.m3u8',
1179+
prompt: 'Move forward and open the door.',
11781180
},
11791181
{
11801182
id: 'whisk_bowl',
11811183
label: 'Whisk the Bowl',
11821184
policyRolloutVideo: '/labs/gear/videos/agi_interactive_prompting/hsl/Whisk_the_bowl.m3u8',
1185+
prompt: 'Right arm whisks the bowl',
11831186
},
11841187
];
11851188

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#EXTM3U
22
#EXT-X-VERSION:3
3-
#EXT-X-TARGETDURATION:2
3+
#EXT-X-TARGETDURATION:7
44
#EXT-X-MEDIA-SEQUENCE:0
5-
#EXTINF:1.733333,
5+
#EXTINF:7.437500,
66
Lab_Equipment_Insertion_000.ts
77
#EXT-X-ENDLIST
Binary file not shown.

public/labs/gear/videos/agi_interactive_prompting/hsl/Maneuver_shape.m3u8

Lines changed: 0 additions & 9 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.

public/labs/gear/videos/agi_interactive_prompting/hsl/Pull_the_cart.m3u8

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#EXT-X-MEDIA-SEQUENCE:0
55
#EXTINF:10.416667,
66
Pull_the_cart_000.ts
7-
#EXTINF:10.416667,
7+
#EXTINF:0.166667,
88
Pull_the_cart_001.ts
9-
#EXTINF:0.416667,
10-
Pull_the_cart_002.ts
119
#EXT-X-ENDLIST
Binary file not shown.

0 commit comments

Comments
 (0)