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);
     }
 }
Esempio n. 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);
            }
        }
Esempio n. 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()));
 }
Esempio n. 4
0
 /// <summary>
 /// Returns the time this movie was created.
 /// </summary>
 /// <returns>the creation time</returns>
 public DateTime getCreationTime()
 {
     return(BoxUtils.getDate(mvhd.getCreationTime()));
 }