Playback (Streaming)
Remote playback control and stream delivery to the main destination
// Configure the graph for rendering
let context = Assembler(rendering: .live).createAudioGraph()
// Configure an audio source (Renderer) from a remote resource
let url = URL(string: "http://example.com/stream.mp3")!
let source = MediaRadioRenderer(contentsOf: url, channels: .stereo)
// Configure node connections
try context.connect(source: source, to: context.destination)
source.play(after: 0)Last updated