mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-21 07:09:59 +01:00
Example script OSC peer2peer
This commit is contained in:
@@ -1025,7 +1025,9 @@ void Control::receiveStreamAttribute(const std::string &attribute,
|
||||
// remove prevous identical stream
|
||||
Streaming::manager().removeStream(sender, port);
|
||||
// add the requested stream to manager
|
||||
Streaming::manager().addStream(sender, port, label == nullptr ? sender : label);
|
||||
std::string clientname = label == nullptr ? sender.substr(0, sender.find_last_of(":")) : label;
|
||||
clientname += " [" + std::to_string(port) + "]";
|
||||
Streaming::manager().addStream(sender, port, clientname);
|
||||
}
|
||||
// Stream disconnection request /vimix/stream/disconnect
|
||||
else if ( attribute.compare(OSC_STREAM_DISCONNECT) == 0 ) {
|
||||
|
||||
Reference in New Issue
Block a user