Example #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));
        }
Example #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);
        }
Example #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);
             */
        }
Example #4
0
 public abstract void SerializeToContext(AvsContext context);
Example #5
0
 public override void SerializeToContext(AvsContext context)
 {
     id = context.Id;
     context.AddData(String.Format(Format, Id, ChunkFile));
 }