Broadcast class abstract

Creates new Broadcast for a Media.

Example creation can be as follows.

Broadcast broadcast = Broadcast.create(
  id: 0,
  media: await Media.file(new File('C:/music.ogg')),
  configuration: new BroadcastConfiguration(
    access: 'http',
    mux: 'mpeg1',
    dst: '127.0.0.1:8080',
    vcodec: 'mp1v',
    vb: 1024,
    acodec: 'mpga',
    ab: 128,
  ),
);

broadcast.start();

Call Broadcast.dispose for releasing the resources.

Constructors

Broadcast()

Properties

configuration BroadcastConfiguration
Configuration of this broadcast.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int
ID for this broadcast.
getter/setter pair
media Media
Broadcasting Media.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes this instance of Broadcast.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() → void
Starts broadcasting the Media.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

create({required int id, required Media media, required BroadcastConfiguration configuration}) Broadcast
Creates a new Broadcast instance.