Inheritance: IDisposable
示例#1
0
 public VideoPlayerBase(string file, bool asize = true)
 {
     FileName  = file;
     _autosize = asize;
     Decoder   = new VideoDecoder(BufferSize);
     Decoder.Open(FileName);
     if (_autosize)
     {
         Width  = Decoder.width;
         Height = Decoder.height;
     }
 }
示例#2
0
 public VideoPlayerBase(string file,bool asize=true)
 {
     FileName = file;
     _autosize = asize;
     Decoder = new VideoDecoder(BufferSize);
     Decoder.Open(FileName);
     if (_autosize)
     {
         Width = Decoder.width;
         Height = Decoder.height;
     }
 }