Skip to content

Commit

Permalink
Specify supported media connection types
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreo committed Sep 27, 2024
1 parent 07ea6b4 commit c500614
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/robot_interface/telemetry/media_connection_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from enum import Enum


class MediaConnectionType(str, Enum):
LiveKit: str = "LiveKit"
3 changes: 2 additions & 1 deletion src/robot_interface/telemetry/payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from transitions import State

from robot_interface.models.mission.status import RobotStatus
from robot_interface.telemetry.media_connection_type import MediaConnectionType


@dataclass
Expand Down Expand Up @@ -59,7 +60,7 @@ class VideoStream:
class MediaConfig(TelemetryPayload):
url: str
token: str
media_connection_type: str
media_connection_type: MediaConnectionType


@dataclass
Expand Down

0 comments on commit c500614

Please sign in to comment.