Jump to content
Sign in to follow this  
FastJMAN1

Scale Video in java

Recommended Posts

FastJMAN1

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))

_IECreateEmbedded()

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

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

_IENavigate($cam1,"http://netcamw100010.w10/view/index.shtml")

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

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

_IENavigate($cam2,"http://netcamw100011.w10/view/index.shtml")

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

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

_IENavigate($cam3,"http://201_203_crossing/en/JViewer.html")

GUISetState()

While 1

$msg = GUIGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE

Exit

EndSelect

WEnd

Func On_Exit()

Exit

EndFunc

Share this post


Link to post
Share on other sites
hessebou

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">
        </iframe></div>

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.