Ejemplo n.º 1
0
        public FileInfo(File filedetails, IAppContext appContext) : this(filedetails)
        {
            Size        = filedetails.size;
            Modified    = filedetails.lastmodified;
            MimeType    = filedetails.mimetype;
            SecondLabel = filedetails.tagline;

            var file = filedetails.AsMediaDetailsBase;
            if (file != null)
            {
                Images = new VideoImages(appContext, file);
            }
            var media = filedetails.AsMediaDetailsBase;
            if (media != null)
            {
                Images = new VideoImages(appContext, media);
            }

            Play = new PlayFileCommand(appContext, Path);
        }
Ejemplo n.º 2
0
 private void OnPlayFile(PlayFileCommand message)
 {
     Play(message.File);
 }