@kixelated/hang
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

Media over QUIC

Media over QUIC (MoQ) is a live (media) delivery protocol utilizing QUIC. It utilizes new browser technologies such as WebTransport and WebCodecs to provide WebRTC-like functionality. Despite the focus on media, the transport is generic and designed to scale to enormous viewership via clustered relay servers (aka a CDN). See quic.video for more information.

Note: this project is a fork of the IETF specification. The principles are the same but the implementation is exponentially simpler given a narrower focus (and no politics).

Usage

This library contains a lot of media stuff. More documentation will be available later, until then refer to the code and especially the demos.

    <!-- import "@kixelated/hang/publish/element" -->
	<hang-publish url="http://localhost:4443/demo/me.hang" audio video controls>
		<!-- It's optional to provide a video element to preview the outgoing media. -->
		<video style="max-width: 100%; height: auto; border-radius: 4px; margin: 0 auto;" muted autoplay></video>
	</hang-publish>

	<!-- import "@kixelated/hang/watch/element" -->
	<hang-watch url="http://localhost:4443/demo/me.hang" muted controls>
		<!-- It's optional to provide a canvas element to render the incoming media. -->
		<canvas style="max-width: 100%; height: auto; border-radius: 4px; margin: 0 auto;"></canvas>
	</hang-watch>

The API is still evolving, so expect breaking changes.

License

Licensed under either:

Readme

Keywords

none

Package Sidebar

Install

npm i @kixelated/hang

Weekly Downloads

43

Version

0.2.1

License

(MIT OR Apache-2.0)

Unpacked Size

96.1 kB

Total Files

90

Last publish

Collaborators

  • kixelated