1 /*****************************************************************************
2 * vlcplugin.h: a VLC plugin for Mozilla
3 *****************************************************************************
4 * Copyright (C) 2002-2005 the VideoLAN team
7 * Authors: Samuel Hocevar <sam@zoy.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 /*******************************************************************************
25 * Instance state information about the plugin.
26 ******************************************************************************/
34 void SetInstance( NPP );
38 void SetFileName( const char* );
43 uint32 i_width, i_height;
46 /* Windows data members */
52 /* UNIX data members */
58 /* MACOS data members */
63 /* vlc data members */
74 /*******************************************************************************
76 ******************************************************************************/
77 #define PLUGIN_NAME "VLC multimedia plugin"
78 #define PLUGIN_DESCRIPTION \
79 "VLC multimedia plugin <br>" \
82 "VideoLAN WWW: <a href=\"http://www.videolan.org/\">http://www.videolan.org/</a>"
84 #define PLUGIN_MIMETYPES \
85 /* MPEG-1 and MPEG-2 */ \
86 "audio/mpeg:mp2,mp3,mpga,mpega:MPEG audio;" \
87 "audio/x-mpeg:mp2,mp3,mpga,mpega:MPEG audio;" \
88 "video/mpeg:mpg,mpeg,mpe:MPEG video;" \
89 "video/x-mpeg:mpg,mpeg,mpe:MPEG video;" \
90 "video/mpeg-system:mpg,mpeg,mpe,vob:MPEG video;" \
91 "video/x-mpeg-system:mpg,mpeg,mpe,vob:MPEG video;" \
93 "video/mpeg4:mp4,mpg4:MPEG-4 video;" \
94 "audio/mpeg4:mp4,mpg4:MPEG-4 audio;" \
95 "application/mpeg4-iod:mp4,mpg4:MPEG-4 video;" \
96 "application/mpeg4-muxcodetable:mp4,mpg4:MPEG-4 video;" \
98 "video/x-msvideo:avi:AVI video;" \
100 "video/quicktime:mov,qt:QuickTime video;" \
102 "application/x-ogg:ogg:Ogg stream;" \
103 /* explicit plugin call */ \
104 "application/x-vlc-plugin::VLC plugin;" \
105 /* windows media */ \
106 "video/x-ms-asf-plugin:asf,asx:Windows Media Video;" \
107 "video/x-ms-asf:asf,asx:Windows Media Video;" \
108 "application/x-mplayer2::Windows Media;" \
109 "video/x-ms-wmv:wmv:Windows Media;" \
110 /* Google VLC mime */ \
111 "application/x-google-vlc-plugin::Google VLC plugin" \