Commit ecddb18d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Move mimetype declaration to the .cpp

parent 3272e0dc
......@@ -38,6 +38,74 @@
#include "vlcplugin.h"
#include "vlcshell.h"
static char mimetype[] =
/* MPEG-1 and MPEG-2 */
"audio/mpeg:mp2,mp3,mpga,mpega:MPEG audio;"
"audio/x-mpeg:mp2,mp3,mpga,mpega:MPEG audio;"
"video/mpeg:mpg,mpeg,mpe:MPEG video;"
"video/x-mpeg:mpg,mpeg,mpe:MPEG video;"
"video/mpeg-system:mpg,mpeg,mpe,vob:MPEG video;"
"video/x-mpeg-system:mpg,mpeg,mpe,vob:MPEG video;"
/* MPEG-4 */
"audio/mp4:aac,mp4,mpg4:MPEG-4 audio;"
"audio/x-m4a:m4a:MPEG-4 audio;"
/* MPEG-4 ASP */
"video/mp4:mp4,mpg4:MPEG-4 video;"
"application/mpeg4-iod:mp4,mpg4:MPEG-4 video;"
"application/mpeg4-muxcodetable:mp4,mpg4:MPEG-4 video;"
"video/x-m4v:m4v:MPEG-4 video;"
/* AVI */
"video/x-msvideo:avi:AVI video;"
/* QuickTime */
/* "video/quicktime:mov,qt:QuickTime video;" */
/* OGG */
"application/ogg:ogg:Ogg stream;"
"video/ogg:ogv:Ogg video;"
"application/x-ogg:ogg:Ogg stream;"
/* VLC */
"application/x-vlc-plugin::VLC plug-in;"
/* Windows Media */
"video/x-ms-asf-plugin:asf,asx:Windows Media Video;"
"video/x-ms-asf:asf,asx:Windows Media Video;"
"application/x-mplayer2::Windows Media;"
"video/x-ms-wmv:wmv:Windows Media;"
"video/x-ms-wvx:wvx:Windows Media Video;"
"audio/x-ms-wma:wma:Windows Media Audio;"
/* Google VLC */
"application/x-google-vlc-plugin::Google VLC plug-in;"
/* WAV audio */
"audio/wav:wav:WAV audio;"
"audio/x-wav:wav:WAV audio;"
/* 3GPP */
"audio/3gpp:3gp,3gpp:3GPP audio;"
"video/3gpp:3gp,3gpp:3GPP video;"
/* 3GPP2 */
"audio/3gpp2:3g2,3gpp2:3GPP2 audio;"
"video/3gpp2:3g2,3gpp2:3GPP2 video;"
/* DIVX */
"video/divx:divx:DivX video;"
/* FLV */
"video/flv:flv:FLV video;"
"video/x-flv:flv:FLV video;"
/* Matroska */
"application/x-matroska:mkv:Matroska video;"
"video/x-matroska:mkv:Matroska video;"
"audio/x-matroska:mka:Matroska audio;"
/* XSPF */
"application/xspf+xml:xspf:Playlist xspf;"
/* M3U */
"audio/x-mpegurl:m3u:MPEG audio;"
/* Webm */
"video/webm:webm:WebM video;"
"audio/webm:webm:WebM audio;"
/* Real Media */
"application/vnd.rn-realmedia:rm:Real Media File;"
"audio/x-realaudio:ra:Real Media Audio;"
/* AMR */
"audio/amr:amr:AMR audio;"
/* FLAC */
"audio/x-flac:flac:FLAC audio;"
;
/******************************************************************************
* UNIX-only API calls
......
......@@ -63,75 +63,6 @@ void NPP_Print( NPP instance, NPPrint* printInfo );
NPint16_t NPP_HandleEvent( NPP instance, void * event );
#endif
static char mimetype[] =
/* MPEG-1 and MPEG-2 */
"audio/mpeg:mp2,mp3,mpga,mpega:MPEG audio;"
"audio/x-mpeg:mp2,mp3,mpga,mpega:MPEG audio;"
"video/mpeg:mpg,mpeg,mpe:MPEG video;"
"video/x-mpeg:mpg,mpeg,mpe:MPEG video;"
"video/mpeg-system:mpg,mpeg,mpe,vob:MPEG video;"
"video/x-mpeg-system:mpg,mpeg,mpe,vob:MPEG video;"
/* MPEG-4 */
"audio/mp4:aac,mp4,mpg4:MPEG-4 audio;"
"audio/x-m4a:m4a:MPEG-4 audio;"
/* MPEG-4 ASP */
"video/mp4:mp4,mpg4:MPEG-4 video;"
"application/mpeg4-iod:mp4,mpg4:MPEG-4 video;"
"application/mpeg4-muxcodetable:mp4,mpg4:MPEG-4 video;"
"video/x-m4v:m4v:MPEG-4 video;"
/* AVI */
"video/x-msvideo:avi:AVI video;"
/* QuickTime */
/* "video/quicktime:mov,qt:QuickTime video;" */
/* OGG */
"application/ogg:ogg:Ogg stream;"
"video/ogg:ogv:Ogg video;"
"application/x-ogg:ogg:Ogg stream;"
/* VLC */
"application/x-vlc-plugin::VLC plug-in;"
/* Windows Media */
"video/x-ms-asf-plugin:asf,asx:Windows Media Video;"
"video/x-ms-asf:asf,asx:Windows Media Video;"
"application/x-mplayer2::Windows Media;"
"video/x-ms-wmv:wmv:Windows Media;"
"video/x-ms-wvx:wvx:Windows Media Video;"
"audio/x-ms-wma:wma:Windows Media Audio;"
/* Google VLC */
"application/x-google-vlc-plugin::Google VLC plug-in;"
/* WAV audio */
"audio/wav:wav:WAV audio;"
"audio/x-wav:wav:WAV audio;"
/* 3GPP */
"audio/3gpp:3gp,3gpp:3GPP audio;"
"video/3gpp:3gp,3gpp:3GPP video;"
/* 3GPP2 */
"audio/3gpp2:3g2,3gpp2:3GPP2 audio;"
"video/3gpp2:3g2,3gpp2:3GPP2 video;"
/* DIVX */
"video/divx:divx:DivX video;"
/* FLV */
"video/flv:flv:FLV video;"
"video/x-flv:flv:FLV video;"
/* Matroska */
"application/x-matroska:mkv:Matroska video;"
"video/x-matroska:mkv:Matroska video;"
"audio/x-matroska:mka:Matroska audio;"
/* XSPF */
"application/xspf+xml:xspf:Playlist xspf;"
/* M3U */
"audio/x-mpegurl:m3u:MPEG audio;"
/* Webm */
"video/webm:webm:WebM video;"
"audio/webm:webm:WebM audio;"
/* Real Media */
"application/vnd.rn-realmedia:rm:Real Media File;"
"audio/x-realaudio:ra:Real Media Audio;"
/* AMR */
"audio/amr:amr:AMR audio;"
/* FLAC */
"audio/x-flac:flac:FLAC audio;"
;
/*******************************************************************************
* Plugin properties.
******************************************************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment