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