After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 355881 - Can't play back content from webtv.tv2.no
Can't play back content from webtv.tv2.no
Status: RESOLVED INCOMPLETE
Product: totem
Classification: Core
Component: Browser plugin (obsolete)
2.16.x
Other Linux
: Normal normal
: ---
Assigned To: totem-browser-maint
totem-browser-maint
Depends on:
Blocks:
 
 
Reported: 2006-09-13 23:15 UTC by Kjartan Maraas
Modified: 2009-10-06 07:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
file 1 (415 bytes, text/plain)
2006-09-13 23:16 UTC, Kjartan Maraas
  Details
file 2 (1.89 KB, text/plain)
2006-09-13 23:16 UTC, Kjartan Maraas
  Details
file 3 (884 bytes, text/plain)
2006-09-13 23:17 UTC, Kjartan Maraas
  Details
file 4 (8.20 KB, text/plain)
2006-09-13 23:17 UTC, Kjartan Maraas
  Details
file 5 (1.25 KB, text/plain)
2006-09-13 23:17 UTC, Kjartan Maraas
  Details
file 6 (2.42 KB, text/plain)
2006-09-13 23:18 UTC, Kjartan Maraas
  Details
file 7 (13.48 KB, text/plain)
2006-09-13 23:19 UTC, Kjartan Maraas
  Details
file 8 (3.73 KB, text/plain)
2006-09-13 23:19 UTC, Kjartan Maraas
  Details
file 9 (9.92 KB, text/plain)
2006-09-13 23:20 UTC, Kjartan Maraas
  Details
file 10 (2.52 KB, text/plain)
2006-09-13 23:20 UTC, Kjartan Maraas
  Details
file 11 (1.29 KB, text/plain)
2006-09-13 23:21 UTC, Kjartan Maraas
  Details
file 12 (1.42 KB, text/plain)
2006-09-13 23:22 UTC, Kjartan Maraas
  Details
main source (13.41 KB, text/plain)
2006-09-13 23:22 UTC, Kjartan Maraas
  Details
argv[2] url (335 bytes, text/plain)
2006-09-13 23:34 UTC, Kjartan Maraas
  Details
content of the iframe (2.11 KB, text/plain)
2006-09-14 06:12 UTC, Kjartan Maraas
  Details
misc changes, implement the functions needed a bit (5.41 KB, patch)
2007-02-19 12:10 UTC, Christian Persch
committed Details | Review

Description Kjartan Maraas 2006-09-13 23:15:44 UTC
I get an error when trying to watch webtv from this site. Attaching all the source I could get from the page.
Comment 1 Kjartan Maraas 2006-09-13 23:16:22 UTC
Created attachment 72731 [details]
file 1
Comment 2 Kjartan Maraas 2006-09-13 23:16:46 UTC
Created attachment 72732 [details]
file 2
Comment 3 Kjartan Maraas 2006-09-13 23:17:04 UTC
Created attachment 72733 [details]
file 3
Comment 4 Kjartan Maraas 2006-09-13 23:17:19 UTC
Created attachment 72734 [details]
file 4
Comment 5 Kjartan Maraas 2006-09-13 23:17:49 UTC
Created attachment 72735 [details]
file 5
Comment 6 Kjartan Maraas 2006-09-13 23:18:27 UTC
Created attachment 72736 [details]
file 6
Comment 7 Kjartan Maraas 2006-09-13 23:19:15 UTC
Created attachment 72737 [details]
file 7
Comment 8 Kjartan Maraas 2006-09-13 23:19:37 UTC
Created attachment 72738 [details]
file 8
Comment 9 Kjartan Maraas 2006-09-13 23:20:18 UTC
Created attachment 72739 [details]
file 9
Comment 10 Kjartan Maraas 2006-09-13 23:20:52 UTC
Created attachment 72740 [details]
file 10
Comment 11 Kjartan Maraas 2006-09-13 23:21:30 UTC
Created attachment 72741 [details]
file 11
Comment 12 Kjartan Maraas 2006-09-13 23:22:20 UTC
Created attachment 72742 [details]
file 12
Comment 13 Kjartan Maraas 2006-09-13 23:22:47 UTC
Created attachment 72743 [details]
main source
Comment 14 Kjartan Maraas 2006-09-13 23:29:47 UTC
Here's the console output from epiphany:

[kmaraas@rivendell ~]$ epiphany
NOTE: Enabling gecko pango renderer; this may cause performance degradation.
You can set /apps/epiphany/web/enable_pango to "false" to disable it.

** (epiphany:32131): WARNING **: Failed to send buffer

** (epiphany:32131): WARNING **: Failed to send buffer
** Message: plugin_get_value 1 (1)

** Message: plugin_get_value 2 (2)

** Message: plugin_get_value 1 (1)

