GNOME Bugzilla – Bug 361510
totemComplexPlugin should hide the controls.
Last modified: 2010-04-07 12:42:38 UTC
The totemComplexPlugin should hide the controls on the "image window" on the Realplayer plugin. Because you add the Video as one <object> and the Controls as one <object> in the HTML document. Don't know the standard code to identify the <object>'s but at: URL: http://www.totaleclips.com/player/player.aspx?custid=102&clipid=E24627&bitrateid=6&playerid=33&formatid=3 They use: Control <object>: <EMBED AUTOSTART="true" CONSOLE="one" CONTROLS="controlpanel" WIDTH="460" HEIGHT="33" BACKGROUNDCOLOR="#000000" PLUGINSPAGE="http://www.real.com/player/" TYPE="audio/x-pn-realaudio-plugin" NOJAVA="true" SRC="http://www.totaleclips.com/Player/Bounce.aspx?eclipid=e24627&bitrateid=6&vendorid=102&affiliateId="></EMBED> Video <object>: <PARAM NAME="controls" VALUE="ImageWindow">
Would you be able to find a stand-alone test page, or better, some web developer guide from Real on how exactly that's supposed to work?
Hi Bastien, I found a help page on real.com that explains how the embeding should work. URL: http://service.real.com/help/library/guides/realone/ProductionGuide/HTML/realpgd.htm?page=htmfiles/embed.htm%23overview Sorry in advance for the spam but i don't want to paste everything in one comment.
Video <object>: ---------------------- Combining <EMBED> with <OBJECT> If you combine <EMBED> and <OBJECT> tags, Internet Explorer browsers on Windows play the presentation defined through <OBJECT>, while Netscape Navigator browsers on all platforms, as well as Internet Explorer on the Macintosh, play the presentation defined through <EMBED>. To combine the tags, place an <EMBED> tag containing all necessary parameters between the <OBJECT> and </OBJECT> tags, as shown in the following example: <OBJECT ID=RVOCX CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=320 HEIGHT=240> <PARAM NAME="SRC" VALUE="plugin.rpm"> <PARAM NAME="CONTROLS" VALUE="ImageWindow"> <PARAM NAME="CONSOLE" VALUE="one"> <EMBED SRC="plugin.rpm" WIDTH=320 HEIGHT=240 NOJAVA=true CONTROLS=ImageWindow CONSOLE=one> </OBJECT>
Supported CONTROLS=: CONTROLS=All CONTROLS=ControlPanel CONTROLS=PlayButton CONTROLS=PlayOnlyButton CONTROLS=PauseButton CONTROLS=StopButton CONTROLS=FFCtrl CONTROLS=RWCtrl CONTROLS=MuteCtrl CONTROLS=MuteVolume CONTROLS=VolumeSlider CONTROLS=PositionSlider CONTROLS=TACCtrl CONTROLS=HomeCtrl CONTROLS=InfoVolumePanel CONTROLS=InfoPanel CONTROLS=StatusBar CONTROLS=StatusField CONTROLS=PositionField Controls <object>: ---------------------- Adding RealOne Player Controls With the CONTROLS parameter, you can add RealOne Player controls such as a play/pause button to your Web page. For example, the following tag displays the play/pause button in your Web page: <EMBED SRC="presentation.rpm" WIDTH=26 HEIGHT=26 NOJAVA=true CONTROLS=PlayButton> Linking Multiple Controls The CONSOLE parameter defines a name that unifies <EMBED> or <OBJECT> tags so that multiple controls work together. For example, you could create three separate <EMBED> or <OBJECT> tags to define an image window, a play button, and a stop button. By using three tags, you can set the size of each control separately, and define the entire layout with HTML tags. You could put each control in a different HTML table cell, for example. To tie controls together, define the same CONSOLE name within each <EMBED> or <OBJECT> tag, or use one of these predefined names: _master links the control to all other embedded controls on the page. _unique links the control to no other embedded controls on the page. You can have multiple console names for separate presentations. For a page showing two video clips, for example, you can define the console names video1 and video2. All controls linked by video1 interoperate, as do all controls linked by video2. But a video1 volume slider, for example, will not affect the volume of a video2 clip. Multiple Controls Example The following example sets up an image window and two sets of controls (a play button and stop button) for two separate videos, video1.rm and video2.rm. The predefined console name _master links the image window to both control sets. The control sets use different console names, however, so they do not link to each other. Clicking each play button therefore starts a different video. Because each <EMBED> tag must have a SRC value, the image window in the following example uses the same source as the first play button. The viewer simply clicks either play button to start a video. Clicking the other play button stops the first video and plays the second one: <EMBED SRC="video1.rpm" CONSOLE=_master WIDTH=176 HEIGHT=128 NOJAVA=true CONTROLS=ImageWindow> <H4>Video 1</H4> <EMBED SRC="video1.rpm" CONSOLE=video1 WIDTH=44 HEIGHT=26 NOJAVA=true CONTROLS=PlayButton> <EMBED SRC="video1.rpm" CONSOLE=video1 WIDTH=26 HEIGHT=26 NOJAVA=true CONTROLS=StopButton> <H4>Video 2</H4> <EMBED SRC="video2.rpm" CONSOLE=video2 WIDTH=44 HEIGHT=26 NOJAVA=true CONTROLS=PlayButton> <EMBED SRC="video2.rpm" CONSOLE=video2 WIDTH=26 HEIGHT=26 NOJAVA=true CONTROLS=StopButton>
Here is a example of a page using two CONTROLS=: URL: http://www.cooltv.ch/hp_neu2/php/player.php?nr=946 <EMBED controls="ControlPanel" console="Clip1" type="audio/x-pn-realaudio-plugin" width="220" height="26" autostart="no"> and <EMBED controls="StatusField" console="Clip1" type="audio/x-pn-realaudio-plugin" width="130" height="30" autostart="no">
I don't think we can support separate view/control plugins with our current architecture. Each plugin is a separate instance and has no knowledge about any other plugins, so the 'controls' plugin cannot contact the 'view' plugin to act on it.
*** Bug 362494 has been marked as a duplicate of this bug. ***
From bug 362494: The totem plugin fails to work on BBC pages such as http://news.bbc.co.uk/nolavconsole/ukfs_news/hi/bb_wm_fs.stm?news=1&bbram=1&bbwm=1&nbram=1&nbwm=1&nol_storyid=4977542 and http://news.bbc.co.uk/nolavconsole/ukfs_news/hi/bb_rm_fs.stm?nbram=1&nbwm=1&bbram=1&bbwm=1&news=1&nol_storyid=4977542&checkedBandwidth=bb&checkedMedia=ram&subtitles=hide&alreadySeen=1
(In reply to comment #8) > From bug 362494: > > The totem plugin fails to work on BBC pages such as > > http://news.bbc.co.uk/nolavconsole/ukfs_news/hi/bb_wm_fs.stm?news=1&bbram=1&bbwm=1&nbram=1&nbwm=1&nol_storyid=4977542 > This video plays fine and its a video/x-ms-asf mms:// stream. > and > > http://news.bbc.co.uk/nolavconsole/ukfs_news/hi/bb_rm_fs.stm?nbram=1&nbwm=1&bbram=1&bbwm=1&news=1&nol_storyid=4977542&checkedBandwidth=bb&checkedMedia=ram&subtitles=hide&alreadySeen=1 > This don't play and is a RealMedia http:// video.
Well, not for me. How can I debug the mms stream?
(In reply to comment #9) > (In reply to comment #8) > > From bug 362494: > > > > The totem plugin fails to work on BBC pages such as > > > > http://news.bbc.co.uk/nolavconsole/ukfs_news/hi/bb_wm_fs.stm?news=1&bbram=1&bbwm=1&nbram=1&nbwm=1&nol_storyid=4977542 > > > This video plays fine and its a video/x-ms-asf mms:// stream. My mistake, I didn't check that one. Sam, could you open a new bug about this particular page? You can get debug by running "firefox -debug", "mozilla -debug", or simply capturing the stdout of epiphany. > > and > > > > http://news.bbc.co.uk/nolavconsole/ukfs_news/hi/bb_rm_fs.stm?nbram=1&nbwm=1&bbram=1&bbwm=1&news=1&nol_storyid=4977542&checkedBandwidth=bb&checkedMedia=ram&subtitles=hide&alreadySeen=1 > > > This don't play and is a RealMedia http:// video. Still, it uses the features discussed in this bug. I'll take a look to see if we can at least make it work partially.
Damn, the mms feed works fine in Firefox (2.0). I guess it's ephy's problem.
... (In reply to comment #12) > Damn, the mms feed works fine in Firefox (2.0). I guess it's ephy's problem. Correction, my problem. An over-zealous custom CSS rule to block adverts also blocked the plugin from displaying. Sorry for the noise! (Although the plugin's handling of the Real stream is not ideal, I just get a grey box wheras playing the stream in totem itself results in a proper message windows saying that the stream is of an unknown type. Separate bug?)
(In reply to comment #13) > ... (In reply to comment #12) > > Damn, the mms feed works fine in Firefox (2.0). I guess it's ephy's problem. > > Correction, my problem. An over-zealous custom CSS rule to block adverts also > blocked the plugin from displaying. Sorry for the noise! Haha. > (Although the plugin's handling of the Real stream is not ideal, I just get a > grey box wheras playing the stream in totem itself results in a proper message > windows saying that the stream is of an unknown type. Separate bug?) Probably should. Feel free to file a new bug with the debug output attached.
So I've thought about this some more, and here's how we can make this work: - keep a list of all totemPlugin instances (to be kept updated in the totemPlugin ctor/dtor). the control plugins refer to the master plugin by the "console" attribute in the <embed>, so using that list we can get to the master plugin - write a new 'controls' viewer that just displays the specified control(s); the plugin will launch that viewer when in 'controls' mode and supply the master plugin's viewer's dbus address to it - the 'controls' viewer will communicate with the 'master' viewer via dbus
We killed the Complex plugin in 2.29.2.