Page 1 of 1

How to shift a scaled video on a hooked window?

Posted: 27 Oct 2015 14:43
by grindstone
Hello community! :)

I'm actually translating the libVLC header files for freeBasic (to be honest: I'm finishing the work some other guy(s) once began).

It seems to work so far, and now I'm trying to write an example code to show how one can embed a video in a random window. Hooking the video output to a window and scaling it works fine, but it is displayed only in the center of the window, and I can't find a way to shift it e.g. to the upper left corner.

Is there a feature implemented in libVLC to move the video, and if not, is there a workaround?

OS is WinXP, libVLC is version 2.1.5

Regards
grindstone

Re: How to shift a scaled video on a hooked window?

Posted: 03 Nov 2015 11:52
by grindstone
Noone any idea?

Re: How to shift a scaled video on a hooked window?

Posted: 03 Nov 2015 12:36
by RĂ©mi Denis-Courmont
Don't do that. You should give libVLC a window with the correct size and position, is all.

Re: How to shift a scaled video on a hooked window?

Posted: 05 Nov 2015 10:17
by grindstone
Thank you for your answer.

Replacing the scaled video within an arbitrary window would have been the easiest way to use it as one of multiple elements e.g. for a game.

I guess it's time for plan B now: Removing the frame and title bar from the video window and making it a child of the game's main window. I hope I'll get it working.

Regards
grindstone