blanchon commited on
Commit
b5ad80c
·
1 Parent(s): 8344179
demo/src/routes/[workspaceId]/+page.svelte CHANGED
@@ -41,7 +41,7 @@
41
 
42
  // Load robotics rooms
43
  try {
44
- roboticsClient = new robotics.RoboticsClientCore('http://localhost:8000');
45
  roboticsRooms = await roboticsClient.listRooms(workspaceId);
46
  } catch (err) {
47
  roboticsError = 'Failed to load robotics rooms';
@@ -50,7 +50,7 @@
50
 
51
  // Load video rooms
52
  try {
53
- videoClient = new video.VideoClientCore('http://localhost:8000');
54
  videoRooms = await videoClient.listRooms(workspaceId);
55
  } catch (err) {
56
  videoError = 'Failed to load video rooms';
 
41
 
42
  // Load robotics rooms
43
  try {
44
+ roboticsClient = new robotics.RoboticsClientCore('https://blanchon-robothub-transportserver.hf.space/api');
45
  roboticsRooms = await roboticsClient.listRooms(workspaceId);
46
  } catch (err) {
47
  roboticsError = 'Failed to load robotics rooms';
 
50
 
51
  // Load video rooms
52
  try {
53
+ videoClient = new video.VideoClientCore('https://blanchon-robothub-transportserver.hf.space/api');
54
  videoRooms = await videoClient.listRooms(workspaceId);
55
  } catch (err) {
56
  videoError = 'Failed to load video rooms';
demo/src/routes/[workspaceId]/robotics/+page.svelte CHANGED
@@ -42,11 +42,11 @@
42
  try {
43
  loading = true;
44
  error = '';
45
- client = new robotics.RoboticsClientCore('http://localhost:8000');
46
  rooms = await client.listRooms(workspaceId);
47
  debugInfo.responseTime = Date.now() - startTime;
48
  } catch (err) {
49
- error = "Failed to connect to server. Make sure it's running on http://localhost:8000";
50
  console.error('Failed to load robotics rooms:', err);
51
  debugInfo.responseTime = Date.now() - startTime;
52
  } finally {
 
42
  try {
43
  loading = true;
44
  error = '';
45
+ client = new robotics.RoboticsClientCore('https://blanchon-robothub-transportserver.hf.space/api');
46
  rooms = await client.listRooms(workspaceId);
47
  debugInfo.responseTime = Date.now() - startTime;
48
  } catch (err) {
49
+ error = "Failed to connect to server. Make sure it's running on https://blanchon-robothub-transportserver.hf.space/api";
50
  console.error('Failed to load robotics rooms:', err);
51
  debugInfo.responseTime = Date.now() - startTime;
52
  } finally {
demo/src/routes/[workspaceId]/robotics/consumer/+page.svelte CHANGED
@@ -70,7 +70,7 @@
70
  connecting = true;
71
  error = '';
72
 
73
- consumer = new robotics.RoboticsConsumer('http://localhost:8000');
74
 
75
  // Set up event handlers
76
  consumer.onConnected(() => {
 
70
  connecting = true;
71
  error = '';
72
 
73
+ consumer = new robotics.RoboticsConsumer('https://blanchon-robothub-transportserver.hf.space/api');
74
 
75
  // Set up event handlers
76
  consumer.onConnected(() => {
demo/src/routes/[workspaceId]/robotics/producer/+page.svelte CHANGED
@@ -98,7 +98,7 @@
98
  connecting = true;
99
  error = '';
100
 
101
- producer = new robotics.RoboticsProducer('http://localhost:8000');
102
 
103
  producer.onConnected(() => {
104
  connected = true;
@@ -138,7 +138,7 @@
138
  connecting = true;
139
  error = '';
140
 
141
- producer = new robotics.RoboticsProducer('http://localhost:8000');
142
 
143
  producer.onConnected(() => {
144
  connected = true;
 
98
  connecting = true;
99
  error = '';
100
 
101
+ producer = new robotics.RoboticsProducer('https://blanchon-robothub-transportserver.hf.space/api');
102
 
103
  producer.onConnected(() => {
104
  connected = true;
 
138
  connecting = true;
139
  error = '';
140
 
141
+ producer = new robotics.RoboticsProducer('https://blanchon-robothub-transportserver.hf.space/api');
142
 
143
  producer.onConnected(() => {
144
  connected = true;
demo/src/routes/[workspaceId]/video/+page.svelte CHANGED
@@ -42,11 +42,11 @@
42
  try {
43
  loading = true;
44
  error = '';
45
- client = new video.VideoClientCore('http://localhost:8000');
46
  rooms = await client.listRooms(workspaceId);
47
  debugInfo.responseTime = Date.now() - startTime;
48
  } catch (err) {
49
- error = "Failed to connect to server. Make sure it's running on http://localhost:8000";
50
  console.error('Failed to load video rooms:', err);
51
  debugInfo.responseTime = Date.now() - startTime;
52
  } finally {
 
42
  try {
43
  loading = true;
44
  error = '';
45
+ client = new video.VideoClientCore('https://blanchon-robothub-transportserver.hf.space/api');
46
  rooms = await client.listRooms(workspaceId);
47
  debugInfo.responseTime = Date.now() - startTime;
48
  } catch (err) {
49
+ error = "Failed to connect to server. Make sure it's running on https://blanchon-robothub-transportserver.hf.space/api";
50
  console.error('Failed to load video rooms:', err);
51
  debugInfo.responseTime = Date.now() - startTime;
52
  } finally {
demo/src/routes/[workspaceId]/video/consumer/+page.svelte CHANGED
@@ -78,7 +78,7 @@
78
  connecting = true;
79
  error = '';
80
 
81
- consumer = new video.VideoConsumer('http://localhost:8000');
82
 
83
  // Set up event handlers
84
  consumer.onConnected(() => {
 
78
  connecting = true;
79
  error = '';
80
 
81
+ consumer = new video.VideoConsumer('https://blanchon-robothub-transportserver.hf.space/api');
82
 
83
  // Set up event handlers
84
  consumer.onConnected(() => {
demo/src/routes/[workspaceId]/video/producer/+page.svelte CHANGED
@@ -1,6 +1,7 @@
1
  <script lang="ts">
2
  import { onMount } from 'svelte';
3
  import { video } from '@robothub/transport-server-client';
 
4
 
5
  // Get data from load function
6
  let { data } = $props();
@@ -129,7 +130,7 @@
129
  connecting = true;
130
  error = '';
131
 
132
- producer = new video.VideoProducer('http://localhost:8000');
133
 
134
  producer.onConnected(() => {
135
  connected = true;
@@ -193,7 +194,7 @@
193
  connecting = true;
194
  error = '';
195
 
196
- producer = new video.VideoProducer('http://localhost:8000');
197
 
198
  producer.onConnected(() => {
199
  connected = true;
 
1
  <script lang="ts">
2
  import { onMount } from 'svelte';
3
  import { video } from '@robothub/transport-server-client';
4
+
5
 
6
  // Get data from load function
7
  let { data } = $props();
 
130
  connecting = true;
131
  error = '';
132
 
133
+ producer = new video.VideoProducer(settings.transportServerUrl);
134
 
135
  producer.onConnected(() => {
136
  connected = true;
 
194
  connecting = true;
195
  error = '';
196
 
197
+ producer = new video.VideoProducer(settings.transportServerUrl);
198
 
199
  producer.onConnected(() => {
200
  connected = true;