[vlc-devel] Re: Mozilla Plugin

Michael Pron michael.pron at noos.fr
Thu Apr 8 13:29:46 CEST 2004


I'm actually trying to clean the code as much as I can.
But I've got a problem with the access functions to objects (vlc_object_get , vlc_object_find ...).
Explanation : First I'd coded in libvlc.c (that was easy to deal with).
But i don't think people would like to see code related to mozilla plugin in this file.
So I'm trying to move theses functions to mozilla/vlcpeer.cpp. There's no big deal with the compilation , but when you try to view a movie in mozilla, mozilla crashes.
I get this message : "undefined symbol: _Z16__vlc_object_getP12vlc_object_ti", which is in fact not surprising, knowing that i didn't change any linking rules. 
Any idea??? (changes in Makefile.in ??? )

Michaël

Le 29/03 13:33, Sigmund Augdal a écrit :
> I think it sounds good. Provided the code is clean, this is definitly
> something we could need. Do you know how these functions compare to similar
> functions in other plugins?
> 
> Sigmund
> 
> On Fri, Mar 26, 2004 at 04:49:00PM +0100, Michael Pron wrote:
> > I've wrote some functions for the mozilla plugin.
> > Those modifications enabled the call of some VLC functions via javascript.
> > Among them, some functions can get informations of the current playlist (number of the file in the playlist, status, ...). Some others, get informations on the files played (position, length, .. ). Until now some functions work only with avi files (to get the position especially).
> > 
> > Theses modifications are in some points quite piggy.
> > So is there any interest for videolan to add these functions in the code of the plugin ?? 
> > If yes I'll try to "unpiggy" it and improve it (as much as i can). 
> > 
> > Michaël Pron
> > 
> > PS : 
> > a list of the added functions in vlcintf.idl :
> > 
> > get_position(); 
> > get_length(); 
> > get_rate(); 
> > goto_from_current_position(in PRInt64 sec); # move to the number of second sec specified
> > goto_from_begin(in PRInt64 sec); # go to the position sec in seconds
> > faster_video(); 
> > slower_video(); 
> > add_item_to_playlist(in string item_name); 
> > next_in_playlist(); 
> > prev_in_playlist(); 
> > Access_item_in_playlist(in PRInt64 item_number); # access a file given his number
> > Get_Number_of_item_in_playlist(); # get the numbers of item in the current playlist
> > Get_index_of_actual_item_in_playlist(); # get the number of the current item in the current playlist
> > Playlist_status(); # get the status to the playlist (Play, Pause, Stop)
> > Mute(); 
> > Is_Mute(); 
> > Stop_video(); # stop the video without destroying the playlist
> > 
> > -- 
> > 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>
> 
> -- 
> 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>
> 

-- 
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