[답변]원하는 내용이 무엇인지 잘모르겠습니다면... 2002-07-10 오후 5:53:00
정용철 번호: 212603   / 평점:  (-)  
꼭 필요한 함수만 찍어드리겠습니다.
연습해보세요.

즐프~

√  double GetCurrentPosition();        //현재위치
√      void SetCurrentPosition(double newValue);    //현재위치 설정
√      double GetDuration();      // 전체길이
    long GetImageSourceWidth();
    long GetImageSourceHeight();
    long GetMarkerCount();
    BOOL GetCanScan();
    BOOL GetCanSeek();
    BOOL GetCanSeekToMarkers();
    long GetCurrentMarker();
    void SetCurrentMarker(long nNewValue);
    CString GetFileName();
√      void SetFileName(LPCTSTR lpszNewValue);    //재생할 파일이름
    CString GetSourceLink();
    DATE GetCreationDate();
    CString GetErrorCorrection();
    long GetBandwidth();
    long GetSourceProtocol();
    long GetReceivedPackets();
    long GetRecoveredPackets();
    long GetLostPackets();
    long GetReceptionQuality();
    long GetBufferingCount();
    BOOL GetIsBroadcast();
    long GetBufferingProgress();
    CString GetChannelName();
    CString GetChannelDescription();
    CString GetChannelURL();
    CString GetContactAddress();
    CString GetContactPhone();
    CString GetContactEmail();
    double GetBufferingTime();
    void SetBufferingTime(double newValue);
    BOOL GetAutoStart();
√      void SetAutoStart(BOOL bNewValue);     //자동시작
√      BOOL GetAutoRewind();                           //자동 되감기 얻기
√      void SetAutoRewind(BOOL bNewValue);      //자동되감기
√      double GetRate();                               //재생속도  0.0 < x <2.0
√      void SetRate(double newValue);         //재생속도 설정
    BOOL GetSendKeyboardEvents();
    void SetSendKeyboardEvents(BOOL bNewValue);
    BOOL GetSendMouseClickEvents();
    void SetSendMouseClickEvents(BOOL bNewValue);  
    BOOL GetSendMouseMoveEvents();
    void SetSendMouseMoveEvents(BOOL bNewValue);
    long GetPlayCount();
    void SetPlayCount(long nNewValue);
    BOOL GetClickToPlay();
√      void SetClickToPlay(BOOL bNewValue);
    BOOL GetAllowScan();
    void SetAllowScan(BOOL bNewValue);
    BOOL GetEnableContextMenu();
    void SetEnableContextMenu(BOOL bNewValue);
    long GetCursorType();
    void SetCursorType(long nNewValue);
    long GetCodecCount();
    BOOL GetAllowChangeDisplaySize();
    void SetAllowChangeDisplaySize(BOOL bNewValue);
    BOOL GetIsDurationValid();
    long GetOpenState();
    BOOL GetSendOpenStateChangeEvents();
    void SetSendOpenStateChangeEvents(BOOL bNewValue);
    BOOL GetSendWarningEvents();
    void SetSendWarningEvents(BOOL bNewValue);
    BOOL GetSendErrorEvents();
    void SetSendErrorEvents(BOOL bNewValue);
