Class BufferPlayEngine
- Namespace
- HeBianGu.General.WpfControlLib
- Assembly
- HeBianGu.General.WpfControlLib.dll
缓冲播放引擎
public class BufferPlayEngine- Inheritance
- 
      
      BufferPlayEngine
- Inherited Members
- Extension Methods
Constructors
BufferPlayEngine(List<IBufferPlayEntity>)
public BufferPlayEngine(List<IBufferPlayEntity> entitys)Parameters
- entitysList<IBufferPlayEntity>
Properties
Capacity
可播放容器量
public int Capacity { get; set; }Property Value
CapacityTotal
总缓冲容器量
public int CapacityTotal { get; set; }Property Value
TaskCount
同时下载的任务数量
public int TaskCount { get; set; }Property Value
Methods
Clear()
清理缓存数据
public void Clear()GetBufferSize(int)
获取当前缓存完的位置
public int GetBufferSize(int index)Parameters
- indexint
Returns
GetBufferSize(Predicate<IBufferPlayEntity>)
获取当前缓存完的位置
public int GetBufferSize(Predicate<IBufferPlayEntity> match)Parameters
- matchPredicate<IBufferPlayEntity>
Returns
GetWaitCurrent(int, Action<bool, int, int>)
获取下好的文件 返回null则需要等待
public IBufferPlayEntity GetWaitCurrent(int index, Action<bool, int, int> action)Parameters
Returns
GetWaitCurrent(Predicate<IBufferPlayEntity>, Action<bool, int, int>)
获取下好的文件 返回null则需要等待
public IBufferPlayEntity GetWaitCurrent(Predicate<IBufferPlayEntity> match, Action<bool, int, int> action)Parameters
Returns
RefreshCapacity(int)
刷新缓冲数量
public void RefreshCapacity(int count)Parameters
- countint
RefreshPlayMode(bool)
反向播放
public void RefreshPlayMode(bool forward)Parameters
- forwardbool
Start()
开始播放
public void Start()Stop()
停止引擎
public void Stop()