|
2 | 2 |
|
3 | 3 | Streaming applications is a feature of the E2B Desktop Sandbox. |
4 | 4 |
|
| 5 | +| Streaming Chrome Window | Streaming VS Code Window | |
| 6 | +| ------------------------------------------------------- | -------------------------------------------------------- | |
| 7 | +|  |  | |
| 8 | + |
5 | 9 | > [!WARNING] |
6 | 10 | > |
7 | 11 | > - Will raise an error if the desired application is not open yet |
@@ -34,8 +38,8 @@ console.log('Desktop sandbox created', desktop.sandboxId) |
34 | 38 | console.log('Launching Google Chrome') |
35 | 39 | await desktop.launch('google-chrome') // or vscode, firefox, etc. |
36 | 40 |
|
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) |
39 | 43 |
|
40 | 44 | // Stream the application's window |
41 | 45 | // Note: there can be only one stream at a time |
@@ -71,8 +75,8 @@ await desktop.stream.stop() |
71 | 75 | console.log('Launching VS Code') |
72 | 76 | await desktop.launch('code') |
73 | 77 |
|
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) |
76 | 80 |
|
77 | 81 | // Start streaming the new application |
78 | 82 | console.log('Starting to stream VS Code') |
|
0 commit comments