** Message: plugin_get_value 2 (2)

** Message: plugin_get_value 1 (1)

** Message: plugin_get_value 2 (2)

** Message: plugin_get_value 1 (1)

** Message: plugin_get_value 2 (2)

** Message: NP_Initialize

** Message: totem_plugin_new_instance
totemGMPPlugin ctor [0x9796278]
mode 1
mime type: application/x-mplayer2
argv[0] type application/x-mplayer2
argv[1] id MediaPlayer1
argv[2] src http://webtv.tv2.no/webtv/metafile.asx?MSG=Yx6xA)osH3lt2LLt(QDVks133XJw08GPCi)deEAemTBENPd5sQB)qps6mf7tx0Ns7v9K77fkv7LzpneKcbFxvSF2w6iP(s3czvvE)0rzx1Q!
argv[3] pluginspage http://www.microsoft.com/windows/windowsmedia/download/default.asp
argv[4] ieonly MediaPlayer1
argv[5] ieonlyotherstext MediaPlayer1
argv[6] name MediaPlayer1
argv[7] enabled -1
argv[8] invokeurls -1
argv[9] clicktoplay 0
argv[10] allowscan -1
argv[11] enablefullscreencontrols 0
argv[12] enablepositioncontrols -1
argv[13] enabletracker -1
argv[14] showcaptioning 0
argv[15] showaudiocontrols -1
argv[16] showdisplay 0
argv[17] showcontrols 0
argv[18] showgotobar 0
argv[19] showpositioncontrols -1
argv[20] showstatusbar -1
argv[21] showtracker 0
argv[22] enablecontextmenu false
argv[23] autorewind -1
argv[24] autostart true
argv[25] previewmode 0
argv[26] volume 80
argv[27] mute 0
argv[28] rate 1
argv[29] playcount 1
argv[30] windowlessvideo 0
argv[31] autosize 0
argv[32] animationatstart 0
argv[33] transparentatstart -1
argv[34] allowchangedisplaysize -1
argv[35] cursortype 0
argv[36] displaymode 0
argv[37] displaysize 0
argv[38] displayforecolor 16777215
argv[39] displaybackcolor 0
argv[40] senderrorevents true
argv[41] sendkeyboardevents 0
argv[42] sendmouseclickevents 0
argv[43] sendmousemoveevents 0
argv[44] sendopenstateevents -1
argv[45] sendplaystatechangeevents -1
argv[46] sendwarningevents -1
argv[47] vidheight 288
argv[48] vidwidth 384
argv[49] balance 0
argv[50] uimode none
argv[51] stretchtofit true
argv[52] fullscreen false
argv[53] height 312
argv[54] width 384
** Message: plugin_get_value 14 (e)

** Message: plugin_set_window
** Message: waiting for data to come
** Message: leaving plugin_set_window
** Message: plugin_set_window
** Message: existing window
** Message: resize
** Message: leaving plugin_set_window
** Message: plugin_set_window
** Message: existing window
** Message: resize
** Message: leaving plugin_set_window
** Message: plugin_new_stream
** Message: plugin_new_stream type: text/html url: http://webtv.tv2.no/webtv/metafile.asx?MSG=Yx6xA)osH3lt2LLt(QDVks133XJw08GPCi)deEAemTBENPd5sQB)qps6mf7tx0Ns7v9K77fkv7LzpneKcbFxvSF2w6iP(s3czvvE)0rzx1Q!
** Message: plugin_stream_as_file: /home/kmaraas/.gnome2/epiphany/mozilla/epiphany/Cache/0BABAE5Fd01
** Message: waiting for signal org.totem_6620.MozillaPluginService
** Message: Received notification for :1.24

** Message: Received notification for :1.24

** Message: Received notification for org.totem_6620.MozillaPluginService

** Message: Received notification for org.totem_6620.MozillaPluginService

** Message: 0x9796230 plugin
** Message: Done forking, new proxy=0x9033188
CMD line: /usr/libexec/totem-mozilla-viewer --xid 79704945 --width 384 --height 312 --url http://webtv.tv2.no/webtv/metafile.asx?MSG=Yx6xA)osH3lt2LLt(QDVks133XJw08GPCi)deEAemTBENPd5sQB)qps6mf7tx0Ns7v9K77fkv7LzpneKcbFxvSF2w6iP(s3czvvE)0rzx1Q! --mimetype application/x-mplayer2 --nocontrols http://webtv.tv2.no/webtv/metafile.asx?MSG=Yx6xA)osH3lt2LLt(QDVks133XJw08GPCi)deEAemTBENPd5sQB)qps6mf7tx0Ns7v9K77fkv7LzpneKcbFxvSF2w6iP(s3czvvE)0rzx1Q! 
** Message: Setting the current path to /home/kmaraas/.gnome2/epiphany/mozilla/epiphany/Cache/0BABAE5Fd01
** Message: plugin_stream_as_file

