GNOME Bugzilla – Bug 474841
Quicktime: scroll bar doesn't move
Last modified: 2010-01-07 16:50:05 UTC
It should be able to though... http://www.apple.com/uk/ipodtouch/guidedtour/small.html
** Message: WARNING: Site uses unimplemented function 'totemINarrowSpacePlayer::GetRate' ** Message: WARNING: Site uses unimplemented function 'totemINarrowSpacePlayer::GetMaxBytesLoaded' ** Message: WARNING: Site uses unimplemented function 'totemINarrowSpacePlayer::GetMovieSize' ** Message: WARNING: Site uses unimplemented function 'totemINarrowSpacePlayer::GetTime' ** Message: WARNING: Site uses unimplemented function 'totemINarrowSpacePlayer::GetDuration'
All the code is hiding there: http://www.apple.com/euro/global/scripts/ac_quicktime.js
Created attachment 95239 [details] [review] totem-more-qt-javascript.patch Slight problem, the tick callback in the plugin is never getting called, so the play state keeps being wrong. The play/pause button on the site thus doesn't work.
Stupid mistake, wrong args for the signal in totemPlugin.cpp We're also missing an implementation of totemINarrowSpacePlayer::SetTime for the seeking on the seek bar.
But how do we implement seeking on an fd :)
2007-09-10 Bastien Nocera <hadess@hadess.net> * browser-plugin/totem-plugin-viewer-commands.h: Rename this... * browser-plugin/totem-plugin-viewer-constants.h: ...to that and add the states to those constants * browser-plugin/Makefile.am: * browser-plugin/org_gnome_totem_PluginViewer.xml: * browser-plugin/totempluginviewer-marshal.list: * browser-plugin/totemPlugin.cpp: * browser-plugin/totemPlugin.h: * browser-plugin/totem-plugin-viewer.c: (totem_embedded_class_init), (totem_embedded_set_state), (totem_embedded_set_logo_by_name), (totem_embedded_open_internal), (totem_embedded_play), (totem_embedded_pause), (totem_embedded_stop), (on_play_pause), (on_got_redirect), (on_video_button_press_event), (on_eos_event), (on_error_event), (on_tick), (totem_embedded_construct), (main): Add a Tick signal to the viewer, and catch it in the plugin. It gets the Time, Duration and state of the player Remember the length of a stream * browser-plugin/totemNarrowSpacePlugin.cpp: * browser-plugin/totemNarrowSpacePlugin.h: implement GetRate, GetMaxBytesLoaded, GetMovieSize, GetTime and GetDuration (Helps: #474841)
In totemScriptablePlugin::GetMaxBytesLoaded and the others where you access mPlugin you need to ensure it's not null: NS_ENSURE_STATE (IsValid());
(In reply to comment #7) > In totemScriptablePlugin::GetMaxBytesLoaded and the others where you access > mPlugin you need to ensure it's not null: NS_ENSURE_STATE (IsValid()); Good call, done now.
Shame that no websites seem to implement the necessary support for it to be seekable. I reverted this commit: 2008-02-21 Bastien Nocera <hadess@hadess.net> * browser-plugin/totemNarrowSpacePlugin.cpp: * browser-plugin/totemPlugin.cpp: * browser-plugin/totemPlugin.h: Implement SetTime using NPN_RequestRead() if it's available on the stream (which it usually never is...) (Closes: #474841) http://svn.gnome.org/viewvc/totem?view=revision&revision=5158 After some changes on top of it: - setting the stype to NP_SEEK; when not local - not checking for mSeekable in RequestRead I only got loads of GStreamer errors, as it doesn't seem to be able to resync with the data provided. I also think that there might be multiple requests going on at the same time, which isn't helping. Needs more work. Christian, any input?
Page is gone, closing.