Show
Ignore:
Timestamp:
05/23/10 00:08:22 (2 years ago)
Author:
astrange
Message:

Import WebM files.

Doesn't decode VP8 yet so we can't claim actual support.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/MatroskaImport.r

    r1160 r1310  
    195195}; 
    196196 
     197// Component Alias 
     198resource 'thga' (518) { 
     199        'eat ',                                                         // Type 
     200        'WEBM',                                                         // Subtype - this must be in uppercase. It will match an ".eim" suffix case-insensitively. 
     201        'vide',                                                         // Manufaturer - for 'eat ' the media type supported by the component 
     202        kMatroskaImportFlags |                          // Component Flags 
     203        movieImportSubTypeIsFileExtension,      // The subtype is a file name suffix 
     204        0,                                                                      // Component Flags Mask 
     205        0,                                                                      // Code Type 
     206        0,                                                                      // Code ID 
     207        'STR ',                                                         // Name Type 
     208        kMkvImportResource,                                                             // Name ID 
     209        0,                                                                      // Info Type 
     210        0,                                                                      // Info ID  
     211        0,                                                                      // Icon Type  
     212        0,                                                                      // Icon ID 
     213    // TARGET COMPONENT --------------- 
     214        'eat ',                                                         // Type 
     215        'MkvF',                                                         // SubType 
     216        'vide',                                                         // Manufaturer 
     217        0,                                                                      // Component Flags 
     218        0,                                                                      // Component Flags Mask 
     219        'thnr', kMkvImportResource,                                             // Component public resource identifier 
     220        cmpAliasOnlyThisFile 
     221}; 
     222 
    197223// Import components should include a public component resource holding the same data that 
    198224// MovieImportGetMIMETypeList would return. This public resource's type and ID should be 'mime' and 1, 
     
    263289                { 
    264290                        "Matroska file",                                // Media type description for MIME configuration panel and browser 
    265                         "mkv,mka",                                                              // File extension(s), comma delimited if more than one 
     291                        "mkv,mka,webm",                                                         // File extension(s), comma delimited if more than one 
    266292                        "QuickTime Player",                                     // Opening application name for MIME configuration panel and browser 
    267293                        "Matroska Movie Importer",      // Missing software description for the missing software dialog 
     
    272298                { 
    273299                        "video/x-matroska", 
    274                         "audio/x-matroska",      
     300                        "audio/x-matroska", 
     301            "audio/webm", 
     302            "video/webm", 
    275303                }, 
    276304        } 
     
    292320                kMimeInfoMimeTypeTag,      1, "video/x-matroska"; 
    293321                kMimeInfoMimeTypeTag,      2, "audio/x-matroska"; 
     322        kMimeInfoMimeTypeTag,      3, "audio/webm"; 
     323        kMimeInfoMimeTypeTag,      4, "video/webm"; 
    294324                kMimeInfoFileExtensionTag, 1, "mkv"; 
    295325                kMimeInfoFileExtensionTag, 2, "mka"; 
     326        kMimeInfoFileExtensionTag, 3, "webm"; 
     327        kMimeInfoFileExtensionTag, 4, "webm"; 
    296328                kMimeInfoDescriptionTag,   1, "Matroska"; 
    297329                kMimeInfoDescriptionTag,   2, "Matroska"; 
     330        kMimeInfoDescriptionTag,   3, "Matroska/WebM"; 
     331        kMimeInfoDescriptionTag,   4, "Matroska/WebM"; 
    298332        }; 
    299333};