LogoLogo
  • About
  • Installation
  • Update & migration
  • Configuration
    • Hostname
    • TLS / HTTPS
    • Database
    • Logging
    • API Security
    • Storage
      • Disk
      • In-memory
      • S3
    • RTMP
    • SRT
    • FFmpeg
    • Sessions
    • Metrics
    • Router
    • Debug
  • API Swagger-Documentation
  • API Clients
  • Web-Interface
  • Guides
    • Beginner
    • RTMP
    • SRT
    • Filesystems
  • General
    • Prometheus metrics
  • API
    • Login
    • Config
    • Log
    • Filesystem
      • Disk
      • In-memory
      • S3
    • Metrics
    • Sessions
    • Profiling
    • Ping
  • API / FFmpeg
    • Process
      • Command
      • Metadata
      • State
      • Probe
      • Report
    • Skills
    • Widget (Website)
  • API / RTMP
    • RTMP
  • API / SRT
    • SRT
  • Development
    • Architecture
    • Coding
    • Custom Docker images
    • Benchmark
    • Support
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. API / SRT

SRT

PreviousRTMPNextArchitecture

Last updated 2 years ago

Was this helpful?

The datarhei Core includes a simple SRT server for publishing and playing streams. Check out the and the . This API endpoint will list the details of all currently publishing and playing streams.

This endpoint is still experimental and may change in a later minor version increase.

curl http://127.0.0.1:8080/api/v3/srt \
   -H 'accept: application/json' \
   -X GET
from core_client import Client

client = Client(
    base_url="http://127.0.0.1:8080"
)
client.login()

core_srt = client.v3_srt_get()
print(core_srt)
import (
    "fmt"
    "github.com/datarhei/core-client-go/v16"
)

client, _ := coreclient.New(coreclient.Config{
    Address: "https://127.0.0.1:8080",
})

channels, err := client.SRTChannels()
fmt.Printf("%+v\n", channels)
SRT configuration
SRT guide

List all publishing SRT treams

get

List all currently publishing SRT streams. This endpoint is EXPERIMENTAL and may change in future.

Authorizations
Responses
200
OK
application/json
get
GET /v3/srt HTTP/1.1
Host: api
Authorization: YOUR_API_KEY
Accept: */*
200

OK

[
  {
    "connections": {
      "ANY_ADDITIONAL_PROPERTY": {
        "log": {
          "ANY_ADDITIONAL_PROPERTY": [
            {
              "msg": [
                "text"
              ],
              "ts": 1
            }
          ]
        },
        "stats": {
          "avail_recv_buf_bytes": 1,
          "avail_send_buf_bytes": 1,
          "bandwidth_mbit": 1,
          "flight_size_pkt": 1,
          "flow_window_pkt": 1,
          "max_bandwidth_mbit": 1,
          "mss_bytes": 1,
          "pkt_recv_avg_belated_time_ms": 1,
          "pkt_send_period_us": 1,
          "recv_ack_pkt": 1,
          "recv_buf_bytes": 1,
          "recv_buf_ms": 1,
          "recv_buf_pkt": 1,
          "recv_bytes": 1,
          "recv_drop_bytes": 1,
          "recv_drop_pkt": 1,
          "recv_km_pkt": 1,
          "recv_loss_bytes": 1,
          "recv_loss_pkt": 1,
          "recv_nak_pkt": 1,
          "recv_pkt": 1,
          "recv_retran_pkts": 1,
          "recv_tsbpd_delay_ms": 1,
          "recv_undecrypt_bytes": 1,
          "recv_undecrypt_pkt": 1,
          "recv_unique_bytes": 1,
          "recv_unique_pkt": 1,
          "reorder_tolerance_pkt": 1,
          "rtt_ms": 1,
          "send_buf_bytes": 1,
          "send_buf_ms": 1,
          "send_buf_pkt": 1,
          "send_drop_bytes": 1,
          "send_drop_pkt": 1,
          "send_duration_us": 1,
          "send_km_pkt": 1,
          "send_loss_pkt": 1,
          "send_tsbpd_delay_ms": 1,
          "sent_ack_pkt": 1,
          "sent_bytes": 1,
          "sent_nak_pkt": 1,
          "sent_pkt": 1,
          "sent_retrans_bytes": 1,
          "sent_retrans_pkt": 1,
          "sent_unique_bytes": 1,
          "sent_unique_pkt": 1,
          "timestamp_ms": 1
        }
      }
    },
    "log": {
      "ANY_ADDITIONAL_PROPERTY": [
        {
          "msg": [
            "text"
          ],
          "ts": 1
        }
      ]
    },
    "publisher": {
      "ANY_ADDITIONAL_PROPERTY": 1
    },
    "subscriber": {
      "ANY_ADDITIONAL_PROPERTY": [
        1
      ]
    }
  }
]