'ActiveX'에 해당되는 글 3건

  1. 2008.07.22 window media player parameter
  2. 2007.06.18 <Object> Tag의 Active Movie Control 속성표
  3. 2007.06.15 Active-X 설치 여부 확인
2008.07.22 21:42

Why Has the class ID Changed?

The correct class ID for Windows Media Player 7 and later is: clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6.

Many places on the internet it states that the class ID should be: clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95. This class ID is the old one, but it will work, because of backward compability. However, if you use the old class ID you will not be able to use the new features added to the component.

Class ID(CLSID) Value

Version CLSID Description
Windows Media Player 10
Windows Media Player 9
Windows Media Player 8
Windows Media Player 7
CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6 대부분의 시스템
(Windows 2000이후 기본 탑재)
Windows Media Player 6.4 CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 일부 시스템에서만 사용한다. 단 호환성이 좋다.
(Windows XP이전버전까지 기본탑재됨)
Windows Media Player 6
(Older version)
CLSID:05589FA1-C356-11CE-BF01-00AA0055595A 지금은 거의 사용하지 않는다.

Parameter Discription

Windows Media Player provides a number of properties for use in monitoring and altering the state of the Player.

Following is a list of the properties exposed by the Windows Media Player.

Properties not supported are not listed. Unsupported properties can be accessed, but their values are not meaningful, and manipulating them will have no effect.

Property Access Value Description

AllowChangeDisplaySize

Read/Write

 

Sets or retrieves a value specifying whether the display size can be changed.

AllowHideControls

Read/Write

 

Indicates whether the user can hide the control panel at run time.

AllowScan

Read/Write

 

Sets or retrieves a value specifying whether scanning is enabled for files that support scanning (fast-forwarding and rewinding).

AudioStream

Read/Write

 

Sets or retrieves a value specifying the stream number of the current audio stream.

AutoRewind

Read/Write

 

Sets or retrieves a value specifying whether the Windows Media Player control automatically returns to the clip's starting point after the clip finishes playing or has otherwise stopped.

AutoSize

Read/Write

 

Sets or retrieves a value indicating whether the Windows Media Player control automatically sizes to the proportions of the original media rendered at the current display size.

AutoStart

Read/Write

 

Sets or retrieves a value specifying whether to start playing the clip automatically.

Balance

Read/Write

 

Sets or retrieves a value indicating the stereo balance.

Bandwidth

Read-only

 

Retrieves the bandwidth of the current clip in bits per second.

BaseURL

Read-only

 

Retrieves a value specifying the base URL.

BufferingCount

Read-only

 

Retrieves a value specifying the number of times buffering occurred during playback of a clip.

BufferingProgress

Read-only

 

Retrieves a value specifying the percentage of buffering completed.

BufferingTime

Read-only

 

Retrieves the buffering time, which is the time allocated for buffering incoming data before playback begins.

CanScan

Read-only

 

Retrieves a value specifying whether the current file supports scanning.

CanSeek

Read-only

 

Retrieves a value specifying whether the current file has the ability to seek to a specific time.

CanSeekToMarkers

Read-only

 

Retrieves a value specifying whether markers in the file can be located with a seek operation.

ChannelDescription

Read-only

 

Retrieves a value representing the station description.

ChannelName

Read-only

 

Retrieves a value representing the station name.

ChannelURL

Read-only

 

Retrieves a value representing the URL of the station metafile.

ClickToPlay

Read/Write

 

Sets or retrieves a value specifying whether the user can toggle playback by clicking the video image.

CodecCount

Read-only

 

Retrieves the number of installable codecs used by the current clip.

ContactAddress

Read-only

 

Retrieves a value representing the station's contact address.

ContactEmail

Read-only

 

Retrieves a value representing the station's e-mail address.

ContactPhone

Read-only

 

Retrieves a value representing the station's contact telephone number.

CreationDate

Read-only

 

Retrieves a value specifying the date and time when the clip was created.

CurrentMarker

Read/Write

 

Sets or retrieves a value indicating the current marker number.

CurrentPosition

Read/Write

 

Sets or retrieves a value representing the clip's current position, in seconds.

CurrentState

Read-only

 

Specifies the playback file's current state: stopped, paused, or running.

DefaultFrame

Read/Write

 

Sets or retrieves a value representing the default target HTTP frame.

DisplayBackColor

Read/Write

 

Sets or retrieves a value specifying the display panel's background color.

DisplayForeColor

Read/Write

 

Sets or retrieves a value specifying the display panel's foreground color.

DisplaySize

Read/Write

 

Sets or retrieves a value specifying the size of the image display window.

Duration

Read-only

 

Retrieves a value indicating the clip's playing time in seconds.

Enabled

Read/Write

 

Sets or retrieves a value specifying whether the Windows Media Player control is enabled.

EnablePositionControls

Read/Write

 

Sets or retrieves a value specifying whether the position controls are enabled on the control bar.

EnableTracker

Read/Write

 

Sets or retrieves a value specifying whether the trackbar control is enabled.

EntryCount

Read-only

 

Returns the number of entries contained in the current Advanced Stream Redirector (ASX) file.

