Skip to content

Commit c7f1e49

Browse files
authored
Added screenshots to the streaming examples readmes (#90)
* added screenshots to the example readme * updated assets url in example readme
1 parent 4b53b10 commit c7f1e49

4 files changed

Lines changed: 16 additions & 8 deletions

File tree

examples/readme-assets/chrome.png

2.64 MB
Loading

examples/readme-assets/vscode.png

1.44 MB
Loading

examples/streaming-apps-javascript/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Streaming applications is a feature of the E2B Desktop Sandbox.
44

5+
| Streaming Chrome Window | Streaming VS Code Window |
6+
| ------------------------------------------------------- | -------------------------------------------------------- |
7+
| ![Chrome streaming window](../readme-assets/chrome.png) | ![VS Code streaming window](../readme-assets/vscode.png) |
8+
59
> [!WARNING]
610
>
711
> - Will raise an error if the desired application is not open yet
@@ -34,8 +38,8 @@ console.log('Desktop sandbox created', desktop.sandboxId)
3438
console.log('Launching Google Chrome')
3539
await desktop.launch('google-chrome') // or vscode, firefox, etc.
3640

37-
// Wait 10s for the application to open
38-
await desktop.wait(10000)
41+
// Wait 15s for the application to open
42+
await desktop.wait(15000)
3943

4044
// Stream the application's window
4145
// Note: there can be only one stream at a time
@@ -71,8 +75,8 @@ await desktop.stream.stop()
7175
console.log('Launching VS Code')
7276
await desktop.launch('code')
7377

74-
// Wait 10s for the application to open
75-
await desktop.wait(10000)
78+
// Wait 15s for the application to open
79+
await desktop.wait(15000)
7680

7781
// Start streaming the new application
7882
console.log('Starting to stream VS Code')

examples/streaming-apps-python/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Streaming applications is a feature of the E2B Desktop Sandbox.
44

5+
| Streaming Chrome Window | Streaming VS Code Window |
6+
| ------------------------------------------------------- | -------------------------------------------------------- |
7+
| ![Chrome streaming window](../readme-assets/chrome.png) | ![VS Code streaming window](../readme-assets/vscode.png) |
8+
59
> [!WARNING]
610
>
711
> - Will raise an error if the desired application is not open yet
@@ -34,8 +38,8 @@ print('Desktop sandbox created', desktop.sandbox_id)
3438
print('Launching Google Chrome')
3539
desktop.launch('google-chrome') # or vscode, firefox, etc.
3640

37-
# Wait 10s for the application to open
38-
desktop.wait(10000)
41+
# Wait 15s for the application to open
42+
desktop.wait(15000)
3943

4044
# Stream the application's window
4145
# Note: there can be only one stream at a time
@@ -71,8 +75,8 @@ desktop.stream.stop()
7175
print('Launching VS Code')
7276
desktop.launch('code')
7377

74-
# Wait 10s for the application to open
75-
desktop.wait(10000)
78+
# Wait 15s for the application to open
79+
desktop.wait(15000)
7680

7781
# Start streaming the new application
7882
print('Starting to stream VS Code')

0 commit comments

Comments
 (0)