Skip to content

danog\MadelineProto\RtmpServers: Which RTMP servers an RTMP stream may connect to, see {@see API::startRtmpStream()}: when whoever chooses the URL

Back to index

Author: Daniil Gentili daniil@daniil.it

Which RTMP servers an RTMP stream may connect to, see {@see API::startRtmpStream()}: when whoever chooses the URL

must not make us connect anywhere (into our network, say).

Checked at each connection, connecting to the address that was checked (keeping the name for TLS), so that neither a later DNS answer nor a differently parsed URL can get around it.

Constants

  • danog\MadelineProto\RtmpServers::Any: Any server.

  • danog\MadelineProto\RtmpServers::Internet: Only servers on the internet: every address the name of the server resolves to must be global (no loopback, private, link-local, shared or reserved address, nor an IPv6 address embedding an IPv4 one).

  • danog\MadelineProto\RtmpServers::Telegram: Only Telegram’s RTMP servers (*.rtmp.t.me, as in the URLs the Telegram apps show to stream to a livestream or a live story “with another app”), on the internet too.

Properties

  • $name: string
  • $value: int

Method list:

Methods:

isWithin(\danog\MadelineProto\RtmpServers $servers): bool

Whether a stream allowed to connect to these servers may be used where only those of $servers are allowed.

Parameters:

  • $servers: \danog\MadelineProto\RtmpServers

cases(): array

from(string|int $value): static

Parameters:

  • $value: string|int

tryFrom(string|int $value): ?static

Parameters:

  • $value: string|int

Generated by danog/phpdoc