用过Media Player控件得尽量看看

111222 2004-05-02 07:24:52
Media Player 6.4

1, 怎么获得 01:50 / 03:20 这个播放时间?

2, OnError怎么捕获错误码?

3, OpenState, PlayState的值哪有文档? MSDN上找不到具体值(可能是我没找到)


...全文
100 4 打赏 收藏 举报
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
111222 2004-05-03
up
  • 打赏
  • 举报
回复
111222 2004-05-03
uuuuuuuup
  • 打赏
  • 举报
回复
111222 2004-05-02
楼上, 你这个是media player 9的文档, 我只能用media player 6.4的, 因为9很多人机器上都没有.
  • 打赏
  • 举报
回复
Onega 2004-05-02
WMPPlayState
The WMPPlayState enumeration type defines the possible operational states of Windows Media Player as it plays a digital media file.

Syntax

typedef enum WMPPlayState{
wmppsUndefined = 0,
wmppsStopped = 1,
wmppsPaused = 2,
wmppsPlaying = 3,
wmppsScanForward = 4,
wmppsScanReverse = 5,
wmppsBuffering = 6,
wmppsWaiting = 7,
wmppsMediaEnded = 8,
wmppsTransitioning = 9,
wmppsReady = 10,
wmppsReconnecting = 11
} WMPPlayState;

WMPOpenState
The WMPOpenState enumeration type defines the possible operational states of Windows Media Player as it opens a digital media file.

Syntax

typedef enum WMPOpenState{
wmposUndefined = 0,
wmposPlaylistChanging = 1,
wmposPlaylistLocating = 2,
wmposPlaylistConnecting = 3,
wmposPlaylistLoading = 4,
wmposPlaylistOpening = 5,
wmposPlaylistOpenNoMedia = 6,
wmposPlaylistChanged = 7,
wmposMediaChanging = 8,
wmposMediaLocating = 9,
wmposMediaConnecting = 10,
wmposMediaLoading = 11,
wmposMediaOpening = 12,
wmposMediaOpen = 13,
wmposBeginCodecAcquisition = 14,
wmposEndCodecAcquisition = 15,
wmposBeginLicenseAcquisition = 16,
wmposEndLicenseAcquisition = 17,
wmposBeginIndividualization = 18,
wmposEndIndividualization = 19,
wmposMediaWaiting = 20,
wmposOpeningUnknownURL = 21
} WMPOpenState;

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay/mmp_sdk/asx_elementsintro.asp
  • 打赏
  • 举报
回复
相关推荐
发帖
VC/MFC
加入

1.6w+

社区成员

VC/MFC相关问题讨论
申请成为版主
帖子事件
创建了帖子
2004-05-02 07:24
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……