ofVideoPlayer update in Thread

Hi all I tried to update ofVideoPlayer in ofxThread.
However this is fail to update
the texture of video is going to white
Any solution?
Thanks you very much

openGL calls don’t work across multiple threads, so all your graphics drawing must be done in one thread.

if you want to update the videoplayer in a separate thread, you’ll still need to draw the video image from the main thread, which means you’ll need to use a semaphore to lock access to the videoplayer so that only one thread can access it at a time.