** Message: plugin_destroy_stream
** Message: plugin_get_value 15 (f)

** Message: unhandled variable 15 (f)
** Message: plugin_get_value 11 (b)

** Message: plugin_get_value 268435466 (1000000a)

** Message: GetHelperForLanguage 2
** Message: GetInterfaces
** Message: plugin_get_value 15 (f)

** Message: unhandled variable 15 (f)
** Message: plugin_get_value 11 (b)

** Message: plugin_get_value 268435466 (1000000a)

** Message: plugin_set_window
** Message: existing window
** Message: resize
** Message: leaving plugin_set_window
** Message: plugin_get_value 15 (f)

** Message: unhandled variable 15 (f)
** Message: plugin_get_value 11 (b)

** Message: plugin_get_value 268435466 (1000000a)

** Message: plugin_set_window
** Message: existing window
** Message: resize
** Message: leaving plugin_set_window
** Message: totem_embedded_open 'file:///home/kmaraas/.gnome2/epiphany/mozilla/epiphany/Cache/0BABAE5Fd01'
** Message: error: Plassering ikke funnet.
** Message: GetClassDescription: totemGMPPlugin
** Message: GetClassDescription: totemGMPPlugin
** Message: GetClassDescription: totemGMPPlugin
** Message: GetClassDescription: totemGMPPlugin
** Message: GetClassDescription: totemGMPPlugin
Comment 15 Kjartan Maraas 2006-09-13 23:34:12 UTC
Created attachment 72744 [details]
argv[2] url
Comment 16 Kjartan Maraas 2006-09-14 06:12:13 UTC
Created attachment 72751 [details]
content of the iframe

Looks like there's some problem with authentication? or maybe it's just showing code for that case along with the rest?
Comment 17 Bastien Nocera 2006-09-16 12:18:28 UTC
It looks like /home/kmaraas/.gnome2/epiphany/mozilla/epiphany/Cache/0BABAE5Fd01 (the argv[2] url) didn't get recognised as an ASX playlist. Could you check whether "test-parser" in the Totem sources can parse it. eg.:
./test-parser --data file:///home/kmaraas/.gnome2/epiphany/mozilla/epiphany/Cache/0BABAE5Fd01
and:
./test-parser file:///home/kmaraas/.gnome2/epiphany/mozilla/epiphany/Cache/0BABAE5Fd01

Make sure that your shared-mime-info is updated as well.
Comment 18 Bastien Nocera 2006-09-16 12:20:58 UTC
It looks like the same problems we had with the news.sky.com streams, make sure you have at least Totem 2.16.1.
Comment 19 Kjartan Maraas 2006-09-19 07:52:51 UTC
I tested this with 2.16.1 and it acts the same. The file in the cache is not there after I get the error message so I can't use test-parser on it...

My shared-mime-info is updated as far as the package is updated in rawhide...
Comment 20 Kjartan Maraas 2006-09-19 10:26:54 UTC
[kmaraas@rivendell plparse]$ wget 'http://webtv.tv2.no/webtv/metafile.asx?MSG=Yx6xA)osH3lt2LLt(QDVks133XJw08GPCi)deEAemTBENPd5sQB)qps6mf7tx0Ns7v9K77fkv7LzpneKcbFxvSF2w6iP(s3czvvE)0rzx1Q'
--12:24:57--  http://webtv.tv2.no/webtv/metafile.asx?MSG=Yx6xA)osH3lt2LLt(QDVks133XJw08GPCi)deEAemTBENPd5sQB)qps6mf7tx0Ns7v9K77fkv7LzpneKcbFxvSF2w6iP(s3czvvE)0rzx1Q
Resolving webtv.tv2.no... 193.227.204.154
Connecting to webtv.tv2.no|193.227.204.154|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 98 [text/html]
Saving to: `metafile.asx?MSG=Yx6xA)osH3lt2LLt(QDVks133XJw08GPCi)deEAemTBENPd5sQB)qps6mf7tx0Ns7v9K77fkv7LzpneKcbFxvSF2w6iP(s3czvvE)0rzx1Q'

100%[==================================================================================>] 98          --.-K/s   in 0s     

12:24:57 (2,17 MB/s) - `metafile.asx?MSG=Yx6xA)osH3lt2LLt(QDVks133XJw08GPCi)deEAemTBENPd5sQB)qps6mf7tx0Ns7v9K77fkv7LzpneKcbFxvSF2w6iP(s3czvvE)0rzx1Q' saved [98/98]

