diff --git a/source/BrightcoveOS .NET-MAPI-Wrapper/Model/Items/BrightcoveVideo.cs b/source/BrightcoveOS .NET-MAPI-Wrapper/Model/Items/BrightcoveVideo.cs index 95894a1..a734624 100644 --- a/source/BrightcoveOS .NET-MAPI-Wrapper/Model/Items/BrightcoveVideo.cs +++ b/source/BrightcoveOS .NET-MAPI-Wrapper/Model/Items/BrightcoveVideo.cs @@ -207,11 +207,32 @@ public ICollection Renditions set; } - /// - /// A short description describing the Video, limited to 250 characters. The - /// shortDescription is a required property when you create a video. + /// + /// An collection of IOS Renditions that represents one of the multi-bitrate streaming renditions + /// available for this Video. + /// Note that this property is WRITABLE for remote assets only. It supports READ access. /// - public string ShortDescription + public ICollection IOSRenditions + { + get; + set; + } + + /// + /// The DigitalMaster object represents a special rendition that will not have urls. + /// This is the source file that was uploaded and is read-only. + /// + public BrightcoveRendition DigitalMaster + { + get; + set; + } + + /// + /// A short description describing the Video, limited to 250 characters. The + /// shortDescription is a required property when you create a video. + /// + public string ShortDescription { get; set; @@ -277,6 +298,7 @@ public BrightcoveVideo() Tags = new List(); CustomFields = new CustomFieldCollection(); Renditions = new List(); + IOSRenditions = new List(); CuePoints = new List(); ItemState = ItemState.Active; Economics = Economics.Free; @@ -331,8 +353,12 @@ public IDictionary Serialize(JavaScriptSerializer serializer) { serialized["videoFullLength"] = VideoFullLength; } + if (IOSRenditions.Count > 0) + { + serialized["IOSRenditions"] = IOSRenditions.Where(r => !String.IsNullOrEmpty(r.RemoteUrl)); + } - if (CuePoints.Count > 0) + if (CuePoints.Count > 0) { serialized["cuePoints"] = CuePoints; } @@ -444,11 +470,19 @@ public void Deserialize(IDictionary dictionary, JavaScriptSerial ReferenceId = (string)dictionary[key]; break; - case "renditions": - Renditions = serializer.ConvertToType>(dictionary[key]); - break; + case "renditions": + Renditions = serializer.ConvertToType>(dictionary[key]); + break; + + case "IOSRenditions": + IOSRenditions = serializer.ConvertToType>(dictionary[key]); + break; + + case "digitalMaster": + DigitalMaster = serializer.ConvertToType(dictionary[key]); + break; - case "shortDescription": + case "shortDescription": ShortDescription = (string)dictionary[key]; break; diff --git a/tests/BrightcoveOS .NET-MAPI-Wrapper.Tests/BrightcoveOS .NET-MAPI-Wrapper.Tests.csproj b/tests/BrightcoveOS .NET-MAPI-Wrapper.Tests/BrightcoveOS .NET-MAPI-Wrapper.Tests.csproj index ae631f8..6d4bf20 100644 --- a/tests/BrightcoveOS .NET-MAPI-Wrapper.Tests/BrightcoveOS .NET-MAPI-Wrapper.Tests.csproj +++ b/tests/BrightcoveOS .NET-MAPI-Wrapper.Tests/BrightcoveOS .NET-MAPI-Wrapper.Tests.csproj @@ -143,6 +143,9 @@ + + +