Windows Media play JavaScript full-screen Click Event

Source: Internet
Author: User
Tags ibutton
< Object ID = "Mediaplayer" Height = "300" Width = "400"
Classid = "CLSID: 6bf52a52-394a-11d3-b153-00c04f79faa6" Viewastext >
<! -- // The stream playback address ex: The Song address. -->
< Param Name = "Url" Value = "D: \ XXX \ bin \ debug \ Ad \ avseq01.dat"   />
<! -- // Specify the stream playback speed. The playback speed indicates reverse playback. -->
<! -- // When the value is not 1, ASF and WMV audio will sound during playback. -->
<! -- // The value ranges from-10 to 10. -->
< Param Name = "Rate" Value = "1"   />
<! -- // The integer effect between-100 and 100: Specify the balance between the left and right Enis. -->
< Param Name = "Balance" Value = "0"   />
<! -- // The playing position of the player, in seconds -->
< Param Name = "Currentposition" Value = "0"   />
<! -- // Specify the number of streaming playback times -->
< Param Name = "Playcount" Value = "99999999"   />
<! -- // Whether to play the video automatically -->
< Param Name = "Autostart" Value = "-1"   />
< Param Name = "Autorewind" Value = "-1"   />
< Param Name = "Currentmarker" Value = "0"   />
<! -- // Specify whether the URL router interface is enabled by the dynamic streamcompute. -->
< Param Name = "Invokeurls" Value = "-1"   />
<! -- // Any number ranging from 0 to 100. Specify the volume. -->
< Param Name = "Volume" Value = "50"   />
<! -- // Specifies whether or not the audio is voiced. -->
< Param Name = "Mute" Value = "0"   />
<! -- // None, Mini, or full, specifies how the Windows Media Player controls the display -->
< Param Name = "Uimode" Value = "NONE"   />
< Param Name = "Stretchtofit" Value = "0"   />
< Param Name = "Windowlessvideo" Value = "0"   />
<! -- // Specify whether the player is valid -->
< Param Name = "Enabled" Value = "-1"   />
<! -- // Specify whether to make the right-side menu valid -->
< Param Name = "Enablecontextmenu" Value = "1"   />
<! -- // Specify whether to enable full-screen playback of the streaming content. -->
< Param Name = "Fullscreen" Value = "0"   />
< Param Name = "Showcontrols" Value = "0"   />
<ParamName= "Sendkeyboardevents"Value= "-1" />
< Param Name = "Sendmouseclickevents" Value = "-1"   />
< Param Name = "Sendmousemoveevents" Value = "-1"   />
</ Object >

 

 

AboveCodeOn the HTML page,

The last three rows correspond to whether 0 is false if you want to obtain it in Javascript, but you do not understand why-1 is true,

Then add

 

< Script = " Mediaplayer " Event = " Mousedown (iButton, ishiftstate, FX, FY) "  
Language = " JScript " >
// Document. mediaplayer. fullscreen =-1;
// Click here to trigger the event
< / SCRIPT>
< Script = " Mediaplayer " Event = " Mousemove (iButton, ishiftstate, FX, FY) "  
Language = " JScript " >
// Wmpclosefull ();
< / SCRIPT>

< Script = " Mediaplayer " Event = " Keydown (ikeycode, ishiftstate) " Language = " JScript " >
// Wmpclosefull ();
< / SCRIPT>

 

 

Document. mediaplayer. fullscreen =-1;

Mediaplayer is the Object ID name.

In this way, you can find no answer on the network for a long time,

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.