Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio URLs #247

Merged
merged 2 commits into from
Sep 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions pydroid_ipcam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@ def mjpeg_url(self) -> str:
"""Return mjpeg url."""
return f"{self.base_url}/video"

@property
def audio_wav_url(self) -> str:
"""Returns url that Waveform audio can be streamed from."""
MartinHjelmare marked this conversation as resolved.
Show resolved Hide resolved
return f"{self.base_url}/audio.wav"

@property
def audio_aac_url(self) -> str:
"""Returns url that AAC audio can be streamed from."""
MartinHjelmare marked this conversation as resolved.
Show resolved Hide resolved
return f"{self.base_url}/audio.aac"

@property
def audio_opus_url(self) -> str:
"""Returns url that LibOPUS audio can be streamed from."""
MartinHjelmare marked this conversation as resolved.
Show resolved Hide resolved
return f"{self.base_url}/audio.opus"

@property
def h264_url(self) -> str:
"""Return h264 url."""
Expand Down