One another small addition to StreamingServer showcase/development application: verification for WebCodecs API video streaming. WebCodecs API offers browser applications video decoding capabilities:
The WebCodecs API gives web developers low-level access to the individual frames of a video stream and chunks of audio. It is useful for web applications that require full control over the way media is processed. For example, video or audio editors, and video conferencing.
StreamingServer now handles two types of requests in its HTTP/HTTPS interface:
/webcodecs-videodecoder-A?frame= to send indivudal H.264 encoded on the fly video frame. All together, the code simluates video playback receiving H.264 frames from HTTP server one by one.
The setup is a proof of concept and generates and encodes the full frame set on original request, without actual per frame on demand encoding, so be aware if you happen to request a long sequence.
To check things out, have StreamingServer started and open Chrome Canary version 94+¹, then navigate to one of the following:
¹ Microsoft Edge self-updated today to Version 94.0.992.31 and it has WebCodecs API available in it as well!
- 64-bit: StreamingServer.exe (in .ZIP archive)
- License: This software is free to use; builds have time based expiration