Jump to content

Windows Media Player udf


Recommended Posts

  • 8 months later...

I have tried to use a bit of your code from Func vplayer() and when I add the line

_wmpsetvalue($player, "fullscreen"); sets fullscreen

I get the error "AutoIt Error, Line -1: Error: The requested action with this object has failed." I looked in wmp.au3 and the line looks like it should work. Is this a bug?

$vfile = "Gargantuan.wmv"
        Global $player = _wmpcreate(1, 2, 10,100,100); Show, Pixel buffer from left, Pixel buffer from Top, Width of video, Height of Video
        DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $vplayer, "int", 500, "long", 0x00080000);fade-in
        GUISetState(@SW_SHOW)

        _wmpsetvalue($player, "nocontrols");hides controls
        _wmpsetvalue($player, "cm");disables right-click
        _wmpsetvalue($player, "volume", 100);sets volume to 100
        _wmpsetvalue($player, "fullscreen"); sets fullscreen
        _wmploadmedia($player, $vfile)


Also when I use line :

[CODE]
        Global $player = _wmpcreate(1, 2, 10,100,100)

Is there a way to stretch the video to a larger window without it going to full screen? instead what is happening is that if the video is 1000x700 pixels then the 100,100 only allows me to view the upper left corner of the video.

Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Link to comment
Share on other sites

  • 3 months later...

i am having a similar problem the video is a certain size and unless the control is the exact same size its cut off, is there any way to make the visualization/video the same size as the control?

Spoiler

Admin Of:http://notmyspace.info [Under Development, looking for volunteers to help improve]http://PSNetCards.co.ukhttp://ZacnAndLindsey.com [Under development, not quite sure what to do with it yet]http://revelm.com------------------------------------Radio Streams:http://75.185.53.88:8000 [128kb/s 44kHz]http://75.185.53.88:8002 [22kb/s 22kHz](works on mobile phones)-----------------------------------My Server:Owned By: http://jumpline.comIP:66.84.19.220Bandwidth:200GBStorage Space:1TBNetwork Connection: 1GB/S[up and down]Operating System: Red Hat LinuxInstalled Apps:Webmail, phpBB, Majordomo, phpMyAdmin, MySQL, Active Server Pages, FrontPage Extensions 2002, GraphicsMagick, Mod Perl, Perl, PHP: Hypertext Preprocessor, Python(want cheap good webhosting, or need a place to park your domain? contact me)-----------------------------------

 

Link to comment
Share on other sites

  • 9 months later...
  • 2 months later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...