Skip to content

automatic stream switching #38

@ahmaxed

Description

@ahmaxed

With the new azuracast updates, relays have bitrate/format, unique identifiers, and per-stream listener counts.

the main strategy would be to directing listeners towards the relays.

here is the suggested logic

if relays exist choose a fast relays with least listeners.
if relays exist and speed is low, choose a low bitrate relay with least listeners.

if no relays choose fast non-relay
if relays exist and speed is low, choose low bitrate non-relay.

error handling on loading:

  • If > 220, use the other streams
  • all relay non-relay high bitrate streams 403ing? Drop the new user to 64
  • On 403 during playback? Use another stream.

here are some of the issues I experienced this week:

GET https://coderadio-relay.freecodecamp.org/radio/8010/radio.mp3 net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)

Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions