IToiMediaObserver Interface Reference


Description

The IToiMediaObserver interface is an observer interface which may be implemented by services and applications to be notified whenever a new media session is created, changed or closed.

Note:
Services or applications may choose to inherit the adapter class TToiMediaObserverAdapter, which provides a default empty implementation of IToiMediaObserver.

import "IToiMediaObserver.idl";

List of all members.

Public Member Functions

oneway void OnSessionStateChanged (in IToiMediaService::TToiSessionInfo sessionInfo)
oneway void OnSessionStreamInfoChanged (in IToiMediaService::TToiSessionInfo sessionInfo, in IToiMediaSession::TToiStreamInfo streamInfo)

Member Function Documentation

oneway void IToiMediaObserver::OnSessionStateChanged ( in IToiMediaService::TToiSessionInfo  sessionInfo  ) 

This event is sent when a session is changing state. A new session will initially be in state IToiMediaSession::STATE_CONNECTING while a closed session will be in state IToiMediaSession::STATE_CLOSED.

Parameters:
sessionInfo A data structure with the session information.
oneway void IToiMediaObserver::OnSessionStreamInfoChanged ( in IToiMediaService::TToiSessionInfo  sessionInfo,
in IToiMediaSession::TToiStreamInfo  streamInfo 
)

This event is sent when new information about a stream handled by a session is available.

Parameters:
sessionInfo A data structure with the session information.
streamInfo A data structure with stream information.