C # making video player-player player component

Source: Internet
Author: User




650) this.width=650; "Src=" Http://www.ibcibc.com/data/attachment/forum/201311/14/172738rx7g4ryt6443tgg0.png " Width= "309" height= "412" alt= "172738rx7g4ryt6443tgg0.png"/>650) this.width=650; "Src=" http://www.ibcibc.com/ Data/attachment/forum/201311/14/172740wvdbebdvyvddkebk.png "width=" 663 "height=" 474 "alt=" 172740wvdbebdvyvddkebk.png "/>

The address of the landlord is the address of the potato, local address is also possible.
650) this.width=650; "Src=" Http://www.ibcibc.com/data/attachment/forum/201311/14/172741n2yf9agjnhyjhb9q.png " Width= "540" height= "407" alt= "172741n2yf9agjnhyjhb9q.png"/>

650) this.width=650; "Src=" Http://www.ibcibc.com/data/attachment/forum/201311/14/172742p42jdbxmbbn58pon.png " Width= "521" height= "alt=" 172742p42jdbxmbbn58pon.png "/>"

OK, this time we run, in the textbox to add you want to play the video address, the music address is also available, write the address, click the button, the program itself played,650) this.width=650; "src=" http:/ Www.ibcibc.com/data/attachment/forum/201311/14/172744fpiifthip4zpoo3q.png "width=" 534 "height=" 399 "alt=" 172744fpiifthip4zpoo3q.png "/>


now As you can see, the video size is not symmetrical with the player, and when we change the resolution of the video ,

refer to the AxWindowsMediaPlayer1 control Properties in detail:
attribute/Method Name: Description:
[Basic Properties]
url:string;Specify media location, native or network address
uimode:string; Player interface mode, available for full, Mini, None, Invisible
Playstate:integer; Playback status, 1 = stop, 2 = pause, 3= play, 6 = buffering, 9 = connecting, 10 = Ready
Enablecontextmenu:boolean; Enable/Disable right-click menu
Fullscreen:boolean; Whether to display full screen
[Controls] Wmp.controls//Player Basic control
Controls.play; Play
Controls.pause; Time out
Controls.stop; Stop it
controls.currentPosition:double; Current progress
controls.currentPositionString:string; Current progress, string format. such as "00:23"
Controls.fastforward; Fast Forward
Controls.fastreverse; Go back
Controls.next; Next song
controls.previous; Previous song
[Settings] Wmp.settings//Player basic settings
Settings.volume:integer; Volume, 0-100
Settings.autoStart:Boolean; Whether to play automatically
Settings.mute:Boolean; is muted
Settings.playCount:integer; Number of plays
[Currentmedia] Wmp.currentmedia//Current Media properties
currentMedia.duration:double; Total media length
currentMedia.durationString:string; Media total length, string format. such as "03:24"
Currentmedia.getiteminfo (const string); Get current media information "title" = Media title, "Author" = artist, "copyright" = Copyright Information, "Description" = Media content description, "Duration" = Duration (seconds), "FileSize" = File size, " FileType "= File type," sourceURL "= Original address
Currentmedia.setiteminfo (const string); Setting media information by property name
currentMedia.name:string; With Currentmedia.getiteminfo ("Title")
[Currentplaylist] Wmp.currentplaylist//Current Playlist properties
CurrentPlaylist.count:integer; The current playlist contains the number of media
Currentplaylist.item[integer]; Gets or sets the specified project media information whose sub-properties are the same as Wmp.currentmedia
AxWindowsMediaPlayer Properties of the control
Mediaplayer1.play Playback
Mediaplayer1.stop stop
Mediaplayer1.pause Pause
Mediaplayer1.playcount file playback times
Mediaplayer1.autorewind whether the loop plays
Mediaplayer1.balance Channel
Mediaplayer1.volume Volume
Mediaplayer1.mute Mute
Mediaplayer1.enablecontextmenu whether to allow the shortcut menu to pop up when the right mouse button is clicked on the control
Mediaplayer1.animationatstart whether to play the animation before playing
Mediaplayer1.showcontrols whether the control toolbar is displayed
Mediaplayer1.showaudiocontrols Whether the Sound control button is displayed
Mediaplayer1.showdisplay whether to display information about a data file
Mediaplayer1.showgotobar whether to show Goto bar
Mediaplayer1.showpositioncontrols whether the position adjustment button is displayed
Mediaplayer1.showstatusbar whether the status bar is displayed
Mediaplayer1.showtracker whether the progress bar is displayed
Mediaplayer1.fastforward Fast Forward
Mediaplayer1.fastreverse, come back.
Mediaplayer1.rate Fast forward/rewind rate
Mediaplayer1.allowchangedisplaysize whether to allow free setting of the playback image size
Mediaplayer1.displaysize setting the playback image size
1-mpdefaultsize Original Size
2-mphalfsize half of the original size
3-mpdoublesize twice times the original size
4-mpfullscreen fullscreen
5-mponesixteenthscreen 1/16 of screen size
6-mponefourthscreen 1/4 of screen size
7-mponehalfscreen 1/2 of screen size
Mediaplayer1.clicktoplay allows you to click the Playback window to start Media Player




This article from "Frank" blog, reproduced please contact the author!

C # making video player-player player component

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.