Ejemplo n.º 1
0
        public override void SerializeToContext(AvsContext context)
        {
            id = context.Id;
            Items.ForEach(item => item.SerializeToContext(context));
            var allItems = string.Join(" + ", Items.Select(item => item.Id));

            context.AddData(string.Format(Format, Id, allItems));
        }
Ejemplo n.º 2
0
        public override void SerializeToContext(AvsContext context)
        {
            id = context.Id;
            Payload.SerializeToContext(context);
            var video  = Payload.Id;
            var script = string.Format(Format, Id, video);

            context.AddData(script);
        }
Ejemplo n.º 3
0
        public override void SerializeToContext(AvsContext context)
        {
            id = context.Id;
            var reference = new AvsChunk()
            {
                ChunkFile = VideoReference
            };

            reference.SerializeToContext(context);
            context.AddData(string.Format(Format, Id, reference.Id, ImageFile, Duration));

            /*
             * var script = String.Format(@"
             *          video = DirectShowSource(""{0}"")
             *          Intro(video, ""{1}"", {2})
             *          ", pathToReference, pathToImage, EffectDuration);
             */
        }
Ejemplo n.º 4
0
 public abstract void SerializeToContext(AvsContext context);
Ejemplo n.º 5
0
 public override void SerializeToContext(AvsContext context)
 {
     id = context.Id;
     context.AddData(String.Format(Format, Id, ChunkFile));
 }