[vlc-devel] Mozilla Plugin - Making supported MIME types play
James MacLean
macleajb at ednet.ns.ca
Sat Apr 10 04:04:57 CEST 2004
Hi Folks,
As mentioned before, it appears that Mozilla both pases the target URL to
VLC via the plugin and tries to download the URL then pass it to the VLC
plugin via it's cache (which fails). With something simple like the
following :
--- CUT ---
--- vlcshellold.cpp 2004-04-09 22:43:32.357182400 -0300
+++ vlcshell.cpp 2004-04-09 22:47:03.410662400 -0300
@@ -624,6 +624,7 @@
#if USE_LIBVLC
VLC_AddTarget( p_plugin->i_vlc, p_plugin->psz_target,
0, 0, i_mode, PLAYLIST_END );
+ VLC_Play( p_plugin->i_vlc );
#endif
p_plugin->b_stream = VLC_TRUE;
}
@@ -718,6 +719,9 @@
return;
}
+ NPN_DestroyStream(instance, stream, NPRES_DONE);
+ return;
+
/* fprintf(stderr, "NPP_StreamAsFile %s\n", fname); */
#if USE_LIBVLC
--- CUT ---
Then the plugin works here with Linux and Windows by clicking on URLs of
supported types. Unfortunately it makes the default behaviour of the
plugin to play the stream, although I expect that is likely what people
would expect?
Is it not enough to have the target URL for VLC passed in NPP_SetWindow?
If so then what is the right way to track if we are handling the URL?
Possibly that is what p_plugin->b_stream is for?
JES
--
James B. MacLean macleajb at ednet.ns.ca
Department of Education
Nova Scotia, Canada
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc-devel
mailing list