首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

Windows Media Player控件中如何设置视频缓冲

2012-01-13 
Windows Media Player控件中怎么设置视频缓冲?在VC中使用Windows Media Player控件播放网络视频的时候,能

Windows Media Player控件中怎么设置视频缓冲?
在VC中使用Windows Media Player控件播放网络视频的时候,能不能设置缓冲时间,防止出现播放时卡的现象
只知道有个 m_wmplayer.GetNetwork().SetBufferingTime(10);这个是干什么的


[解决办法]
下载 Windows Media Player SDK 看看。
[解决办法]
IWMPNetwork::put_bufferingTime
The put_bufferingTime method specifies the amount of time in milliseconds allocated for buffering incoming data before playing begins.

Syntax

HRESULT put_bufferingTime(
long lBufferingTime
);

Parameters

lBufferingTime

[in] long containing the buffering time, which ranges from zero to 60,000 with a default value of 5,000.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description 
S_OK The method succeeded. 

热点排行