SetMediaStream
Syntax
SetMediaStream(panel, control, busType, channel, streamIndex, streamId[]);
Function
Replaces the media stream at the specified index of thePanel DesignerMedia Stream Controlduring runtime. The panel is accessed by its individual panel name that is entered in thePanel Designer.
Parameters
panel Panel name, restricted to 128 characters."" – references allloaded panelsIf you open a panel the first time, the panel is loaded.
If you close the panel, it remains loaded.
control
Name of the control, restricted to 128 characters."" – references all controls on the panel.
busType
Bus type of the source media stream (e.g. eCAN, eFlexRay, eEthernet, ...).Currently only bus type eEthernet is supported.
channel
Channel number of the source media stream.
streamIndex
Target stream index of the Media Stream Control.
streamId
Stream ID of the source media stream.
Return Values
—
Setting media stream from Ethernet channel 1. on key 'x'{byte streamId[8] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x00, 0x01 };SetMediaStream("AVTP Video H.264", "Media Stream Control", eEthernet, 1, 0, streamId);}
putValue | SetPictureBoxImage