Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.48 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Detect end of Video with IMediaSeeking
  2. long eventCode = 0;
  3.     LONG_PTR ptrParam1 = 0;
  4.     LONG_PTR ptrParam2 = 0;
  5.     long timeoutMs = INFINITE;
  6.  
  7.     while (SUCCEEDED(pEvent->GetEvent(&eventCode, &ptrParam1, &ptrParam1, timeoutMs)))
  8.     {
  9.         if (eventCode == EC_COMPLETE)
  10.         {
  11.             break;
  12.         }
  13.  
  14.         // Free the event data.
  15.         hr = pEvent->FreeEventParams(eventCode, ptrParam1, ptrParam1);
  16.         if (FAILED(hr))
  17.         {
  18.             break;
  19.         }
  20.     }