TRVCamSender.SourceVideoIndex

<< Click to display table of contents >>

TRVCamSender.SourceVideoIndex

Defines the index of media channel of TRVCamReceiver assigned to VideoSource, which will be used for video in the default (0th) media channel.

property SourceVideoIndex: Integer;

In the simplest case, video is read from TRVCamera component assigned to VideoSource property. No additional property settings are required (SourceGUID must be empty, SourceVideoIndex must be 0).

But more complex case is possible: this sender is used to re-translate video received from the network. In this case, sound is taken from TRVCamReceiver component assigned to VideoSource property.

This receiver can receive data from multiple senders, and each sender may send multiple media channels. In this case, you need to specify:

SourceGUID to specify the sender which sends video to this receiver

SourceVideoIndex to specify media channel of the sender specified in SourceGUID

Example

Let we have TRVCamReceiver which receives data from two senders via the network (either directly, or via TRVMediaServer): TRVCamSender1 and TRVCamSender2.

Each of these source senders has two media channel (0th and 1st)

We want to re-translate video from the 1st channel of TRVCamSender.

Our TRVCamSender component and its properties are colored in orange.

sourcevideoindex-scheme

As you can see, we assign SourceGUID property equal to the value of GUIDFrom of TRVCamSender1, and SourceVideoIndex = 1.

TRVCamReceiver component is assigned to VideoSource property.

Multiple media channels

VideoSource, SourceGUID, SourceVideoIndex properties define a video source for the default (0th) media channel of this TRVCamSender component.

Similarly, AudioSource/VideoSource, SourceGUID, SourceAudioIndex properties define a audio source for the default media channel.

More media channels (indexed from 1) can be defined in properties of items of ExtraMediaSources collection property.

Default value

0