public ScriptPlaylistItem(PlaylistItem item)
        {
            foreach (var marker in item.TimelineMarkers)
            {
                _markers.Add(new ScriptMediaMarker(marker));
            }
            FileSize = item.FileSize;
            FrameRate = item.FrameRate;
            JumpToLive = item.JumpToLive;
            if (MediaSource != null)
            {
                MediaSource = item.MediaSource.ToString();
            }
            if (ThumbSource != null)
            {
                ThumbSource = item.ThumbSource.ToString();
            }
            Description = item.Description;
            Title = item.Title;
            VideoStretchMode = item.VideoStretchMode.ToString();
            VideoWidth = item.VideoWidth;
            VideoHeight = item.VideoHeight;
            if (item.S3DProperties == null)
            {
                ScriptS3DProperties = new ScriptS3DProperties();
            }
            else
            {
                ScriptS3DProperties = new ScriptS3DProperties(item.S3DProperties);
            }
			CustomMetadata = item.CustomMetadata;
        }
Beispiel #2
0
 public ScriptPlaylistItem(PlaylistItem item)
 {
     foreach (var marker in item.TimelineMarkers)
     {
         _markers.Add(new ScriptMediaMarker(marker));
     }
     FileSize   = item.FileSize;
     FrameRate  = item.FrameRate;
     JumpToLive = item.JumpToLive;
     if (MediaSource != null)
     {
         MediaSource = item.MediaSource.ToString();
     }
     if (ThumbSource != null)
     {
         ThumbSource = item.ThumbSource.ToString();
     }
     Description      = item.Description;
     Title            = item.Title;
     VideoStretchMode = item.VideoStretchMode.ToString();
     VideoWidth       = item.VideoWidth;
     VideoHeight      = item.VideoHeight;
     if (item.S3DProperties == null)
     {
         ScriptS3DProperties = new ScriptS3DProperties();
     }
     else
     {
         ScriptS3DProperties = new ScriptS3DProperties(item.S3DProperties);
     }
     CustomMetadata = item.CustomMetadata;
 }
        public ScriptPlaylistItem()
        {
            FileSize = 0;
            FrameRate = 30;
            JumpToLive = false;
            MediaSource = null;
            ThumbSource = null;
            Description = string.Empty;
            Title = String.Empty;
            VideoStretchMode = "Uniform";
            VideoWidth = double.NaN;
            VideoHeight = double.NaN;
			ScriptS3DProperties = new ScriptS3DProperties();
			CustomMetadata = new MetadataCollection();
        }
Beispiel #4
0
 public ScriptPlaylistItem()
 {
     FileSize            = 0;
     FrameRate           = 30;
     JumpToLive          = false;
     MediaSource         = null;
     ThumbSource         = null;
     Description         = string.Empty;
     Title               = String.Empty;
     VideoStretchMode    = "Uniform";
     VideoWidth          = double.NaN;
     VideoHeight         = double.NaN;
     ScriptS3DProperties = new ScriptS3DProperties();
     CustomMetadata      = new MetadataCollection();
 }