Jump to content
Sign in to follow this  

Scale Video in java

Recommended Posts

I want to resize a video with-in the GUI to a smaller player but I'm not sure it is possible. The player is using Java control. We have camaras here at work that I look at all night. They are on the network but they open in a http:// Intranet link. I can play them in the gui but can't resize the video. The GUI can be resized but the video does not scale down with the gui.

I think it would nice if everything would scale up and down with what ever a user puts in a gui.

#include <ButtonConstants.au3>

#include <IE.au3>

#include <WinAPI.au3>

#include <WindowsConstants.au3>

#include <GUIConstantsEx.au3>

HotKeySet("{ESC}", "On_Exit")

$GUI = GUICreate(" Cams", @DesktopWidth, @DesktopHeight, 0, 0, BitOR($GUI_SS_DEFAULT_GUI, $WS_MAXIMIZEBOX, $WS_SIZEBOX))


$cam1 = ObjCreate("Shell.Explorer.2")

GUICtrlCreateObj($cam1, -87, -120, 742, 620)


$cam2 = ObjCreate("Shell.Explorer.2")

GUICtrlCreateObj($cam2, 652, -120, 742, 620)


$cam3 = ObjCreate("Shell.Explorer.2")

GUICtrlCreateObj($cam3, -192, 497, 862, 620)



While 1

$msg = GUIGetMsg()


Case $msg = $GUI_EVENT_CLOSE




Func On_Exit()



Share this post

Link to post
Share on other sites

try to create a separate .html file:

here you can play with top, left (those two can also be negative), zoom, width, height.

the main thing is zoom, if it's less than 100 your video should be smaller.

if this works just point to this html file with autoit.

<div style="position:absolute; top:0px; left:0px">
<iframe src="http://netcamw100010.w10/view/index.shtml"­ style="zoom:100%" width=476 height=267 scrolling="no" frameborder="0">

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...