vuer.addons.camera_rtc
create_local_tracks
python
def create_local_tracks(play_from, decode)force_codec
python
def force_codec(pc, sender, forced_codec)index
python
async def index(request)javascript
python
async def javascript(request)offer
python
async def offer(request)on_shutdown
python
async def on_shutdown(app)Args
python
class Args(ParamsProto)python
description = 'WebRTC webcam demo'python
cert_file = Proto(help='SSL certificate file (for HTTPS)')python
key_file = Proto(help='SSL key file (for HTTPS)')python
host = Proto(default='localhost', help='Host for HTTP server (default: 0.0.0.0)')python
port = Proto(default=8080, dtype=int, help='Port for HTTP server (default: 8080)')python
play_from = Proto(help='Read the media from a file and send it.')python
play_without_decoding = Flag('Read the media without decoding it (experimental). For now it only works with an MPEGTS container with only H.264 video.')python
audio_codec = Proto(help='Force a specific audio codec (e.g. audio/opus)')python
video_codec = Proto(help='Force a specific video codec (e.g. video/H264)')python
verbose = Flag()