Ejemplo n.º 1
0
 public static VideoItem ToVideoItem(this VideoFileTable table)
 {
     return(new VideoItem()
     {
         Duration = table.Duration,
         FileName = table.FileName,
         FilePath = table.FilePath,
         FolderPath = table.Directory,
         IsNew = table.IsNew,
         MediaStoreId = table.MediaStoreId,
         Title = table.Title,
         VideoId = table.VideoId,
         Position = table.Position,
         SelectedSubtitlesId = table.SelectedSubtitles,
         EmbeddedSubtitlesDelay = table.EmbeddedSubtitlesDelay,
     });
 }
 public static VideoItem ToVideoItem(this VideoFileTable table)
 {
     return(new VideoItem()
     {
         Duration = table.Duration,
         FileName = table.FileName,
         FilePath = table.FilePath,
         FolderPath = table.Directory,
         IsNew = table.IsNew,
         MediaStoreId = table.MediaStoreId,
         Title = table.Title,
         VideoId = table.VideoId,
         Preferences = new VideoItemPreferences()
         {
             Position = table.Position
         }
     });
 }