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

frontend: VideStreamCreation: Add more RTSPs variants (UDP, TCP, HTTP) support #2741

Conversation

JoaoMario109
Copy link
Collaborator

@JoaoMario109 JoaoMario109 commented Jun 25, 2024

Closes #2737

When in dev mode:
image

If set some pirate mode variant in dev mode but switching back to normal mode only that one will be added, and if change it will not more be available:
image
image

@JoaoMario109 JoaoMario109 force-pushed the add-custom-protocols-selection-on-stream-creation branch from 53e1347 to 825b36e Compare June 25, 2024 11:04
@JoaoMario109 JoaoMario109 marked this pull request as ready for review June 25, 2024 11:11
* Add support for setting RTSP(U, T, H) in pirate mode
@JoaoMario109 JoaoMario109 force-pushed the add-custom-protocols-selection-on-stream-creation branch from 825b36e to a45b820 Compare June 25, 2024 12:03
if (endpoint.startsWith('rtspu://')) return StreamType.RTSPU
if (endpoint.startsWith('rtsp://')) return StreamType.RTSP
if (endpoint.startsWith('rtspt://')) return StreamType.RTSPT
if (endpoint.startsWith('rtsph://')) return StreamType.RTSPH
Copy link
Member

@patrickelectric patrickelectric Jun 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a future note, we can use an Object.keys(StreamType).find((this_protocol) => new Url(endpoint).protocol.toUpper()) or something like that
And maybe a switch case

@patrickelectric patrickelectric merged commit 3c2f3fd into bluerobotics:master Jun 25, 2024
5 checks passed
@ES-Alexander ES-Alexander added the docs-needed Change needs to be documented label Jul 8, 2024
@ES-Alexander ES-Alexander added docs-minimal Documentation exists but should be improved and removed docs-needed Change needs to be documented labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-minimal Documentation exists but should be improved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add better support to blueos RTSP options (TCP/UDP) and etc
3 participants