GNOME Bugzilla – Bug 355881
Can't play back content from webtv.tv2.no
Last modified: 2009-10-06 07:54:41 UTC
I get an error when trying to watch webtv from this site. Attaching all the source I could get from the page.
Created attachment 72731 [details] file 1
Created attachment 72732 [details] file 2
Created attachment 72733 [details] file 3
Created attachment 72734 [details] file 4
Created attachment 72735 [details] file 5
Created attachment 72736 [details] file 6
Created attachment 72737 [details] file 7
Created attachment 72738 [details] file 8
Created attachment 72739 [details] file 9
Created attachment 72740 [details] file 10
Created attachment 72741 [details] file 11
Created attachment 72742 [details] file 12
Created attachment 72743 [details] main source
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
Created attachment 72744 [details] argv[2] url
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?
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.
It looks like the same problems we had with the news.sky.com streams, make sure you have at least Totem 2.16.1.
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...
[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'
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.
You can test that Kjartan, it should go a little further (the test stream will fail though...).
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?
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.
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
It expires oct 11 btw
No expiry date after all so you can use it any time you want.
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'
Created attachment 82884 [details] [review] misc changes, implement the functions needed a bit
Looks good, please commit.
* 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.
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'
They've since moved to Silverlight so I'm closing this now.