IMVNetworkSource

The IMVNetworkSource Interface controls the MV Network Source Filter.

Read thefilter description to see how the filter is used.

CheckServer Sends a ping to the current server.
Description Get the transport stream description.
Port Set the transport stream port number.
Protocol Set the transport stream protocol.
ServerAddress Set server name or IP adress.
Status Get the network renderer status.
UpdateNetworkConnection Restarts the network connection with the updated parameter.

Header file: IMVNetworkSource.h
Interface definition language file: IMVNetworkSource.idl
Typelib: MVNetworkSource
Interface ID: IID_IMVNetworkSource


Method IMVNetworkSource::CheckServer

Declaration: Sub CheckServer(address As String, time As Long, reason As String)

Sends a ping to the current server.

Parameter:

address Contains the IP address from the checked server.
time Contains the roundtrip time from the ping.
reason Contains a reason if the ping failed.
Prototype:

HRESULT CheckServer(BSTR* address, long* time, BSTR* reason);


Property IMVNetworkSource::Description

Declaration: Property Get Description As String

Get the transport stream description.

Prototype:

HRESULT get_Description(BSTR* description);


Property IMVNetworkSource::Port

Declaration: Property Get/Put Port As Integer

Set the transport stream port number.

Prototype:

HRESULT put_Port(int port);
HRESULT get_Port(int* port);


Property IMVNetworkSource::Protocol

Declaration: Property Get/Put Protocol As Long

Set the transport stream protocol.

Protocol

Value

Description
MV_NETWORK_PROTOCOL_UDP

0

Use UDP as transport protocol.
MV_NETWORK_PROTOCOL_TCP

1

Use TCP as transport protocol.
Prototype:

HRESULT put_Protocol(long protocol);
HRESULT get_Protocol(long* protocol);


Property IMVNetworkSource::ServerAddress

Declaration: Property Get/Put ServerAddress As String

Set server name or IP adress.

Prototype:

HRESULT put_ServerAddress(BSTR address);
HRESULT get_ServerAddress(BSTR* address);


Property IMVNetworkSource::Status

Declaration: Property Get Status As Long

Get the network renderer status.

Status Value Description
MV_NETWORK_STATUS_IDLE 0 Receive no network data from a server.
MV_NETWORK_STATUS_RECEIVE_MEDIATYPE 3 Receive mediatype information packets.
MV_NETWORK_STATUS_RECEIVE_STREAM 4 Receive media stream data packets.
Prototype:

HRESULT get_Status(long* status);


Method IMVNetworkSource::UpdateNetworkConnection

Declaration: Sub UpdateNetworkConnection

Restarts the network connection with the updated parameter.

Prototype:

HRESULT UpdateNetworkConnection();