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.