id.CurrentPosition : 현재 플레이 위치
id.Duration : 총 프레임(?)수
id.PlayState : 현재 플레이 상태
- 0 : 정지
- 1 : 일시정지
- 2 : 재상중
function vPlay(){////일시정지.. 플레이..
var bnt = document.getElementById("play");////버튼 아이디
var player = document.getElementById("wm_01");//플레이어 아이디
if(player.PlayState == 0 || player.PlayState == 1){//정지상태 또는 일시정지 bnt.src="/images/play_pause.gif";
player.play();
}else if(player.PlayState == 2){//플레이 중
bnt.src="/images/play_play.gif";
player.pause();
}
}
function vStop(){//멈춤
document.getElementById("wm_01").stop();
document.getElementById("play").src="/images/play_play.gif";
}
<!--해당 아이디가 멈추면 함수 실행--->
<SCRIPT FOR="wm_01" EVENT="EndOfStream(lResult)" LANGUAGE="JScript">
vStop();///플레이 끝나면 멈춰.
</SCRIPT>
<OBJECT id="wm_01" name="wm_01" classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95 width=320 codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
height=240 VIEWASTEXT>
<PARAM NAME="AudioStream" VALUE="-1">
<PARAM NAME="AutoSize" VALUE="0">
<PARAM NAME="AutoStart" VALUE="1">
<PARAM NAME="AnimationAtStart" VALUE="0">
<PARAM NAME="AllowScan" VALUE="-1">
<PARAM NAME="AllowChangeDisplaySize" VALUE="-1">
<PARAM NAME="AutoRewind" VALUE="1">
<PARAM NAME="Balance" VALUE="0">
<PARAM NAME="BaseURL" VALUE="">
<PARAM NAME="BufferingTime" VALUE="5">
<PARAM NAME="CaptioningID" VALUE="">
<PARAM NAME="ClickToPlay" VALUE="1">
<PARAM NAME="CursorType" VALUE="0">
<PARAM NAME="CurrentPosition" VALUE="-1">
<PARAM NAME="CurrentMarker" VALUE="0">
<PARAM NAME="DefaultFrame" VALUE="SlideDisplay">
<PARAM NAME="DisplayBackColor" VALUE="0">
<PARAM NAME="DisplayForeColor" VALUE="16777215">
<PARAM NAME="DisplayMode" VALUE="0">
<PARAM NAME="DisplaySize" VALUE="4">
<PARAM NAME="Enabled" VALUE="-1">
<PARAM NAME="EnableContextMenu" VALUE="1">
<PARAM NAME="EnablePositionControls" VALUE="-1">
<PARAM NAME="EnableFullScreenControls" VALUE="0">
<PARAM NAME="EnableTracker" VALUE="-1">
<!-- 동영상 경로와 파일이름 적는곳 -->
<PARAM NAME="Filename" VALUE="파일경로">
<PARAM NAME="InvokeURLs" VALUE="-1">
<PARAM NAME="Language" VALUE="-1">
<PARAM NAME="Mute" VALUE="0">
<PARAM NAME="PlayCount" VALUE="1">
<PARAM NAME="PreviewMode" VALUE="0">
<PARAM NAME="Rate" VALUE="1">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMIFileName" VALUE="">
<PARAM NAME="SelectionStart" VALUE="-1">
<PARAM NAME="SelectionEnd" VALUE="-1">
<PARAM NAME="SendOpenStateChangeEvents" VALUE="-1">
<PARAM NAME="SendWarningEvents" VALUE="-1">
<PARAM NAME="SendErrorEvents" VALUE="-1">
<PARAM NAME="SendKeyboardEvents" VALUE="0">
<PARAM NAME="SendMouseClickEvents" VALUE="1">
<PARAM NAME="SendMouseMoveEvents" VALUE="0">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="1">
<PARAM NAME="ShowCaptioning" VALUE="0">
<PARAM NAME="ShowControls" VALUE="0">
<PARAM NAME="ShowAudioControls" VALUE="-1">
<PARAM NAME="ShowDisplay" VALUE="0">
<PARAM NAME="ShowGotoBar" VALUE="0">
<PARAM NAME="ShowPositionControls" VALUE="-1">
<PARAM NAME="ShowStatusBar" VALUE="0">
<PARAM NAME="ShowTracker" VALUE="-1">
<PARAM NAME="TransparentAtStart" VALUE="-1">
<PARAM NAME="VideoBorderWidth" VALUE="0">
<PARAM NAME="VideoBorderColor" VALUE="0">
<PARAM NAME="VideoBorder3D" VALUE="0">
<PARAM NAME="Volume" VALUE="-350">
<PARAM NAME="WindowlessVideo" VALUE="0">
</object>
윈도우 미디어 객체의 파라메터 전체 목록 HTML
2006/07/23 04:50 |
윈도우 미디어플레이어 속성정리 | ||
param값 | 자료형 | 설명 |
AllowChangeDisplaySize | Boolean | user can change the display size |
Boolean | scanning is enabled | |
AnimationAtStart | Boolean | animation runs before the first image displays |
AudioStream | Long | the stream number of the current audio stream |
AutoRewind | Boolean | the clip rewinds automatically |
AutoSize | Boolean | Windows Media Player changes size to conform to the size of the content |
AutoStart | Boolean | start playing the clip automatically |
Balance | Long | from –10,000 to 10,000 indicating the stereo balance |
Bandwidth | Long | bandwidth of the current clip in bits per second |
String | the base URL | |
Long | the number of times buffering occurred during playback. | |
Long | the percentage of buffering completed | |
BufferingTime | Double | from 1 to 30, specifying the buffering time in seconds asf(5) vod(3) |
ULONG | number of available buttons. | |
CanPreview | Boolean | the current playlist can be previewed. If true, the playlist can be previewed. |
CanScan | Boolean | the current file supports scanning. If true, the file supports scanning |
CanSeek | Boolean | the file can seek to a specific time. If true, the file can seek to a specific time |
CanSeekToMarkers | Boolean | markers in the file can be located with a seek operation. |
CaptioningID | String | name of the frame or control that displays captioning. |
ChannelDescription | String | representing the station description |
ChannelName | String | representing the station name |
ChannelURL | String | representing the URL of the station metafile |
ClickToPlay | Boolean | the user can toggle playback by clicking the video image. |
ClientID | String | representing a Globally Unique Identifier (GUID). |
CodecCount | Long | the number of installable codecs used by the current clip. |
ConnnectionSpeed | Long | |
ContactAddress | String | representing the station's contact address |
ContactEmail | String | representing the station's e-mail address |
ContactPhone | String | representing the station's contact telephone |
CreationDate | Date | the date and time when the clip was created. |
CurrentMarker | Long | indicating the current marker number |
CurrentPosition | Double | representing the clip's current position, in seconds. |
CursorType | Long | any of the stock cursor values from the Microsoft Platform SDK |
DefaultFrame | String | representing the default target HTTP frame |
DisplayBackColor | Long | the display panel's background color |
DisplayForeColor | Long | the display panel's foreground color |
DisplayMode | Integer | how the status bar displays the current position |
0:Display the current position in seconds. | ||
1:Display the current position in frames | ||
DisplaySize | Long | the size of the image display window(도움말참고) |
Duration | Double | indicating the clip's playing time in seconds |
Enabled | Boolean | the Windows Media Player control is enabled |
EnableFullScreenControls | Boolean | indicating whether the Windows Media Player displays controls in full-screen mode |
EnablePositionControls | Boolean | the position controls are enabled on the control bar |
EnableTracker | Boolean | the trackbar is enabled |
EntryCount | Integer | the number of ENTRY elements in the current ASX file. |
ErrorCode | Long | the current error code |
ErrorCorrection | String | the error correction type of the current clip |
ErrorDescription | String | the description of the current error state |
FileName | String | the name of the clip |
HasError | Boolean | the control currently has an error. If true, the control has an error |
HasMultipleItems | Boolean | the ASX file contains multiple ENTRY tags |
ImageSourceHeight | Long | the original image height, in pixels |
ImageSourceWidth | Long | the original image width, in pixels |
InvokeURLs | Boolean | URL flipping is enabled |
IsBroadcast | Boolean | the source is broadcast. If true, the source is broadcast |
IsDurationValid | Boolean | the Duration property is valid. If true, Duration is valid |
Language | Long | corresponds to an LCID identifying a locale for national language support. |
LostPackets | Long | number of packets lost during transmission of the stream |
MarkerCount | Long | number of markers in the current clip |
Mute | Boolean | volume is muted |
OpenState | Long | state of the content source |
PlayCount | Long | the number of times a clip plays |
PlayState | Long | indicating the play state |
PreviewMode | Boolean | Windows Media Player is in preview mode |
Rate | Double | the clip's playback rate |
ReadyState | Long | the state of readiness of the Windows Media Player control |
ReceivedPackets | Long | the number of packets received |
ReceptionQuality | Long | percentage of packets received in the last 30 seconds |
RecoveredPackets | Long | number of packets recovered |
SAMIFileName | String | the name of the file that contains the information needed for closed captioning |
SAMILang | String | language displayed for closed captioning |
SAMIStyle | String | the closed captioning style |
SelectionEnd | Double | end position in seconds, relative to the start of the presentation |
SelectionStart | Double | start position in seconds, relative to the beginning of the presentation |
SendErrorEvents | Boolean | error events are enabled |
SendKeyboardEvents | Boolean | keyboard events are enabled |
SendMouseClickEvents | Boolean | mouse click events are enabled |
SendMouseMoveEvents | Boolean | mouse move events are enabled |
SendOpenStateChangeEvents | Boolean | open state change events are enabled |
SendPlayStateChangeEvents | Boolean | play state change events are enabled |
SendWarningEvents | Boolean | warning events are enabled. |
ShowAudioControls | Boolean | audio controls appear on the control bar |
ShowCaptioning | Boolean | closed caption area is visible and closed captioning is enabled |
ShowControls | Boolean | the control bar is visible |
ShowDisplay | Boolean | display panel is visible |
ShowGotoBar | Boolean | Go To bar is visible |
ShowPositionControls | Boolean | the position controls appear on the control bar |
ShowStatusBar | Boolean | status bar is visible |
ShowTracker | Boolean | trackbar is visible |
SourceLink | String | path to the current clip |
SourceProtocol | Long | protocol used to receive data |
StreamCount | Long | number of media streams in the current clip |
TransparentAtStart | Boolean | Windows Media Player control is transparent before play begins and after play ends |
VideoBorder3D | Boolean | 3-D video border effect is enabled |
VideoBorderColor | OLE_COLOR | the color of the video border |
VideoBorderWidth | Long | width of the video border, in pixels |
Volume | Long | volume, in hundredths of decibels |
ULONG | number of volumes in the volume set |
'컴터 > Javascript / html' 카테고리의 다른 글
팝업 한번만.. (0) | 2007.09.22 |
---|---|
window.document.location (0) | 2007.09.15 |
강제로 팝업띄우기란다.. (2) | 2007.09.03 |
form 에 해당 input box 가 있는 확인 (0) | 2007.08.29 |