[kmaraas@rivendell plparse]$ ./test-parser metafile.asx\?MSG\=Yx6xA\)osH3lt2LLt\(QDVks133XJw08GPCi\)deEAemTBENPd5sQB\)qps6mf7tx0Ns7v9K77fkv7LzpneKcbFxvSF2w6iP\(s3czvvE\)0rzx1Q 

###################### parsing ################


** (process:17740): CRITICAL **: totem_pl_parser_parse: assertion `strstr (url, "://") != NULL' failed
ignored url 'metafile.asx?MSG=Yx6xA)osH3lt2LLt(QDVks133XJw08GPCi)deEAemTBENPd5sQB)qps6mf7tx0Ns7v9K77fkv7LzpneKcbFxvSF2w6iP(s3czvvE)0rzx1Q'
Comment 21 Bastien Nocera 2006-09-19 19:26:40 UTC
I tested this myself, and there are a few problems.

First:
** Message: plugin_new_stream type: text/html url:
http://webtv.tv2.no/webtv/metafile.asx?MSG=Yx6xA)osH3lt2LLt(QDVks133XJw08GPCi)deEAemTBENPd5sQB)qps6mf7tx0Ns7v9K77fkv7LzpneKcbFxvSF2w6iP(s3czvvE)0rzx1Q!

I actually got that page in my cache, and it's a proper HTML page (huh?). We really shouldn't have got the file from the browser as a stream.

2006-09-19  Bastien Nocera  <hadess@hadess.net>

        * browser-plugin/totemPlugin.cpp: don't accept streams from
        the browser if they're not from a supported mime-type
        (http://webtv.tv2.no passes us text/html streams)
        (Helps: #355881)

The other problem is that inside that page, they use "document.mp.URL = url" in the Javascript section. This requires a URL property in the player idl for WMP.
Comment 22 Bastien Nocera 2006-09-19 19:27:17 UTC
You can test that Kjartan, it should go a little further (the test stream will fail though...).
Comment 23 Kjartan Maraas 2006-09-26 19:45:33 UTC
It doesn't go much better. I still get the error dialog with the file that is not found etc. It can at least start the automatic bandwidth test now, but I get the same error there. Should I "file bugs" against their javascript/html code or against the browser or anything?
Comment 24 Bastien Nocera 2006-09-26 22:06:11 UTC
Nope, file a bug against me for not having enough time to fix this completely. Is this a free service, or a paying one? I wouldn't want you to waste your money...

The master bug is bug 343007, which we'd need to fix (at least a bit) before we can make progress in this one.
Comment 25 Kjartan Maraas 2006-09-26 22:30:52 UTC
I've paid for a month already so just feel free to use it as long as you can :-) Thanks for following up so far though
Comment 26 Kjartan Maraas 2006-09-28 22:55:32 UTC
It expires oct 11 btw
Comment 27 Kjartan Maraas 2007-02-01 18:02:48 UTC
No expiry date after all so you can use it any time you want.
Comment 28 Christian Persch 2007-02-19 01:02:22 UTC
Bug 407679 comment 8 reveals at least the following problems:

argv[20] showstatusbar -1
[...]
** Message: Unknown value '-1' for parameter 'showstatusbar'

We need to support that; not sure whether -1 is true or false though...


** Message: GMP scriptable: use of unimplemented function
'totemIGMPPlayer::GetVersionInfo'
** Message: GMP scriptable: use of unimplemented function
'totemIGMPControls::GetCurrentPosition'
** Message: GMP scriptable: use of unimplemented function
'totemIGMPPlayer::GetStatus'
Comment 29 Christian Persch 2007-02-19 12:10:51 UTC
Created attachment 82884 [details] [review]
misc changes, implement the functions needed a bit
Comment 30 Bastien Nocera 2007-02-19 15:01:48 UTC
Looks good, please commit.
Comment 31 Christian Persch 2007-02-19 16:03:49 UTC
        * browser-plugin/totemGMPPlugin.cpp:
        * browser-plugin/totemGMPPlugin.h:
        * browser-plugin/totemPlugin.cpp:
        * browser-plugin/totemPlugin.h: Also allow "-1" for boolean values,
        and semi-implement a few bits of the JS interfaces. Should get us a
        bit closer to support webtv.tv2.no; bug #355881.

Comment 32 Christian Persch 2007-02-20 20:04:05 UTC
More missing stubs:

** Message: WARNING: Site uses unimplemented function
'totemIGMPPlayer::GetOpenState'
** Message: WARNING: Site uses unimplemented function
'totemIGMPPlayer::GetPlayState'
** Message: WARNING: Site uses unimplemented function
'totemIGMPPlayer::GetCurrentMedia'
** Message: WARNING: Site uses unimplemented function
'totemIGMPSettings::SetMute'
Comment 33 Kjartan Maraas 2009-10-06 07:54:41 UTC
They've since moved to Silverlight so I'm closing this now.