Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added examples/readme-assets/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/readme-assets/vscode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 8 additions & 4 deletions examples/streaming-apps-javascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Streaming applications is a feature of the E2B Desktop Sandbox.

| Streaming Chrome Window | Streaming VS Code Window |
| ------------------------------------------------------- | -------------------------------------------------------- |
| ![Chrome streaming window](../readme-assets/chrome.png) | ![VS Code streaming window](../readme-assets/vscode.png) |

> [!WARNING]
>
> - Will raise an error if the desired application is not open yet
Expand Down Expand Up @@ -34,8 +38,8 @@ console.log('Desktop sandbox created', desktop.sandboxId)
console.log('Launching Google Chrome')
await desktop.launch('google-chrome') // or vscode, firefox, etc.

// Wait 10s for the application to open
await desktop.wait(10000)
// Wait 15s for the application to open
await desktop.wait(15000)

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

// Wait 10s for the application to open
await desktop.wait(10000)
// Wait 15s for the application to open
await desktop.wait(15000)

// Start streaming the new application
console.log('Starting to stream VS Code')
Expand Down
12 changes: 8 additions & 4 deletions examples/streaming-apps-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Streaming applications is a feature of the E2B Desktop Sandbox.

| Streaming Chrome Window | Streaming VS Code Window |
| ------------------------------------------------------- | -------------------------------------------------------- |
| ![Chrome streaming window](../readme-assets/chrome.png) | ![VS Code streaming window](../readme-assets/vscode.png) |

> [!WARNING]
>
> - Will raise an error if the desired application is not open yet
Expand Down Expand Up @@ -34,8 +38,8 @@ print('Desktop sandbox created', desktop.sandbox_id)
print('Launching Google Chrome')
desktop.launch('google-chrome') # or vscode, firefox, etc.

# Wait 10s for the application to open
desktop.wait(10000)
# Wait 15s for the application to open
desktop.wait(15000)

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

# Wait 10s for the application to open
desktop.wait(10000)
# Wait 15s for the application to open
desktop.wait(15000)

# Start streaming the new application
print('Starting to stream VS Code')
Expand Down