MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / streamTrack

Function streamTrack

src/server/NymphCastServer.cpp:483–500  ·  view source on GitHub ↗

--- STREAM TRACK --- Attempt to stream from the indicated URL.

Source from the content-addressed store, hash-verified

481// --- STREAM TRACK ---
482// Attempt to stream from the indicated URL.
483bool streamTrack(std::string url) {
484 // TODO: Check that we're not still streaming, otherwise queue the URL.
485 // TODO: allow to cancel any currently playing track/empty queue?
486 if (ffplay.playbackActive()) {
487 // Add to queue.
488 DataBuffer::addStreamTrack(url);
489
490 return true;
491 }
492
493 // Schedule next track URL.
494 ffplay.streamTrack(url);
495
496 // Send status update to client.
497 sendStatusUpdate(DataBuffer::getSessionHandle());
498
499 return true;
500}
501
502
503void signal_handler(int signal) {

Callers 2

playback_urlFunction · 0.85
streamTrackMethod · 0.85

Calls 3

sendStatusUpdateFunction · 0.85
playbackActiveMethod · 0.45
streamTrackMethod · 0.45

Tested by

no test coverage detected