ErrorCode

Read-only

 

Retrieves a value specifying the current error code.

ErrorCorrection

Read-only

 

Retrieves a value specifying the error correction type of the current clip.

ErrorDescription

Read-only

 

Retrieves a value specifying the description of the current error state.

FileName

Read/Write

 

Sets or retrieves a value specifying the name of the clip to play.

FullScreenMode

Read/Write

 

Expands the area of the playback panel to fill the entire screen.

GetMoreInfoURL

Read-only

 

Retrieves a URL to additional information about the presentation.

HasError

Read-only

 

Retrieves a value specifying whether the Windows Media Player control currently has an error.

HasMultipleItems

Read-only

 

Retrieves a value specifying whether the current clip contains multiple items (playlists).

ImageSourceHeight

Read-only

 

Retrieves a value specifying the original image height of the current clip, in pixels.

ImageSourceWidth

Read-only

 

Retrieves a value specifying the original image width of the current clip, in pixels.

InvokeURLs

Read/Write

 

Sets or retrieves a value specifying whether the Windows Media Player control automatically invokes URLs in a browser (URL flipping).

IsBroadcast

Read-only

 

Retrieves a value specifying whether the source is broadcast.

IsDurationValid

Read-only

 

Retrieves a value specifying whether the value of the Duration property is valid.

Language

Read/Write

 

Sets or retrieves a value specifying the current locale used for national language support.

LostPackets

Read-only

 

Retrieves a value specifying the number of packets lost during transmission of the stream.

MarkerCount

Read-only

 

Retrieves a value specifying the number of markers in the current clip.

MovieWindowSize

Read/Write

 

Specifies the size of the playback panel.

Mute

Read/Write

 

Sets or retrieves a value indicating the current mute state of the Windows Media Player control.

OpenState

Read-only

 

Retrieves a value indicating the state of the content source.

PlayCount

Read/Write

 

Sets or retrieves a value indicating the number of times a clip plays.

PlayState

Read-only

 

Retrieves a value indicating the state of the Windows Media Player operation.

Rate

Read/Write

 

Sets or retrieves a value specifying the clip's playback rate.

ReadyState

Read-only

 

Retrieves a value specifying the state of readiness of the Windows Media Player control.

ReceivedPackets

Read-only

 

Retrieves a value specifying the number of packets received.

ReceptionQuality

Read-only

 

Retrieves a value specifying the percentage of packets received in the last 30 seconds.

RecoveredPackets

Read-only

 

Retrieves a value specifying the number of packets recovered.

SelectionEnd

Read/Write

 

Sets or retrieves a value specifying the time when playback of the current clip will stop.

SelectionStart

Read/Write

 

Sets or retrieves a value specifying where playback of the current clip will begin.

SendErrorEvents

Read/Write

 

Sets or retrieves a value specifying whether the Windows Media Player control sends error events.

SendKeyboardEvents

Read/Write

 

Sets or retrieves a value specifying whether the Windows Media Player control sends keyboard events.

SendMouseClickEvents

Read/Write

 

Sets or retrieves a value specifying whether the Windows Media Player control sends mouse click events.

SendMouseMoveEvents

Read/Write

 

Sets or retrieves a value specifying whether the Windows Media Player control sends mouse move events.

SendOpenStateChangeEvents

Read/Write

 

Sets or retrieves a value specifying whether the Windows Media Player control sends open state change events.

SendPlayStateChangeEvents

Read/Write

 

Sets or retrieves a value specifying whether the Windows Media Player control sends play state change events.

ShowAudioControls

Read/Write

 

Sets or retrieves a value specifying whether the audio controls appear on the control bar.

ShowControls

Read/Write

 

Sets or retrieves a value specifying whether the control bar is visible.

ShowPositionControls

Read/Write

 

Sets or retrieves a value specifying whether the control bar is visible.

ShowStatusBar

Read/Write

 

Sets or retrieves a value specifying whether the status bar is visible.

ShowTracker

Read/Write

 

Sets or retrieves a value specifying whether the trackbar is visible.

SourceLink

Read-only

 

Retrieves a value specifying the path to the current clip.

SourceProtocol

Read-only

 

Retrieves a value specifying the protocol used to receive data.

StreamCount

Read-only

 

Retrieves a value indicating the number of media streams in the current clip.

TransparentAtStart

Read/Write

 

Sets or retrieves a value specifying whether the Windows Media Player control is transparent before play begins.

VideoBorder3D

Read/Write

 

Sets or retrieves a value specifying whether the three-dimensional video border effect is enabled.

VideoBorderColor

Read/Write

 

Sets or retrieves a value specifying the color of the video border.

VideoBorderWidth

Read/Write

 

Sets or retrieves a value specifying the width of the video border, in pixels.

Volume

Read/Write

 

