QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VideoStreamUri Namespace Reference

The stream URIs VideoStreamResolver produces, as the receivers that play them tell them apart. More...

Enumerations

enum class  Transport : uint8_t {
  Rtsp , RtpUdpH264 , RtpUdpH265 , MpegTsUdp ,
  MpegTsTcp
}

Functions

std::optional< Transport > transportFor (const QUrl &url)
 The transport url's scheme selects, case-insensitively; nullopt for any other scheme.
constexpr bool listens (Transport transport)
 The receiver listens on a local UDP port for transport, rather than connect to a server.
constexpr bool isValidPort (int port)
 A TCP or UDP port a source can name: 1 to 65535.

Detailed Description

The stream URIs VideoStreamResolver produces, as the receivers that play them tell them apart.

Enumeration Type Documentation

◆ Transport

enum class VideoStreamUri::Transport : uint8_t
strong
Enumerator
Rtsp 

Any rtsp* scheme: rtsp://, rtsps://, rtspt://, ...

RtpUdpH264 

udp://

RtpUdpH265 

udp265://

MpegTsUdp 

mpegts://

MpegTsTcp 

tcp://

Definition at line 11 of file VideoStreamUri.h.

Function Documentation

◆ isValidPort()

bool VideoStreamUri::isValidPort ( int port)
constexpr

A TCP or UDP port a source can name: 1 to 65535.

Definition at line 31 of file VideoStreamUri.h.

◆ listens()

bool VideoStreamUri::listens ( Transport transport)
constexpr

The receiver listens on a local UDP port for transport, rather than connect to a server.

Definition at line 24 of file VideoStreamUri.h.

References MpegTsUdp, RtpUdpH264, and RtpUdpH265.

Referenced by GStreamer::SourceFactory::connectGracePeriod().

◆ transportFor()

std::optional< Transport > VideoStreamUri::transportFor ( const QUrl & url)

The transport url's scheme selects, case-insensitively; nullopt for any other scheme.

Definition at line 7 of file VideoStreamUri.cc.

References MpegTsTcp, MpegTsUdp, RtpUdpH264, RtpUdpH265, and Rtsp.

Referenced by GStreamer::SourceFactory::connectGracePeriod(), GStreamer::SourceFactory::create(), QtMultimediaVideoReceiver::playerSource(), VideoStreamResolver::resolve(), and VideoStreamResolver::transportName().