Ejemplo n.º 1
0
 public override bool Build(DirectShowLib.IPin source, DirectShow.Binding.IBuild build)
 {
     build.Playing += () =>
     {
         //    if (this.recorder.NotNull())
         //        this.recorder.StartBackupToFile(this.filename, 0);
     };
     build.OnClose += () =>
     {
         //    if (this.recorder.NotNull())
         //        this.recorder.StopBackupToFile();
     };
     return(base.Build(source, build));
 }
Ejemplo n.º 2
0
        public override bool Build(DirectShowLib.IPin source, DirectShow.Binding.IBuild build)
        {
            bool result = false;

            foreach (Filters.Abstract candidate in this.Next)
            {
                candidate.Output = this.Output;
            }
            foreach (DirectShow.Binding.Filters.Abstract candidate in this.Next)
            {
                if (result = candidate.Build(source, build))
                {
                    break;
                }
            }
            return(result);
        }
Ejemplo n.º 3
0
        public override bool Build(DirectShowLib.IPin source, DirectShow.Binding.IBuild build)
        {
            bool result = false;

            DirectShowLib.IBaseFilter filter = this.Create();
            if (build.Graph.AddFilter(filter, "Elecard NWSource-Plus") == 0)
            {
                foreach (DirectShow.Binding.Filters.Abstract candidate in this.Next)
                {
                    if (result = candidate.Build(filter, build))
                    {
                        break;
                    }
                }
            }
            else
            {
                Error.Log.Append(Error.Level.Debug, "Unable to open Elecard NWSource-Plus Filter.", "Elecard NWSource-Plus Filter was unable to open url \"" + this.url + "\".");
                DirectShow.Binding.Exception.GraphError.Check(build.Graph.RemoveFilter(filter));
            }
            return(result);
        }
Ejemplo n.º 4
0
        public override bool Build(DirectShowLib.IPin source, DirectShow.Binding.IBuild build)
        {
            bool result = false;

            DirectShowLib.IBaseFilter filter = this.Create();
            if (build.Graph.AddFilter(filter, "VCS MPEG-4 File Source") == 0)
            {
                foreach (DirectShow.Binding.Filters.Abstract candidate in this.Next)
                {
                    if (result = candidate.Build(filter, build))
                    {
                        break;
                    }
                }
            }
            else
            {
                Error.Log.Append(Error.Level.Debug, "Unable to open Hauppauge Transport Reader.", "VCS MPEG-4 File Source was unable to open file \"" + this.file + "\".");
                DirectShow.Binding.Exception.GraphError.Check(build.Graph.RemoveFilter(filter));
            }
            return(result);
        }
Ejemplo n.º 5
0
 public override bool Build(DirectShowLib.IPin source, DirectShow.Binding.IBuild build)
 {
     return(base.Build(source, build));
 }