9130: Extend API to support streaming dummy audio sources #1

Merged
jono merged 7 commits from 9130_dummy_audio into main 2023-06-15 12:49:14 +09:30
Owner

For PDR we want to be able to show multiple audio streams, which is difficult to do if we are relying on real hardware as we only have two physical radios.

This change introduces two additional audio sources:

  • FileRadio
    • Any .mp3 file (some other formats may work, not tested) that exist in the data/samplaudio directory
    • Streams automatically begin on microservice start
    • Appear in the path rtsp://[host]/sample/[filename]
  • TuuubeRadio
    • Any available YouTube video, by video ID
    • Streams must be started from the REST interface, audio sources are cached in /tmp directory
    • Appear in the path rtsp://[host]/tuuube/[video-id]

Both of these new audio sources support the start and end REST targets for starting and stopping of the stream, but neither support any of the configuration/connect targets. Eventually these should be unified so that the audio source is fully abstracted from consumers.

For PDR we want to be able to show multiple audio streams, which is difficult to do if we are relying on real hardware as we only have two physical radios. This change introduces two additional audio sources: - FileRadio - Any .mp3 file (some other formats may work, not tested) that exist in the `data/samplaudio` directory - Streams automatically begin on microservice start - Appear in the path `rtsp://[host]/sample/[filename]` - TuuubeRadio - Any available YouTube video, by video ID - Streams must be started from the REST interface, audio sources are cached in `/tmp` directory - Appear in the path `rtsp://[host]/tuuube/[video-id]` Both of these new audio sources support the `start` and `end` REST targets for starting and stopping of the stream, but neither support any of the configuration/connect targets. Eventually these should be unified so that the audio source is fully abstracted from consumers.
john.sitarski was assigned by jono 2023-06-14 12:03:42 +09:30
jono added 7 commits 2023-06-14 12:03:44 +09:30
jono requested review from john.sitarski 2023-06-14 12:03:51 +09:30
jono self-assigned this 2023-06-14 12:03:59 +09:30
john.sitarski was unassigned by jono 2023-06-14 12:03:59 +09:30
john.sitarski approved these changes 2023-06-15 09:51:05 +09:30
john.sitarski left a comment
Collaborator

looks good approved pushed forward (viewed binary pass through didnt check they work but assume they're fine)

looks good approved pushed forward (viewed binary pass through didnt check they work but assume they're fine)
jono merged commit 4fdd5739ca into main 2023-06-15 12:49:14 +09:30
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jono/sdrplay-fm-radio#1
No description provided.