√      long GetPlayState();
    BOOL GetSendPlayStateChangeEvents();
    void SetSendPlayStateChangeEvents(BOOL bNewValue);
    long GetDisplaySize();
    void SetDisplaySize(long nNewValue);
    BOOL GetInvokeURLs();
    void SetInvokeURLs(BOOL bNewValue);
    CString GetBaseURL();
    void SetBaseURL(LPCTSTR lpszNewValue);
    CString GetDefaultFrame();
    void SetDefaultFrame(LPCTSTR lpszNewValue);
    BOOL GetHasError();
    CString GetErrorDescription();
    long GetErrorCode();
    BOOL GetAnimationAtStart();
    void SetAnimationAtStart(BOOL bNewValue);
    BOOL GetTransparentAtStart();
    void SetTransparentAtStart(BOOL bNewValue);
    long GetVolume();
    void SetVolume(long nNewValue);
    long GetBalance();
    void SetBalance(long nNewValue);
    long GetReadyState();
    double GetSelectionStart();
    void SetSelectionStart(double newValue);
    double GetSelectionEnd();
    void SetSelectionEnd(double newValue);
    BOOL GetShowDisplay();
    void SetShowDisplay(BOOL bNewValue);
    BOOL GetShowControls();
    void SetShowControls(BOOL bNewValue);
    BOOL GetShowPositionControls();
    void SetShowPositionControls(BOOL bNewValue);
    BOOL GetShowTracker();
    void SetShowTracker(BOOL bNewValue);
    BOOL GetEnablePositionControls();
    void SetEnablePositionControls(BOOL bNewValue);
    BOOL GetEnableTracker();
    void SetEnableTracker(BOOL bNewValue);
    BOOL GetEnabled();
    void SetEnabled(BOOL bNewValue);
    unsigned long GetDisplayForeColor();
    void SetDisplayForeColor(unsigned long newValue);
    unsigned long GetDisplayBackColor();
    void SetDisplayBackColor(unsigned long newValue);
    long GetDisplayMode();
    void SetDisplayMode(long nNewValue);
    BOOL GetVideoBorder3D();
    void SetVideoBorder3D(BOOL bNewValue);
    long GetVideoBorderWidth();
    void SetVideoBorderWidth(long nNewValue);
    unsigned long GetVideoBorderColor();
    void SetVideoBorderColor(unsigned long newValue);
    BOOL GetShowGotoBar();
    void SetShowGotoBar(BOOL bNewValue);
    BOOL GetShowStatusBar();
    void SetShowStatusBar(BOOL bNewValue);
    BOOL GetShowCaptioning();
    void SetShowCaptioning(BOOL bNewValue);
    BOOL GetShowAudioControls();
    void SetShowAudioControls(BOOL bNewValue);
    CString GetCaptioningID();
    void SetCaptioningID(LPCTSTR lpszNewValue);
    BOOL GetMute();
    void SetMute(BOOL bNewValue);
    BOOL GetCanPreview();
    BOOL GetPreviewMode();
    void SetPreviewMode(BOOL bNewValue);
    BOOL GetHasMultipleItems();
    long GetLanguage();
    void SetLanguage(long nNewValue);
    long GetAudioStream();
    void SetAudioStream(long nNewValue);
    CString GetSAMIStyle();
    void SetSAMIStyle(LPCTSTR lpszNewValue);
    CString GetSAMILang();
    void SetSAMILang(LPCTSTR lpszNewValue);
    CString GetSAMIFileName();
    void SetSAMIFileName(LPCTSTR lpszNewValue);
    long GetStreamCount();
    CString GetClientId();
    long GetConnectionSpeed();
    BOOL GetAutoSize();
    void SetAutoSize(BOOL bNewValue);
    BOOL GetEnableFullScreenControls();
    void SetEnableFullScreenControls(BOOL bNewValue);
    LPDISPATCH GetActiveMovie();
    LPDISPATCH GetNSPlay();
    BOOL GetWindowlessVideo();
    void SetWindowlessVideo(BOOL bNewValue);
√      void Play();
√      void Stop();
√      void Pause();
    double GetMarkerTime(long MarkerNum);
    CString GetMarkerName(long MarkerNum);
    void AboutBox();
    BOOL GetCodecInstalled(long CodecNum);
    CString GetCodecDescription(long CodecNum);
    CString GetCodecURL(long CodecNum);
    CString GetMoreInfoURL(long MoreInfoType);
    CString GetMediaInfoString(long MediaInfoType);
    void Cancel();
    void Open(LPCTSTR bstrFileName);
    BOOL IsSoundCardEnabled();
√      void Next();
√      void Previous();
    void StreamSelect(long StreamNum);
√      void FastForward();
√      void FastReverse();
    CString GetStreamName(long StreamNum);
    long GetStreamGroup(long StreamNum);
    BOOL GetStreamSelected(long StreamNum);
    CMediaPlayerDvd GetDvd();
    CString GetMediaParameter(long EntryNum, LPCTSTR bstrParameterName);
    CString GetMediaParameterName(long EntryNum, long Index);
    long GetEntryCount();
    long GetCurrentEntry();
    void SetCurrentEntry(long EntryNumber);
    void ShowDialog(long mpDialogIndex);

Posted by +깡통+
Windows Media Player SDK banner art
Previous Next

Player.playState

The playState property retrieves a value indicating the state of the Windows Media Player operation.

Syntax

player.playState

Possible Values

This property is a read-only Number (long). The C-style enumeration constant can be derived by prefixing the state value with "wmpps". For example, the constant for the Playing state is wmppsPlaying.

Value State Description
0 Undefined Windows Media Player is in an undefined state.
1 Stopped Playback of the current media item is stopped.
2 Paused Playback of the current media item is paused. When a media item is paused, resuming playback begins from the same location.
3 Playing The current media item is playing.
4 ScanForward The current media item is fast forwarding.
5 ScanReverse The current media item is fast rewinding.
6 Buffering The current media item is getting additional data from the server.
7 Waiting Connection is established, but the server is not sending data. Waiting for session to begin.
8 MediaEnded Media item has completed playback.
9 Transitioning Preparing new media item.
10 Ready Ready to begin playing.
11 Reconnecting Reconnecting to stream.

Remarks

Windows Media Player states are not guaranteed to occur in any particular order. Furthermore, not every state necessarily occurs during a sequence of events. You should not write code that relies upon state order.

Example Code

