4 Protocol Examples

Sequence diagram for the Device Media Control Protocol

Figure 5: Sequence diagram for the Device Media Control Protocol

  1. The host sends a RegisterMediaEventCallback event to the extender device to create the MediaEvent Callback Service. This event is sent while constructing the device and not per media session.

  2. The device returns an S_OK code after successfully creating the MediaEvent Callback Service.

  3. The host sends an OpenMedia message using the Media Controller Service over Device Services Lightweight Remoting Protocol to open a media session.

  4. The device returns an S_OK code after successfully opening the media session.

  5. The host sends a Start message using the Media Controller Service over the Device Services Lightweight Remoting Protocol to start a media session.

  6. The device returns an S_OK code after successfully starting a media session.

  7. When the device reaches the end of stream while playing, it sends an END_OF_MEDIA event to the host using the MediaEvent Callback Service over the Device Services Lightweight Remoting Protocol.

  8. The host sends a Pause message using the Media Controller Service over the Device Services Lightweight Remoting Protocol to pause the media session.

  9. The device returns an S_OK code after successfully pausing the media session.

  10. The host sends a CloseMedia message using the Media Controller Service over the Device Services Lightweight Remoting Protocol to close the media session.

  11. The device returns an S_OK code after successfully closing the media session.

  12. The host sends an UnRegisterMediaEventCallback event to the extender device to release the MediaEvent Callback Service. This event is released while destructing the device and not per media session.

  13. The device returns an S_OK code after successfully releasing the MediaEvent Callback Service.

Show: