[vlc-devel] Re: vlc: svn commit r8930 (hartman)
Damien Fouilleul
damien.fouilleul at laposte.net
Wed Oct 6 16:39:14 CEST 2004
All
I use the following registry keys to tell Windows that VLC can play some
file extensions such as a DVD disc, a .avi, etc...
if you are interested in using them, then save the following text (I
recommend using notepad) as vlc.reg, and load it up with REGEDIT, but
first make sure you fix the path to the application and modify the
appropriate user friendly text to your preferred locale.
Obviously, one can add any exension he/she wishes, such as the
aformentioned '.vlc'
I suppose the installer could load up this file if it is able to edit it
first with the right path and locale.
Enjoy,
Damien
----------------------------------------- snip
--------------------------------------
REGEDIT4
[HKEY_CLASSES_ROOT\.m3u]
"PerceivedType"="audio"
"Content Type"="audio/x-mpegurl"
@="m3ufile"
[HKEY_CLASSES_ROOT\.pls]
"PerceivedType"="audio"
"Content Type"="audio/x-shoutcast-playlist"
@="plsfile"
[HKEY_CLASSES_ROOT\DVD\shell\Play_with_VideoLAN_VLC]
@="Play with VideoLAN VLC"
[HKEY_CLASSES_ROOT\DVD\shell\Play_with_VideoLAN_VLC\command]
@="\"C:\\Program Files\\vlc-0.8.0-test1\\vlc.exe\" dvd://%D"
[HKEY_CLASSES_ROOT\AVIFile\shell\Play_with_VideoLAN_VLC]
@="Play with VideoLAN VLC"
[HKEY_CLASSES_ROOT\AVIFile\shell\Play_with_VideoLAN_VLC\command]
@="\"C:\\Program Files\\vlc-0.8.0-test1\\vlc.exe\" "%L"
[HKEY_CLASSES_ROOT\m3ufile\shell\Play_with_VideoLAN_VLC]
@="Play with VideoLAN VLC"
[HKEY_CLASSES_ROOT\m3ufile\shell\Play_with_VideoLAN_VLC\command]
@="\"C:\\Program Files\\vlc-0.8.0-test1\\vlc.exe\" \"%L\""
[HKEY_CLASSES_ROOT\mp3file\shell\Play_with_VideoLAN_VLC]
@="Play with VideoLAN VLC"
[HKEY_CLASSES_ROOT\mp3file\shell\Play_with_VideoLAN_VLC\command]
@="\"C:\\Program Files\\vlc-0.8.0-test1\\vlc.exe\" \"%L\""
[HKEY_CLASSES_ROOT\mpegfile\shell\Play_with_VideoLAN_VLC]
@="Play with VideoLAN VLC"
[HKEY_CLASSES_ROOT\mpegfile\shell\Play_with_VideoLAN_VLC\command]
@="\"C:\\Program Files\\vlc-0.8.0-test1\\vlc.exe\" \"%L\""
[HKEY_CLASSES_ROOT\plsfile\shell\Play_with_VideoLAN_VLC]
@="Play with VideoLAN VLC"
[HKEY_CLASSES_ROOT\plsfile\shell\Play_with_VideoLAN_VLC\command]
@="\"C:\\Program Files\\vlc-0.8.0-test1\\vlc.exe\" \"%L\""
----------------------------------------- snip
--------------------------------------
Damien
Derk-Jan Hartman wrote:
> Some context to this:
>
> I propose to use application/x-videolan-vlc as official mimetype for
> the vlc application. The x- is needed because the mime isn't
> officially recognized as our MIME by the W3C (or whatever organisation
> handles registration of those). We recognise the format without x- to
> tackle backwardscompatibility IF the MIME is every officially recognized.
> The MIMEtype can be useful for forcing browser to open files with VLC.
>
> we already use x-vlc-plugin for the Mozilla plugin btw.
> If people think this is inconsistent, then I would like to say that
> it's good to use an organisation name in combination with the
> application name to ensure uniqueness. I'd personally rather see the
> plugin mime changed than the application mime.
> Notice that this way you can force something on a webpage to use the
> VLC mozilla plugin, or to open in the VLC player.
>
> The .vlc extension has the same effect, though I advise (if possible)
> not to use that to force the VLC application, since it might confuse
> users and other applications. .vlc is not a proprietary fileformat for
> VLC, it is simply a file extension that it will recognize as being for
> VLC.
> Every file that VLC recognizes can use the .vlc extension since VLC
> mostly does autodetection on files (fails rarely). However turning a
> .mpg file into .vlc might cause WMP and other applications to not
> understand that they CAN open this file as well.
>
> This was done primarily for Trax so he can force the usage of VLC on
> his specially crafted m3u files for UDP streams. (Automatically sets
> deinterlacing)
>
> DJ
>
> P.S. Does anyone know how to register an application MIMEtype in the
> windows registry?
> Please add that to the NSIS file in that case. For both plugin and
> application.
>
>
> On 06 okt 2004, at 13:21, Subversion daemon wrote:
>
>> r8930 | hartman | 2004-10-06 13:21:38 +0200 (Wed, 06 Oct 2004) | 4 lines
>> Changed paths:
>> M /trunk/NEWS
>> M /trunk/extras/MacOSX/vlc.pbproj/project.pbxproj
>> M /trunk/vlc.win32.nsi
>>
>> * added the .vlc fileextension to the win installer and the Mac app.
>> * Added the application/x-videolan-vlc and appllication/videolan-vlc
>> mimetype to the OSX app
>> * NEWS: spelling error and remove the 'this version is not yet
>> released' line. Before I forget :)
>>
>> --
>> This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
>> To unsubscribe, please read http://developers.videolan.org/lists.html
>>
>>
> ---
> Universiteit Twente
> Derk-Jan Hartman (d.hartman at student.utwente dot nl)
> http://home.student.utwente.nl/d.hartman
>
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
More information about the vlc-devel
mailing list