Sets or retrieves a value specifying the volume, in hundredths of decibels.

       
Posted by 부니기
2007.06.18 12:05
사운드와 비디오 파일을 추가하는데 <embed>태그가 쓰이지만 이는 원래 넷스케이프사의 네비게이트를 위해 고안된 것이고, 물론 마이크로사의 익스플로러를 위해서는 <img dynsrc>태그가 있다. 하지만 이제는 점차적으로 이들을 통합하는 작업의 일환으로 <object>태그가 사용되는게 일반적인 추세다. 이 <object>태그는 ActiveX컨트롤을 사용하는데 이를 사용하자면 여러가지 속성을 이해해야 한다.

CLSID는 registry값을 보면 정확히 알 수 있다.
내컴퓨터\HKEY_CLASSES_ROOT\Amovie.ActiveMovie Control\CLSID



속 성 내 용
AllowChangedDisplayMode 초단위, 프레임 단위로 최종 사용자가 디스플레이 모드를 실행시 변경할 수 있는지를 나타낸다. -1=true, 0=false
AllowHideControls 최종 사용자가 컨트롤 패널을 실행시 감출 수 있는지를 나타낸다. -1=true, 0=false
AllowHideDisplay 최종 사용자가 디스필레이를 실행시 감출 수 있는지를 나타낸다. -1=true, 0=false
Apperance 디스플레이 패널의 경계의 모양을 지정한다. 1=inset border 패인모양, 0=무경계
AutoRewind 파일의 재생이 끝났을 때 자동으로 되감기를 할 것인지를 표시한다. -1=true, 0=false
AutoStart 웹페이지를 열면 자동으로 재생을 시작할 것인지를 표시한다. -1=true, 0=false
Balance 소리의 균형을 나타낸다. 0=균형, -10,000=왼쪽스피커만 사용,
10,000=오른쪽 스피커만 사용
BorderStyle 컨트롤 경계 스타일을 지정한다. 0=무사용, 1=고정된 싱글 경계
CurrentPosition 재생 파일에서의 현 위치를 초 단위로 나타낸다.  
CurrentState 플레이어의 현 상태를 나타낸다. 0=정지, 2=재생, 1=일시정지
DisplayBackColor 디스플레이 패널의 배경색을 나타낸다.  
DisplayForeColor 디스플레이 패널의 전경생을 나타낸다.  
DisplayMode 디스플레이 패널에 초단위 또는 프레임 단위로 현위치를 디스플레이할지를 나타낸다. 0=초, 1=프레임
EnableContextMenu 단축 메뉴를 활성화시킬지를 나타낸다. -1=true, 0=false
Enabled 컨트롤이 활성화되었는지를 나타낸다. -1=true, 0=false
EnablePositionControls 컨트롤 패널에 위치 버튼을 보여줄 것인지를 표현한다. -1=true, 0=false
EnableSelectControls 컨트롤 패널에 선택 버튼을 보여줄 것인지를 표현한다. -1=true, 0=false
EnableTracker 컨트롤 패널에 트랙바 컨트롤을 보여줄 것인지를 표시 -1=true, 0=false
FileName 재생될 멀티미디어 파일을 지정한다.  
FullScreenMode 모니터 전체의 크기로 멀티미디어를 표시한다.  
MovieWindowSize 재생 패널의 크기를 결정한다. 0=원래크기, 1=원래크기의 2배,
2=화면의 1/6크기, 3=화면의 1/4
PlayCount 재생할 횟수를 지정한다.  
Rate 재생 비율을 결정한다.  
ReadyState 소스 파일을 얼마나 로드했는가에 따른 Active Movie Control의 준비 상태를 나타낸다.  
SelectionEnd 파일의 처음에서부터 종료 위치를 초 단위로 지정한다.  
SelectionStart 파일의 처음에서부터 시작 위치를 초 단위로 지정한다.  
ShowControls 컨트롤 패널 표시 여부를 지정한다. -1=true, 0=false
ShowDisplay 디스플레이 패널 표시 여부를 지정한다. -1=true, 0=false
ShowPositionControls 위치 컨트롤의 표시 여부를 지정한다. -1=true, 0=false
ShowSelectControls 선택 컨트롤의 표시 여부를 지정한다. -1=true, 0=false
ShowTracker 트랙바의 표시 여부를 지정한다. -1=true, 0=false
Volume 데이벨의 100분의 1 단위로 볼륨을 지정한다.  
Posted by 부니기
2007.06.15 17:08

<OBJECT TYPE="application/x-oleobject" CODEBASE="test.cab#version=1,0,0,0" ID="testCtrl" CLASSID="CLSID:923E232E-68F3-4B89-8B56-4FE522E7F959" WIDTH=100 HEIGHT=20>

위와 같을 경우

object 설정내에 onError="activex_error()" 를 추가 함으로써

설치가 되지 않았을 경우에 자바스크립트로 설치여부 확인이 가능합니다.

아래와 같이 사용하시면 됩니다.

<script>
function activex_error(){
alert("설치가 되지 않았습니다");
}
</script>
<OBJECT TYPE="application/x-oleobject" CODEBASE="test.cab#version=1,0,0,0" ID="testCtrl" onError="activex_error()" CLASSID="CLSID:923E232E-68F3-4B89-8B56-4FE522E7F959" WIDTH=100 HEIGHT=20>

Alert

Alert

출처: PHPSCHOOL.COM

Posted by 부니기

티스토리 툴바