Example #1
0
        public TimedMetadataStreamDescriptor CreateStreamDescriptorForGpmdEncodingSubtype()
        {
            //<SnippetGetStreamDescriptor>
            TimedMetadataEncodingProperties encodingProperties = new TimedMetadataEncodingProperties
            {
                Subtype = "{67706D64-BF10-48B4-BC18-593DC1DB950F}"
            };

            byte[] streamDescriptionData = GetStreamDescriptionDataForGpmdEncodingSubtype();
            encodingProperties.SetFormatUserData(streamDescriptionData);

            TimedMetadataStreamDescriptor descriptor = new TimedMetadataStreamDescriptor(encodingProperties)
            {
                Name  = "GPS Info",
                Label = "GPS Info"
            };

            //</SnippetGetStreamDescriptor>
            return(descriptor);
        }
Example #2
0
        public TimedMetadataStreamDescriptor CreateStreamDescriptorForGpmdEncodingSubtype()
        {
            //<SnippetGetStreamDescriptor>
            TimedMetadataEncodingProperties encodingProperties = new TimedMetadataEncodingProperties
            {
                Subtype = "{67706D64-BF10-48B4-BC18-593DC1DB950F}"
            };

            // The FormatUserData is set to information that describes the format found in the 'gpmd' file.
            // If the 'gpmd' box is empty, there is no need to specify FormatUserData.
            byte[] streamDescriptionData = GetStreamDescriptionDataForGpmdEncodingSubtype();
            encodingProperties.SetFormatUserData(streamDescriptionData);

            TimedMetadataStreamDescriptor descriptor = new TimedMetadataStreamDescriptor(encodingProperties)
            {
                Name  = "GPS Info",
                Label = "GPS Info"
            };

            //</SnippetGetStreamDescriptor>
            return(descriptor);
        }