Пример #1
0
        public bool RecordAsAVI(string path, swig.RecordingParameter recordingParameter)
        {
            var dir      = System.IO.Path.GetDirectoryName(path);
            var fileWExt = System.IO.Path.GetFileNameWithoutExtension(path);
            var ext      = System.IO.Path.GetExtension(path);

            recordingParameter.SetPath(dir + "/" + fileWExt);
            recordingParameter.SetExt(ext);
            recordingParameter.RecordingMode = swig.RecordingModeType.Avi;
            return(native.BeginRecord(recordingParameter));
        }
Пример #2
0
        public swig.EffectRecorder RecordAsH264(string path, swig.RecordingParameter recordingParameter)
        {
            var dir      = System.IO.Path.GetDirectoryName(path);
            var fileWExt = System.IO.Path.GetFileNameWithoutExtension(path);
            var ext      = System.IO.Path.GetExtension(path);

            recordingParameter.SetPath(dir + "/" + fileWExt);
            recordingParameter.SetExt(ext);
            recordingParameter.RecordingMode = swig.RecordingModeType.H264;
            return(native.CreateRecorder(recordingParameter));
        }