---
title: "vuer.addons.camera_rtc"
section: "Python API"
order: 2
description: "Python API reference for vuer.addons.camera_rtc"
---

# vuer.addons.camera_rtc

## create_local_tracks

```python
def create_local_tracks(play_from, decode)
```

[Source](https://github.com/vuer-ai/vuer-docs/blob/docs/v0.0.52/vuer/addons/camera_rtc.py#L20)

## force_codec

```python
def force_codec(pc, sender, forced_codec)
```

[Source](https://github.com/vuer-ai/vuer-docs/blob/docs/v0.0.52/vuer/addons/camera_rtc.py#L43)

## index

```python
async def index(request)
```

[Source](https://github.com/vuer-ai/vuer-docs/blob/docs/v0.0.52/vuer/addons/camera_rtc.py#L52)

## javascript

```python
async def javascript(request)
```

[Source](https://github.com/vuer-ai/vuer-docs/blob/docs/v0.0.52/vuer/addons/camera_rtc.py#L57)

## offer

```python
async def offer(request)
```

[Source](https://github.com/vuer-ai/vuer-docs/blob/docs/v0.0.52/vuer/addons/camera_rtc.py#L62)

## on_shutdown

```python
async def on_shutdown(app)
```

[Source](https://github.com/vuer-ai/vuer-docs/blob/docs/v0.0.52/vuer/addons/camera_rtc.py#L111)

## Args

```python
class Args(ParamsProto)
```

[Source](https://github.com/vuer-ai/vuer-docs/blob/docs/v0.0.52/vuer/addons/camera_rtc.py#L121)

```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()
```
