Skip to main content

SetMediaStream

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

SetMediaStream(panel, control, busType, channel, streamIndex, streamId[]);

Description

Replaces the media stream at the specified index of the Panel Designer during runtime: Media Stream Control. The panel is accessed by its individual panel name that is entered in the Panel Designer.

Parameters

  • panel: Panel name, restricted to 128 characters. "" – references all loaded panels.
  • control: Name of the control, restricted to 128 characters. "" – references all controls on the panel.
  • busType: Bus system of the source media stream (e.g. eCAN, eFlexRay, eEthernet, …). Currently only bus system 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

Example

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);
}
SetPictureBoxImage