public override void decode(MP4InputStream inStream)
 {
     // 3gpp or iTunes
     if (parent.getType() == BoxType.USER_DATA_BOX)
     {
         base.decode(inStream);
         languageCode = BoxUtils.getLanguageCode(inStream.readBytes(2));
         var b = inStream.readTerminated((int)getLeft(inStream), 0);
         genre = Encoding.UTF8.GetString(b);
     }
     else
     {
         readChildren(inStream);
     }
 }
示例#2
0
        public override void decode(MP4InputStream inStream)
        {
            // 3gpp or iTunes
            if (parent.getType() == BoxType.USER_DATA_BOX)
            {
                base.decode(inStream);

                // TODO: what to do with both?
                long entity   = inStream.readBytes(4);
                long criteria = inStream.readBytes(4);
                languageCode = BoxUtils.getLanguageCode(inStream.readBytes(2));
                var b = inStream.readTerminated((int)getLeft(inStream), 0);
                rating = Encoding.UTF8.GetString(b);
            }
            else
            {
                readChildren(inStream);
            }
        }
示例#3
0
 /// <summary>
 /// Returns the last time this movie was modified.
 /// </summary>
 /// <returns>the modification time</returns>
 public DateTime getModificationTime()
 {
     return(BoxUtils.getDate(mvhd.getModificationTime()));
 }
示例#4
0
 /// <summary>
 /// Returns the time this movie was created.
 /// </summary>
 /// <returns>the creation time</returns>
 public DateTime getCreationTime()
 {
     return(BoxUtils.getDate(mvhd.getCreationTime()));
 }