Exemplo n.º 1
0
        private VideoParameters VideoParameters(JToken token)
        {
            var video = new VideoParameters
            {
                Name = token["n"].Value <string>(),
                Size = token["s"].Value <long>(),
                LowResolutionSize = token["ls"].Value <long>()
            };

            return(video);
        }
Exemplo n.º 2
0
        private VideoParameters VideoParameters(JToken token)
        {
            var video = new VideoParameters
            {
                Name = token["n"].Value<string>(),
                Size = token["s"].Value<long>(),
                LowResolutionSize = token["ls"].Value<long>()
            };

            return video;
        }
Exemplo n.º 3
0
        private Video Video(Node node, IEnumerable <Node> loweResVideo)
        {
            var lowRes = loweResVideo != null?loweResVideo.Where(n => n.NameWithoutExtension() == node.NameWithoutExtension()).FirstOrDefault() : null;

            var video = new VideoParameters
            {
                Name = node.Name,
                Size = node.SizeAsBytes(),
                LowResolutionSize = lowRes == null?-1: lowRes.SizeAsBytes()
            };

            return(Media <VideoParameters> .Create <Video>(video, this));
        }
Exemplo n.º 4
0
        private Video Video(Node node, IEnumerable<Node> loweResVideo)
        {
            var lowRes = loweResVideo != null ? loweResVideo.Where(n => n.NameWithoutExtension() == node.NameWithoutExtension()).FirstOrDefault() : null;

            var video = new VideoParameters
            {
                Name = node.Name,
                Size = node.SizeAsBytes(),
                LowResolutionSize=lowRes==null?-1: lowRes.SizeAsBytes()
            };

            return Media<VideoParameters>.Create<Video>(video, this);
        }