IP Camera Directshow Filter

EC_END_OF_STREAM


Fired this event if disconnect the IP Camera.
EC_END_OF_STREAM = 0x8000 + 51;



VC++ Example:

    long code;
 LONG_PTR param1, param2;
 HRESULT hr;
 
 while (SUCCEEDED(_mediaEvent->GetEvent(&code, ¶m1, ¶m2, 0))) {
  _mediaEvent->FreeEventParams(code, param1, param2);
 
  switch (code) {
   case EC_END_OF_STREAM :
   AfxMessageBox("End of stream event");
   break;
   case EC_COMPLETE:
   case EC_USERABORT:
   case EC_ERRORABORT:
    return true;
  }
 }