PDA

View Full Version : source name



jgeduldig
04-04-2019, 12:17 PM
I believe the only way to set a source name is in the Sender constructor, like this:


Sender sender = new Sender("My Source Name");

Is it possible to modify the sender name afterwards?
If not, is this a possible future enhancement to the SDK?

jperbicella
04-05-2019, 06:35 AM
I haven't been in-front of my code for months, but I'm not sure if you can set it to be named from something like a combo box or text box.

Sender sender = new Sender(myTxtBoxName.Text);

This might require to start and stop the sender, but it could work.

jgeduldig
04-09-2019, 09:23 AM
John,
Yes, that works but it requires re-initializing the Sender. I would like to set the name AFTER the Sender initializes.

jgeduldig
04-15-2019, 07:32 AM
Bumping up in case someone from NewTek can respond.

roddyp
04-16-2019, 01:26 PM
Bumping up in case someone from NewTek can respond.
Not from NewTek, but I'm curious what you're trying to to achieve here.

The name given when you create a sender is how receivers locate (and select) your source. If you change the name, what do you want receivers using the old name to do?

Depending on what you're after, either the connection metadata functions like NDIlib_send_add_connection_metadata or the NDI-ROUTING functions (which allow you to bind an existing source to a virtual output) might be relevant.

jgeduldig
04-17-2019, 09:37 AM
That is a good point about receivers of the old name.

I am streaming web pages over NDI, and users want to see the web page in the source name. However, the web page will change after the connection is established.

jperbicella
04-17-2019, 12:07 PM
The majority of solicitous out there use a set name similar to scan converter - maybe "My PC-Browser" "My PC-Microsoft Word" etc. but none use the name for the reason listed below. It may be possible to use the metadata (mentioned above) to display a line of text on the receiver, and be able to disable this for record or broadcast (assuming this is the end coal). To carry page name as the sender name would otherwise require one sender per page (I think).

jgeduldig
04-17-2019, 02:07 PM
Okay - this all makes good sense. Thank you!