The following JScript code shows the use of the player.playState property. An HTML text element, named "myText", displays the current status. The Player object was created with ID = "Player".

// Test whether Windows Media Player is in the playing state.
if (3 == Player.playState)
    myText.value = "Windows Media Player is playing!";
else
    myText.value = "Windows Media Player is NOT playing!";

Requirements

Version: Windows Media Player version 7.0 or later.

Header: Defined in wmp.idl; include wmp.h.

Library: Use wmp.dll.

Posted by +깡통+
http://msdn.microsoft.com/ko-kr/windowsmedia/bb190309(en-us).aspx

Windows Media Downloads

Microsoft® Windows Media® consists of a number of software components that you can use to create complete streaming media solutions. Within each component is a suite of related programs, plug-ins, tools, and utilities. Together, these components provide an end-to-end solution for streaming multimedia, from content authoring to delivery and playback.

Latest Windows Media Downloads

Windows Media Rights Manager 10.1.1 SDK

Introduces new features to help you manage large numbers of licenses more easily, revoke specific licenses, and use new rights to support consumer scenarios like sharing music or burning playlists to CDs. Also use this SDK to work with portable devices that support Windows Media DRM 10 for Portable Devices. The Windows Media Rights Manager 10.1.1 SDK will be sent to you after Microsoft accepts a signed SDK license agreement from you. You will also need to obtain digital certificates to verify your identity.

Windows Media Format 11 SDK
Introduces a variety of new digital rights management features.
Windows SDK for Windows Vista
The latest versions for most Windows Media developer technologies are included in the Windows SDK for Windows Vista. Download and install the Windows SDK to get the Windows Meda Player 11 SDK, the Media Foundation SDK, Windows Portable Devices, the Core Audio APIs, and more.
Media Transfer Protocol Porting Kit
Introduces the new Media Transfer Protocol (MTP), which enables you to manage content on any portable device with storage. MTP was first shipped as part of the Windows Media Device Manager 10 SDK. This porting kit includes the complete MTP specification, design documentation, sample source code, software to implement a PC-based MTP simulator, and MTP test tools. The latest version of the MTP Porting Kit includes thoroughly updated ANSI C source code as well as a redistributable MTP driver for Windows 98 Second Edition, Windows Millennium Edition, and Windows 2000 operating systems. This driver is implemented as a Windows Media Device Manager Service Provider and supports device access through Windows Media Player 9 Series and other device applications that work on the Windows Media Format 9 Series Software Development Kit (SDK).
Windows Media Services 9 Series SDK
Part of the Microsoft Platform SDK for Windows Server 2003, the Windows Media Services 9 Series SDK enables you to programmatically control, configure, and monitor a server running Windows Media Services 9 Series.
Windows Media Device Manager 10 SDK
Introduces new features to help you work with devices that support the new Media Transfer Protocol (MTP), devices that support a modified Windows CE (Pocket PC) class driver, and mass storage devices exposed by the new Microsoft Cluster (MSC) class driver. The Windows Media Device Manager 10 SDK is included in the Windows Media Format 9.5 SDK. You will also need to obtain digital certificates to enable transfer of content protected by Windows Media digital rights management (DRM).

Older Windows Media Downloads

Windows Media Player 10 SDK
The Microsoft Windows Media Player 10 SDK provides information and tools to customize Windows Media Player and to use the Windows Media Player ActiveX® control. This documentation also provides information about using Windows Media metafiles.
Windows Media Format 9.5 SDK
This update to the Windows Meda Format 9 Seres SDK provdes several improvements including the Windows Media Video Advanced Profile codec and an improved Windows Media Video Image codec. Unlke the Windows Media Format 9 Seres SDK, this verson requires Windows XP or later.
Sample Code for Using the Windows Media Audio and Video Codec Interfaces
This package includes documentation and sample code that demonstrate how to use the Codec APIs in the Windows Media Format 9 Series SDK.
Windows Media Format 9 Series SDK
With support for the Windows Media Audio and Video codecs, the Windows Media Format SDK provides technology and documentation you can use to create and manipulate Windows Media files in your applications.
Windows Media Encoder 9 Series SDK
The Microsoft Windows Media Encoder 9 Series SDK is designed for anyone who wants to develop a Windows Media Encoder application by using a powerful automation-based application programming interface (API).
Windows Media Rights Manager 9 Series SDK
This SDK provides the tools to create an end-to-end digital rights management (DRM) system that offers content providers and retailers a flexible platform for the secure distribution of digital media files. The Windows Media Rights Manager 9 Series SDK will be sent to you after Microsoft accepts a signed SDK license agreement from you. You will also need to obtain digital certificates to verify your identity.
Windows Media Services 4.1 SDK
The Windows Media Services 4.1 SDK component enables content developers and system administrators to support Windows Media Technologies in their Web sites today.

Posted by +깡통+