each window has its own OpenGL context (see: State Machine). A context can be seen as a separate “copy” of OpenGL, each with its own textures, shaders, etc. While textures can be shared between contexts (so all contexts can use the texture), this is not done automatically and requires careful setup.
In your application, the textures for mov1 and mov2 are both created on the main context (created for the default application window, win1). The 2nd window, win2 has its own context and will probably not display mov2's texture properly.
To fix this, try creating mov2 with the correct context enabled (see: Window::getRenderer() and RendererGl::makeCurrentContext(true), but there are more ways that lead to Rome), then carefully use the correct context when updating the movie / getting the texture. You may want to encapsulate a window and movie player into a custom class, so you can more easily control the pair of them.
-Paul
Edit: another approach could be to create a shared context based on the main context, then use it when creating the 2nd window. That way, both windows will be able to access the movie textures.
Thank you for your feedback, I’ve changed setup and update as below. Now second window works correctly but it doesn’t draw movie’s texture well on first window. I might not understand well on context on window?
Hmm, code follows my recommendations perfectly. I thought it would work, but maybe something deep inside the bowels of Cinder prevents your code from working.
Maybe try the other approach: create a 2nd window that already uses a shared context (as in: shared with the main context). That way you don’t have to worry about which context is active.
I’m sorry I’m not in a position to give a code example at the moment. Your 2nd attempt isn’t exactly what I had in mind. I meant for you to create a second, shared context (like what you do in setup()), but use it to create the second window. Either that or assign the shared context to the second window after creating it. That way, both windows will share their textures with each other. And since the movie textures will be created on the main context and it is shared with the second window’s context, it does not matter in which window you draw the texture.