How to shift a scaled video on a hooked window?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
grindstone
New Cone
New Cone
Posts: 9
Joined: 27 Oct 2015 14:04

How to shift a scaled video on a hooked window?

Postby grindstone » 27 Oct 2015 14:43

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

grindstone
New Cone
New Cone
Posts: 9
Joined: 27 Oct 2015 14:04

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

Postby grindstone » 03 Nov 2015 11:52

Noone any idea?

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 03 Nov 2015 12:36

Don't do that. You should give libVLC a window with the correct size and position, is all.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

grindstone
New Cone
New Cone
Posts: 9
Joined: 27 Oct 2015 14:04

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

Postby grindstone » 05 Nov 2015 10:17

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


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 40 guests