video-webview Svelte Themes

Video Webview

Testing the WebView in-browser video capabilities.

Video-WebView

A sample project demonstrating how to stream and decode video content using WebSockets in Svelte and embed it into a native WebView application.

Setup

  1. Clone the repository.
  2. Navigate to the web directory and install dependencies:
    cd web
    npm install
    
  3. Build the Svelte application there:
    npm run build
    
  4. Navigate to the windows directory and refer to the README there for setting up the native WebView application.
  5. After setting up the native application, ensure it runs.
  6. Start the Video Streaming server by navigating to the server directory and running:
    cd ../server
    npm install
    node server.js
    
  7. Open the native WebView application, which should now load the Svelte app and you can connect to the video stream.

Top categories

Loading Svelte Themes