Page 1 of 1
mozilla plugin: seek ff / bw
Posted: 08 Dec 2004 09:33
by hog
Hi!
First of all: thanks for vlc - real great work, guys!
I'd like to know, if it's possible to implement (maybe with a little financial aid from my side) seeking ( forward / backward ) into the mozilla plugin?
Or is it completely impossible due to restrictions in the HTTP-protocol?
TIA
hog
Posted: 08 Dec 2004 10:09
by Sigmund
mozilla plugin isn't limited to http protocol. And I think it allready support seeking (with hotkeys) where the protocol supports it.
Posted: 08 Dec 2004 10:39
by hog
Thank you for your quick reply!
Maybe I should have stated, that I defininitely want to use http, as it allows me to provide a large amount of files (on demand) to my students via APACHE without the need to stream them...
I just load them into the filesystem and dynamically generate html-pages with the file embedded...
Could you tell me, which hotkeys you were talking of?
I already took a quick look at the sources and only found the 4 commands mentioned in the Chapter 7 example:
Code: Select all
/*****************************************************************************
* Scriptable peer plugin methods
*****************************************************************************/
NS_IMETHODIMP VlcPeer::Play()
{
if( p_plugin )
{
if( !p_plugin->b_stream && p_plugin->psz_target )
{
VLC_AddTarget( p_plugin->i_vlc, p_plugin->psz_target, 0, 0,
PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END );
p_plugin->b_stream = 1;
}
VLC_Play( p_plugin->i_vlc );
}
return NS_OK;
}
NS_IMETHODIMP VlcPeer::Pause()
{
if( p_plugin )
{
VLC_Pause( p_plugin->i_vlc );
}
return NS_OK;
}
NS_IMETHODIMP VlcPeer::Stop()
{
if( p_plugin )
{
VLC_Stop( p_plugin->i_vlc );
p_plugin->b_stream = 0;
}
return NS_OK;
}
NS_IMETHODIMP VlcPeer::Fullscreen()
{
if( p_plugin )
{
#ifdef XP_MACOSX
#else
VLC_FullScreen( p_plugin->i_vlc );
#endif
}
return NS_OK;
}
Posted: 08 Dec 2004 11:17
by Sigmund
hotkeys like pressing (shift/crtl/alt)left/right when video has focus.
It works over http for some file types, specifically it does not work for avi/mp4.
Posted: 08 Dec 2004 12:04
by hog
Thanks again...
Sigmund, you are so right!
ALT-LEFT/RIGHT works - but not with all files...
MPEG1/2 seems to work
MPEG4/divx doesnt
...just as you predicted!
Quicktime seems to work, but Firefox creates a cpu load of 100% and doesnt resume the video... But maybe the few mov-files i have are crap...
Posted: 08 Dec 2004 12:07
by Sigmund
mpeg4/divx should work as well if they are contained in ogm or matroska(.mkv). Haven't tried myself yet though