internal static void Initialize(IMediaSource mediaSource)
        {
            if (_instance != null)
            {
                throw new InvalidOperationException("已被初始化。");
            }

            _instance = new AutoPaddingMediaSource(mediaSource);
        }
Esempio n. 2
0
 /// <summary>
 /// 初始化用于自动垫片的节目源。
 /// </summary>
 /// <param name="mediaSource">指定用于自动垫片的节目源。</param>
 /// <remarks>不能重复初始化。</remarks>
 public void InitAutoPaddingSource(IMediaSource mediaSource)
 {
     AutoPaddingMediaSource.Initialize(mediaSource);
 }