Opening a clip or an IP URL from a background thread without blocking the main thread

Prev

Next

 






































































































Opening a clip or an IP URL from a background thread without blocking the main thread

Description

It is possible to open a clip or an URL without blocking the main thread.

C# and VB.NET:

- define a class derived from VidGrab.VideoGrabberThread
- put the TVideoGrabber initialization code in the VideoGrabberThreadFunc() class
- synchronize the TVideoGrabber event callbacks that refer to .NET controls with the Invoke method

The "AsynchronousStartFromThread" C# or VB demo project included in the package shows the required sample code to open an IP camera URL.



See Also
Player features TOnThreadSync TThreadSyncPoint EnableThreadMode OnThreadSync