Coder Social home page Coder Social logo

ts-vs-sample's Introduction

description languages page_type products
Use Windows WebView2 TextureStream API
cpp
sample
microsoft-edge

Sample for WebView2 TextureStream API

This sample is associated with the TextureStream API of Microsoft Edge's WebView2.

The TextureStream API empowers the WebView2 host to transmit video frames to the WebView2 engine, also known as the Edge Engine. This enables the stream to be played in Javascript, or alternatively, Javascript can modify the stream and return it to the WebView2 host.

The WebView2 host can persist in using its current video capture and editing code, and it can be utilized to play the video within the Javascript in the WebView2 content.

The Visual Studio Sample

This includes two distinct sample sites, one at https://sungook.github.io/get-ts and the other at https://sungook.github.io/register-ts. These samples are modifications of the samples found at https://webrtc.github.io/samples/.

The site https://sungook.github.io/get-ts supports only the chrome.webview.getTextureStream API, while https://sungook.github.io/register-ts supports both chrome.webview.getTextureStream and chrome.webview.registerTextureStream APIs.

Features

  • It captures machine's camera and play it.

  • It supports both of getTextureStream and registerTextureStream APIs, depending on site url.

    • See 'kSampleSite'
  • We can specify the private WebView2 binary.

    • See 'kPrivateBinaryFolder'
  • We can enable software rendering mode in machine that GPU is not available, post Edge v121.

    • See 'g_warp_mode'.

ts-vs-sample's People

Contributors

cpsgchue avatar sunggook avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.