Logo Search packages:      
Sourcecode: pwlib version File versions

void PVideoChannel::AttachVideoPlayer ( PVideoOutputDevice device,
BOOL  keepCurrent = TRUE 
) [virtual]

Attach a user specific class for rendering video

If keepCurrent is true, an abort is caused when the program attempts to attach a new player when there is already a video player attached.

If keepCurrent is false, the existing video player is deleted before attaching the new player.

Definition at line 220 of file pvidchan.cxx.

References accessMutex, CloseVideoPlayer(), and mpOutput.

{
  PWaitAndSignal m(accessMutex);

  if (mpOutput && keepCurrent)
    PAssertAlways("Error: Attempt to add video player while one is already defined");
  
  CloseVideoPlayer();
   
  mpOutput = device;
}


Generated by  Doxygen 1.6.0   Back to index