maninha22crazy / gecko-mediaplayer

Automatically exported from code.google.com/p/gecko-mediaplayer
GNU General Public License v2.0
0 stars 0 forks source link

Possible issue with hidden interface #84

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make sure you only have gecko-mediaplayer installed and not moonlight
(as it tends to overtake every windows media mimetype in some
installations) or the mozilla VLC plugin (as it seems to have some coding
that automatically makes it the default plugin for everything no matter
what your Firefox preferences are).
2. Open Firefox
3. Go to http://radiotime.com/station/s_27145/979X.aspx
4. Click the listen button.

What is the expected output? What do you see instead?
Audio of WBSX Hazleton, instead no audio.

What version of the product are you using? On what operating system?
Latest svn builds of mplayer, gnome-mplayer and gecko-mediaplayer as of
2/9/2010. Firefox 3.6, Ubuntu 9.10

Please provide any additional information below.
The log when I run firefox from a terminal window after I click the listen
button. I'm guessing that it could be a problem with hidden players, you'll
probably be able to diagnose it better when you try yourself:
NPP_New called
Using player backend of ''
DBUS connection created
Listening to path /control/31898
ARG: id = radiotime_windows_player
ARG: type = application/x-ms-wmp
ARG: height = 1
ARG: width = 1
Window resized
Window resized
NPP_New called
Using player backend of ''
DBUS connection created
Listening to path /control/29522
ARG: id = radiotime_windows_player
ARG: type = application/x-ms-wmp
ARG: height = 1
ARG: width = 1
Window resized
Window resized

(gnome-mplayer:25372): Gtk-CRITICAL **: gtk_widget_set_size_request:
assertion `width >= -1' failed

(gnome-mplayer:25377): Gtk-CRITICAL **: gtk_widget_set_size_request:
assertion `width >= -1' failed

(gnome-mplayer:25377): Gtk-CRITICAL **: gtk_widget_set_size_request:
assertion `width >= -1' failed

(gnome-mplayer:25372): Gtk-CRITICAL **: gtk_widget_set_size_request:
assertion `width >= -1' failed

If it's an issue with the actual implementation of the player on RadioTime,
feel free to contact bill@radiotime.com with your findings so he can
forward it to the developer of our web player.

Original issue reported on code.google.com by kyl...@gmail.com on 10 Feb 2010 at 2:09

Attachments:

GoogleCodeExporter commented 8 years ago
I had just disabled all of the plugins but Windows Media Player and it does the 
same thing. It is kinda looking like the code might be creating an embed, 
destroying it, and then creating it again, but not positive on that one.

Original comment by kdeko...@gmail.com on 6 Jun 2011 at 9:56

GoogleCodeExporter commented 8 years ago
This is the log with all the plugins disabled, but WMP. Looks about the same to 
me.

15:57:43.761 log created
15:57:43.770 Configuration loaded
15:57:43.772 OS: Linux
15:57:43.773 Browser: Firefox 4.0
15:57:43.774 Plugins: linux firefox 4.0 windows 7.0s, quicktime 7.6.9s, flash 
10s, flash9 10s, flash8 10s, iframe 1.0, link 1.0,
15:57:43.774 Slider base offset: 22
15:57:43.775 Slider base offset: -199998
15:57:43.776 setTarget(undefined,35596,undefined,undefined,undefined)
15:57:43.777 Stream monitoring stopped
15:57:43.778 rank for Windows Media Player is 1
15:57:43.850 OnDSPlayStateChangeEvt: 3
15:57:43.854 onstatechange: windows: 3: 1 undefined
15:57:43.901 windows._getNowPlaying failed with Error: Error calling method on 
NPObject!
15:57:43.905 windows._play failed with Error: Error setting property on 
NPObject!
15:57:43.906 Stream monitoring started
15:57:43.907 Element not found (tryNextEXT)
15:57:43.908 Element not found (tunerActions)
15:57:44.275 onstatechange: flash8: 1: 1 Stopped
15:57:44.276 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:44.404 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:44.405 onstatechange: windows: 0: 0 undefined
15:57:44.407 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:44.484 flash object is ready
15:57:44.485 ready undefined
15:57:44.490 status 1
15:57:44.854 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:45.349 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:45.848 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:46.348 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:46.847 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:47.348 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:47.847 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:48.361 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:48.851 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:49.348 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:49.349 onstatechange: windows: 0: 0 undefined
15:57:49.350 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:49.847 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:50.349 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:50.851 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:51.349 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:51.847 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:52.348 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:52.849 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:53.349 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:53.849 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
15:57:53.907 Playback doesn't start
15:57:53.908 windows error
15:57:53.909 windows._getError failed with TypeError: this._object.error is 
undefined
15:57:53.910 windows error: undefined
15:57:53.911 windows._getError failed with TypeError: this._object.error is 
undefined
15:57:53.912 Trying next pair, current 0
15:57:53.912 Stream monitoring stopped
15:57:53.913 windows._stop failed with TypeError: this._object.controls is 
undefined
15:57:53.914 tryRaw()
15:57:53.915 windows._stop failed with TypeError: this._object.controls is 
undefined
15:57:53.915 setTarget(,,,,raw=true)
15:57:53.916 Sending request: 
http://tunein.com/tuner/tune/?StationId=35596&open=true&raw=true
15:57:53.977 windows._stop failed with TypeError: this._object.controls is 
undefined
15:57:53.980 Element not found (tryNextEXT)
15:57:54.349 onstatechange: windows: 1: 1 Stopped
15:58:08.866 Showing index

Original comment by kdeko...@gmail.com on 6 Jun 2011 at 9:59

GoogleCodeExporter commented 8 years ago
I don't know if you got similar results, but when I tested it with flash 
disabled, I could see a tab for gnome-mplayer on the panel.

I don't know which environment you are using though to test. I'm using Ubuntu 
Classic (No Effects) which is basically metacity with gnome-panel. I know gnome 
3.0 uses a new interface so it might not appear and Ubuntu's new interface is 
Unity and doesn't have the gnome-panel.

Original comment by kyl...@gmail.com on 6 Jun 2011 at 10:01

GoogleCodeExporter commented 8 years ago
Yeah, I see gnome-mplayer appear on the desktop which is why I think something 
odd is going on with the embed tag, the only time you see gnome-mplayer on the 
desktop is when the window created in firefox no longer exists.

I have a test2.html that uses a 1x1 of gnome-mplayer. If you click SetURL you 
should hear the crazy cow video playing.

Original comment by kdeko...@gmail.com on 6 Jun 2011 at 10:04

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Yeah I heard the cow. Maybe there's a difference in the handling of the embed

Can you tell what our player is doing with tunerCore.js?
Specifically the lines that creates the embedded player.

I think the Windows XP version of the firefox plugin enables support of the 
object tags for windows media player, while test2.html is just a pure embed 
tag, maybe that's where it's happening.

Original comment by kyl...@gmail.com on 6 Jun 2011 at 10:21

GoogleCodeExporter commented 8 years ago
Well, I have pasted in your _create method here and it looks to be like object 
is null and isTypeSupported("application/x-ms-wmp") is not null and so the 
innerHTML is set to 

<embed width="1" height="1" id="radiotime_windows_player" 
type="application/x-ms-wmp"></embed>

And I can prove that by viewing the page.

But as to why two plugin instances are being created... that is unknown at this 
point.

RadioTime.playerWindows.prototype._create = function(url){
    var object = null;
    this._scriptable = false;
    try {
        if (window.ActiveXObject){
            object = new ActiveXObject("WMPlayer.OCX.7");
        } else if (window.GeckoActiveXObject){
            object = new GeckoActiveXObject("WMPlayer.OCX.7");
        }
    } catch(e) {
        RadioTime.log.addException(this, e, "playerWindows._create:ActiveX");
    }
    var a = document.createElement("div");
    a.style.position = "absolute";
    RadioTime._container.appendChild(a);
    if (!object){
        if (RadioTime.ua.isTypeSupported("application/x-ms-wmp")) {
            a.innerHTML = '<embed width="1" height="1" id="radiotime_windows_player" type="application/x-ms-wmp"></embed>';
        } else {
            if (url != undefined) {
                url = ' autostart="1" src="' + url + '"'; 
            } else {
                url = '';
            }
            a.innerHTML = '<embed width="1" height="1" id="radiotime_windows_player" type="application/x-mplayer2"' + url + ' CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"></embed>'; 
        } 
    } else {
            delete object;
            a.innerHTML = '<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="1" height="1" id="radiotime_windows_player"></object>';
    }
    object = a.childNodes[0];
    RadioTime._container.innerHTML;
    try {
        this._scriptable = (object.versionInfo != undefined) && (object.controls != undefined); // Extra check to avoid confusion with VLC
        //RadioTime.log.add("WMP VersionInfo: " + object.versionInfo());
    } catch (e) {
        RadioTime.log.addException(this, e, "playerWindows._create:ScriptableCheck");
    }

    return object;
}

Original comment by kdeko...@gmail.com on 6 Jun 2011 at 10:32

GoogleCodeExporter commented 8 years ago
Based on the logs (both debug as well as the terminal output of the plugin), 
it's definitely not a case of it loading at both application/x-ms-wmp and 
application/x-mplayer, right?

Can you tell if it's calling it twice right away or does it appear to be an 
attempt 1 (fails to play), try again with attempt 2 but not terminiating the 
previous instance thing? (Which could also be why a window with gnome-mplayer 
appears)

Also, maybe you can try modifying the test page to include some of the ways we 
do it, like including an object tag or the options we use to check WMP 6.4 vs 
WMP 7+.

Original comment by kyl...@gmail.com on 6 Jun 2011 at 10:44

GoogleCodeExporter commented 8 years ago
I don't know if you attempted it on Windows but here's the debug log for 
reference:

19:15:31.844 log created
19:15:32.186 OS: Windows XP
19:15:32.188 Browser: Firefox 4.0
19:15:32.191 Plugins: win firefox 4.0 windows 7.0s, quicktime 7.6.9s, flash 
10s, flash9 10s, flash8 10s, iframe 1.0, link 1.0,
19:15:32.193 Slider base offset: 22
19:15:32.197 Slider base offset: -199998
19:15:32.200 setTarget(undefined,35596,undefined,undefined,undefined)
19:15:32.202 Stream monitoring stopped
19:15:32.205 rank for Windows Media Player is 9
19:15:35.248 OnDSPlayStateChangeEvt: 9
19:15:35.251 onstatechange: windows: 9: 2
19:15:35.315 OnDSPlayStateChangeEvt: 9
19:15:35.321 onstatechange: windows: 9: 2 Connecting...
19:15:35.535 Stream monitoring started
19:15:35.537 Element not found (tryNextEXT)
19:15:35.539 Element not found (tunerActions)
19:15:35.707 onstatechange: flash8: 1: 1 Stopped
19:15:35.718 onstatechange: windows: 2: 2 Connecting...
19:15:35.725 No handlers for ontopicchange
19:15:35.999 flash object is ready
19:15:36.001 ready undefined
19:15:36.021 status 1
19:15:37.171 onstatechange: windows: 2: 2 Opening media...
19:15:37.176 No handlers for ontopicchange
19:15:38.206 onstatechange: windows: 2: 2 Connecting to media...
19:15:40.707 onstatechange: windows: 2: 2 Connecting to media...
19:15:42.984 OnDSPlayStateChangeEvt: 3
19:15:42.987 onstatechange: windows: 3: 3 Playing 'Stream': 33 K bits/second
19:15:43.001 onstatechange: windows: 3: 3 Playing 'Stream': 33 K bits/second
19:15:43.148 OnDSPlayStateChangeEvt: 6
19:15:43.152 onstatechange: windows: 6: 2 Buffering
19:15:43.194 onstatechange: windows: 2: 2 Buffering
19:15:43.423 OnDSPlayStateChangeEvt: 3
19:15:43.426 onstatechange: windows: 3: 3 Playing 'Stream': 33 K bits/second
19:15:43.705 onstatechange: windows: 3: 3 Playing 'Stream': 33 K bits/second
19:16:43.531 windows looks ok, boost it
19:16:43.533 Sending request: 
http://tunein.com/StreamStatus.axd?StationId=35596&StreamId=522557&Time=60.5&Pla
yStateHistory=2,2,2,2,3,2,3,&PlayerCode=windows

I'm going to try it on Linux with the user-agent set to a Windows XP machine 
instead of Linux.

Original comment by kyl...@gmail.com on 6 Jun 2011 at 11:17

GoogleCodeExporter commented 8 years ago
Debug log on Linux with a Windows XP user agent:

19:19:12.240 log created
19:19:12.249 Configuration loaded
19:19:12.284 OS: Windows XP
19:19:12.285 Browser: Firefox 4.0
19:19:12.287 Plugins: win firefox 4.0 windows 7.0s, quicktime 7.6.9s, flash 
10s, flash9 10s, flash8 10s, iframe 1.0, link 1.0,
19:19:12.289 Slider base offset: 22
19:19:12.292 Slider base offset: -199998
19:19:12.294 setTarget(undefined,35596,undefined,undefined,undefined)
19:19:12.297 Stream monitoring stopped
19:19:12.300 rank for Windows Media Player is 9
19:19:12.328 OnDSPlayStateChangeEvt: 3
19:19:12.333 onstatechange: windows: 3: 1 undefined
19:19:12.365 windows._getNowPlaying failed with Error: Error calling method on 
NPObject!
19:19:12.369 windows._play failed with Error: Error setting property on 
NPObject!
19:19:12.374 Stream monitoring started
19:19:12.375 Element not found (tryNextEXT)
19:19:12.377 Element not found (tunerActions)
19:19:12.728 flash object is ready
19:19:12.730 ready undefined
19:19:12.752 status 1
19:19:12.917 onstatechange: flash8: 1: 1 Stopped
19:19:12.919 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:12.922 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:12.924 onstatechange: windows: 0: 0 undefined
19:19:12.926 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:13.332 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:13.828 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:14.329 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:14.827 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:15.328 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:15.988 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:16.339 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:16.892 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:17.341 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:17.943 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:17.946 onstatechange: windows: 0: 0 undefined
19:19:17.948 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:18.330 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:18.831 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:19.327 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:19.828 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:20.328 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:20.828 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:21.325 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:21.828 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:22.327 windows._getNowPlaying failed with TypeError: 
this._object.controls is undefined
19:19:22.375 Playback doesn't start
19:19:22.377 windows error
19:19:22.380 windows._getError failed with TypeError: this._object.error is 
undefined
19:19:22.383 windows error: undefined
19:19:22.386 windows._getError failed with TypeError: this._object.error is 
undefined
19:19:22.387 Trying next pair, current 0
19:19:22.389 Stream monitoring stopped
19:19:22.391 windows._stop failed with TypeError: this._object.controls is 
undefined
19:19:22.392 tryRaw()
19:19:22.394 windows._stop failed with TypeError: this._object.controls is 
undefined
19:19:22.395 setTarget(,,,,raw=true)
19:19:22.397 Sending request: 
http://tunein.com/tuner/tune/?StationId=35596&open=true&raw=true
19:19:22.503 windows._stop failed with TypeError: this._object.controls is 
undefined
19:19:22.507 Element not found (tryNextEXT)
19:19:22.829 onstatechange: windows: 1: 1 Stopped

Original comment by kyl...@gmail.com on 6 Jun 2011 at 11:20

GoogleCodeExporter commented 8 years ago
ok, the windows log might be helpful... I'll see if I can change the plugin to 
respond that way.

Original comment by kdeko...@gmail.com on 6 Jun 2011 at 11:30

GoogleCodeExporter commented 8 years ago
ok, if I make the plugin emit a code 9, STATE_TRANSITIONING, the javascript 
code creates several instances of the embed tag. You can see in the generated 
source that it is doing that. Basically that creates several instances of 
gnome-mplayer as well, which is incorrect. It keeps creating embed tags until 
no more plugin instances can be created. 

If I take out the code 9, then the code still generates two embed tags, but one 
is deleted. 

<div id="tunerVolume">
                    <a style="display: none;" href="#" id="tunerVolumeButton" onmouseover="toggleVolume();return false;">Adjust volume with left-right keys</a>
                    <div id="volume-wrapper">
                        <div style="width: 58px;" id="volume-position"></div>

                        <div title="Volume 50, slide to change" id="volume-cover" tabindex="1"></div>
                    </div>
                    <div style="display: none;" id="tracker-wrapper">
                        <div title="Position 0" id="tracker-cover" tabindex="2"></div>
                        <div style="width: 0px;" id="tracker-position"></div>
                    </div>
                </div><!--/tunerVolume-->
                <ul id="tunerShowDetails">
                    <li style="display: none;" id="onNow"></li>

                    <li id="onNowinfo"> 
                        <div style="display: none;" id="onNowRemaining"></div>   
                        <div style="display: none;" id="upNext"></div>
                    </li>
                    <li style="display: none;" id="currentSong"></li>
                    <li title="Windows Media Player (Initializing...) " id="playbackStatus"></li>
                    <li style="display: block;" id="cantplay"><strong>Stream is not available</strong></li>
                    <li style="display: block;" id="installHint"></li>
                </ul>

                <div class="clear"></div>
            <div style="position: absolute;"><embed id="radiotime_flash8_20254549732547256" type="application/x-shockwave-flash" src="http://tunein.com/assets/js/tuner/mplayer2.swf?radiotime_flash8_20254549732547256" allowscriptaccess="always" flashvars="autostart=true&objectid=radiotime_flash8_20254549732547256" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div><div style="position: absolute;"><embed id="radiotime_windows_player" type="application/x-ms-wmp" height="1" width="1"></div></div><!--/tunerDisplay-->
            <div class="clear"></div>

Original comment by kdeko...@gmail.com on 7 Jun 2011 at 12:49

GoogleCodeExporter commented 8 years ago
ok, I think I have figured out why two plugins are loaded one is for the stream 
and one is for the ads, is this correct?

Original comment by kdeko...@gmail.com on 7 Jun 2011 at 2:09

GoogleCodeExporter commented 8 years ago
Can you try out SVN of gecko-mediaplayer and gnome-mplayer. I think I actually 
have your site working. 

Volume changes and audio plays, only thing that doesn't seem to work is the 
buffering message. It does take a bit to load the cache, so I'll try and fix 
that issue.

Original comment by kdeko...@gmail.com on 7 Jun 2011 at 2:17

GoogleCodeExporter commented 8 years ago
Ok, with SVN of gnome-mplayer and gecko-mediaplayer the debug site you gave me 
works great. The original site you pointed out works as well. I think we can 
mark this as done...

Agree?

Original comment by kdeko...@gmail.com on 7 Jun 2011 at 3:18

GoogleCodeExporter commented 8 years ago
I didn't try it out yet, but as for the long buffering, does it use the cache 
settings chosen in the gnome-mplayer preferences or does it dynamically choose 
it based on the bitrate?

Original comment by kyl...@gmail.com on 7 Jun 2011 at 4:48

GoogleCodeExporter commented 8 years ago
It uses the cache settings in gnome-mplayer. Unfortunately since you have 
marked the content as wmp, the plugin thinks it is a video file and therefore 
uses the video cache. 

Original comment by kdeko...@gmail.com on 7 Jun 2011 at 5:00

GoogleCodeExporter commented 8 years ago
I just tested it, it appears to be working but I did notice some kind of hang 
while loading:

NPP_New called
gecko mediaplayer v1.0.4b1
Using player backend of ''
DBUS connection created
Listening to path /control/35389
ARG: id = radiotime_windows_player
ARG: type = application/x-ms-wmp
ARG: width = 1
ARG: height = 1
Window resized
Window resized
GNOME MPlayer v1.0.4b1
read mplayer config values: vo = xv
embedded in window id 0x16014a9
Running with GIO support
Using audio device: Internal Audio Analog Stereo (PulseAudio)
Using MPlayer Software Volume control
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
Sending Open 
http://stream.radiotime.com/listen.stream?streamId=522557&rti=dE5yGQIzfxg4eh0pEw
lIQFYkVxhVWxF5VxFDQF4QHU0TGCpwMQMNEAtVdmAERVI0QB5MXF5aCGESGB0kHU1YFAcWDE08HVIpB0
QFVFpXYgMZYBoS%7e%7e%7e to connection 0x7fb62f310260
item->hrefid = 0 item->src = 
http://stream.radiotime.com/listen.stream?streamId=522557&rti=dE5yGQIzfxg4eh0pEw
lIQFYkVxhVWxF5VxFDQF4QHU0TGCpwMQMNEAtVdmAERVI0QB5MXF5aCGESGB0kHU1YFAcWDE08HVIpB0
QFVFpXYgMZYBoS%7e%7e%7e
Sending SetProgressText to connection 0x7fb62f310260
Sending SetURL to connection 0x7fb62f310260
opening 
http://stream.radiotime.com/listen.stream?streamId=522557&rti=dE5yGQIzfxg4eh0pEw
lIQFYkVxhVWxF5VxFDQF4QHU0TGCpwMQMNEAtVdmAERVI0QB5MXF5aCGESGB0kHU1YFAcWDE08HVIpB0
QFVFpXYgMZYBoS%7e%7e%7e
playlist detection = 0
adding 
http://stream.radiotime.com/listen.stream?streamId=522557&rti=dE5yGQIzfxg4eh0pEw
lIQFYkVxhVWxF5VxFDQF4QHU0TGCpwMQMNEAtVdmAERVI0QB5MXF5aCGESGB0kHU1YFAcWDE08HVIpB0
QFVFpXYgMZYBoS%7e%7e%7e to playlist (cancel = 0)
playing - 
mmshttp://stream.radiotime.com/listen.stream?streamId=522557&rti=dE5yGQIzfxg4eh0
pEwlIQFYkVxhVWxF5VxFDQF4QHU0TGCpwMQMNEAtVdmAERVI0QB5MXF5aCGESGB0kHU1YFAcWDE08HVI
pB0QFVFpXYgMZYBoS%7e%7e%7e
is playlist 0
playing - 
mmshttp://stream.radiotime.com/listen.stream?streamId=522557&rti=dE5yGQIzfxg4eh0
pEwlIQFYkVxhVWxF5VxFDQF4QHU0TGCpwMQMNEAtVdmAERVI0QB5MXF5aCGESGB0kHU1YFAcWDE08HVI
pB0QFVFpXYgMZYBoS%7e%7e%7e
is playlist 0
in media state change with state = 1
setting up mplayer
/usr/bin/mplayer -profile gnome-mplayer -vo xv -vf-add screenshot -ao pulse::0 
-channels 2 -af-add export=/tmp/mplayer-af_exportuatoqe:512 -quiet -slave 
-noidle -noconsolecontrols -nostop-xscreensaver -identify -volume 100 -softvol 
-osdlevel 0 -delay 0.000000 -subdelay 0.000000 -subpos 0 -sub-fuzziness 0 -wid 
0x5000040 -brightness 0 -contrast 0 -hue 0 -saturation 0 -nomsgcolor 
-nomsgmodule -nokeepaspect -ass -embeddedfonts -ass-font-scale 1.00 -ass-color 
ffffff00 -cache 512 
mmshttp://stream.radiotime.com/listen.stream?streamId=522557&rti=dE5yGQIzfxg4eh0
pEwlIQFYkVxhVWxF5VxFDQF4QHU0TGCpwMQMNEAtVdmAERVI0QB5MXF5aCGESGB0kHU1YFAcWDE08HVI
pB0QFVFpXYgMZYBoS%7e%7e%7e 
MPlayer SVN-r33569-4.5.2 (C) 2000-2011 MPlayer Team
ERROR: mplayer: could not open config files /home/kyle/.lircrc and 
/etc/lirc/lirc/lircrc
ERROR: mplayer: No such file or directory
ERROR: Failed to read LIRC config file ~/.lircrc.

Playing 
mmshttp://stream.radiotime.com/listen.stream?streamId=522557&rti=dE5yGQIzfxg4eh0
pEwlIQFYkVxhVWxF5VxFDQF4QHU0TGCpwMQMNEAtVdmAERVI0QB5MXF5aCGESGB0kHU1YFAcWDE08HVI
pB0QFVFpXYgMZYBoS%7e%7e%7e.
STREAM_ASF, URL: 
mmshttp://stream.radiotime.com/listen.stream?streamId=522557&rti=dE5yGQIzfxg4eh0
pEwlIQFYkVxhVWxF5VxFDQF4QHU0TGCpwMQMNEAtVdmAERVI0QB5MXF5aCGESGB0kHU1YFAcWDE08HVI
pB0QFVFpXYgMZYBoS%7e%7e%7e
Resolving stream.radiotime.com for AF_INET...
Connecting to server stream.radiotime.com[69.12.18.165]: 80...

Stream not seekable!

Playing mms://live.cumulusstreaming.com/KTCK-AM.
STREAM_ASF, URL: mms://live.cumulusstreaming.com/KTCK-AM
Resolving live.cumulusstreaming.com for AF_INET...
Connecting to server live.cumulusstreaming.com[216.234.4.7]: 1755...

Connected
file object, packet length = 1518 (1518)
ERROR: unknown object
stream object, stream ID: 1
ERROR: unknown object
stream object, stream ID: 2
ERROR: unknown object
data object
ERROR: unknown object
mmst packet_length = 1518
Cache size set to 512 KBytes
Cache fill: 19.22% (100745 bytes)   

ASF file format detected.
ID_AUDIO_ID=1
[asfheader] Audio stream found, -aid 1
ID_FILENAME=mms://live.cumulusstreaming.com/KTCK-AM
ID_DEMUXER=asf
ID_AUDIO_FORMAT=353
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_START_TIME=1340323.33
ID_LENGTH=0.00
ID_SEEKABLE=0
ID_CHAPTERS=0
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 1 ch, s16le, 32.0 kbit/4.54% (ratio: 4003->88200)
ID_AUDIO_BITRATE=32024
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=1
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
[export] Exporting to file: /tmp/mplayer-af_exportuatoqe
[export] Memory mapped to file: /tmp/mplayer-af_exportuatoqe (0x7f2932dfc000)
[export] Exporting to file: /tmp/mplayer-af_exportuatoqe
[export] Memory mapped to file: /tmp/mplayer-af_exportuatoqe (0x7f2932dfc000)
AO: [pulse] 44100Hz 1ch s16le (2 bytes per sample)
[export] Exporting to file: /tmp/mplayer-af_exportuatoqe
[export] Memory mapped to file: /tmp/mplayer-af_exportuatoqe (0x7f2932dfc000)
[export] Exporting to file: /tmp/mplayer-af_exportuatoqe
[export] Memory mapped to file: /tmp/mplayer-af_exportuatoqe (0x7f2932dfc000)
ID_AUDIO_CODEC=ffwmav2
[Mixer] No hardware mixing, inserting volume filter.
[export] Exporting to file: /tmp/mplayer-af_exportuatoqe
[export] Memory mapped to file: /tmp/mplayer-af_exportuatoqe (0x7f2932dfc000)
[export] Exporting to file: /tmp/mplayer-af_exportuatoqe
[export] Memory mapped to file: /tmp/mplayer-af_exportuatoqe (0x7f2932dfc000)
Video: no video
in media state change with state = 1
Starting playback...
NOTE: child process received `Goodbye', closing down
NOTE: child process received `Goodbye', closing down

The "ERROR: unknown object" is likely the data stream (i.e. song titles and 
whatever) that ffmpeg doesn't have support for at this time, but I don't know 
if that's the cause of the hang, I'll try to find a station that's just a pure 
audio stream without data.

Original comment by kyl...@gmail.com on 7 Jun 2011 at 5:02

GoogleCodeExporter commented 8 years ago
While looking for one, I came across a potential issue with playlist (the 
station's dynamic playlist file) within a playlist (our listen.stream file) 
stations like BBC Radio 1 and 3FM, can you check it out:

http://tunein.com/tuner/?StationId=24939&StreamId=969066&debug=1

http://tunein.com/tuner/?StationId=6707&StreamId=1783387&debug=1

On a side note, I think my suspicions about the data thing is right, the 
following station has no data stream and plays without the small hang:
http://tunein.com/tuner/?StationId=2320&StreamId=975550&debug=1

Original comment by kyl...@gmail.com on 7 Jun 2011 at 5:11

GoogleCodeExporter commented 8 years ago
I think the BBC and 3FM issues are actually mplayer errors, I was able to pull 
the stream URL out and debug it this way.

mplayer 
"http://stream.radiotime.com/listen.stream?streamId=1783387&rti=dihyG20zPx4RXxF3
Dx1dSltyR0oTRBN7QxVCFUNIJgcRTkchawNZDAZVcCsQRgQzCwdPWFJDRGoXTFVyTB4ARAUWXXRqGAVH
BUIEUltWYQM%3d%7e%7e%7e"
MPlayer SVN-r33571-4.6.0 (C) 2000-2011 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 
http://stream.radiotime.com/listen.stream?streamId=1783387&rti=dihyG20zPx4RXxF3D
x1dSltyR0oTRBN7QxVCFUNIJgcRTkchawNZDAZVcCsQRgQzCwdPWFJDRGoXTFVyTB4ARAUWXXRqGAVHB
UIEUltWYQM%3d%7e%7e%7e.
Resolving stream.radiotime.com for AF_INET6...

Couldn't resolve name for AF_INET6: stream.radiotime.com
Resolving stream.radiotime.com for AF_INET...
Connecting to server stream.radiotime.com[69.12.18.165]: 80...

Cache size set to 320 KBytes
Cache fill:  0.00% (0 bytes)   Stream not seekable!
Cache fill:  0.05% (153 bytes)   

Invalid seek to negative position ffffffffffffffff!

Exiting... (End of file)

Original comment by kdeko...@gmail.com on 7 Jun 2011 at 5:39

GoogleCodeExporter commented 8 years ago
Yeah, I think mplayer has problems with their playlist parser and lacks support 
of playlist within playlist as I was able to get a step further with the 
-playlist flag before the listen.stream url. But there's no way of specifying 
that what's inside that playlist is another playlist. Since both NPO 
(Netherland's public broadcaster) and BBC use dynamic playlists to detect your 
location and deliver an appropriate stream we cannot parse it on behalf of 
users like we usually do for many other stations. (In a perfect world mplayer 
would be able to detect playlists automatically without requiring the flag)

Is there anyway you can create your own parser to replace their's for the 
plugin (or gnome-mplayer) or is this something that has to be done on mplayer's 
end of things?

Original comment by kyl...@gmail.com on 7 Jun 2011 at 6:04

GoogleCodeExporter commented 8 years ago
Doesn't matter if I parse it, mplayer still won't play it... there is a parser 
built into gecko-mediaplayer that should parse these files, not sure why it 
isn't at this point, but since mplayer can't play the file even when we parse 
down to it, the point is kinda moot.

mplayer "mms://quint08.omroep.nl/npo_3fm-bb-public?/npo/3fm-bb
> &md5=832b10bde3f3ea6a38dc52de9ac6470d&t=4dee6bf2"
MPlayer SVN-r33571-4.6.0 (C) 2000-2011 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing mms://quint08.omroep.nl/npo_3fm-bb-public?/npo/3fm-bb
&md5=832b10bde3f3ea6a38dc52de9ac6470d&t=4dee6bf2.
STREAM_ASF, URL: mms://quint08.omroep.nl/npo_3fm-bb-public?/npo/3fm-bb
&md5=832b10bde3f3ea6a38dc52de9ac6470d&t=4dee6bf2
Resolving quint08.omroep.nl for AF_INET6...

Couldn't resolve name for AF_INET6: quint08.omroep.nl
Resolving quint08.omroep.nl for AF_INET...
Connecting to server quint08.omroep.nl[145.58.33.167]: 1755...

Connected
unknown object
file object, packet length = 8000 (8000)
unknown object
unknown object
stream object, stream ID: 2
unknown object
data object
mmst packet_length = 8000
Cache size set to 64 KBytes
Cache fill:  7.64% (5005 bytes)   read error:: Resource temporarily unavailable
pre-header read failed
Stream not seekable!
Cache fill: 19.84% (13005 bytes)   Everything done. Thank you for downloading a 
media file containing proprietary and patented technology.
Stream not seekable!
Cache fill: 19.84% (13005 bytes)   Everything done. Thank you for downloading a 
media file containing proprietary and patented technology.
unknown command 20
get_media_packet error : Resource temporarily unavailable
Invalid RTSP packet size, giving up.
Invalid RTSP packet size, giving up.
missing signature
get_media_packet error : Resource temporarily unavailable
missing signature
get_media_packet error : Resource temporarily unavailable
Invalid RTSP packet size, giving up.
missing signature
get_media_packet error : Resource temporarily unavailable
missing signature
get_media_packet error : Resource temporarily unavailable
missing signature
get_media_packet error : Resource temporarily unavailable
Cache fill: 19.84% (13005 bytes)   

ASF file format detected.
[asfheader] Video stream found, -vid 2
Cache not filling, consider increasing -cache and/or -cache-min!

MPlayer interrupted by signal 2 in module: enable_cache

MPlayer interrupted by signal 2 in module: demux_open
read error:: Interrupted system call
Command data read failed.
ASF: No video stream found.
No stream found.

Exiting... (End of file)

Original comment by kdeko...@gmail.com on 7 Jun 2011 at 6:24

GoogleCodeExporter commented 8 years ago
NPO (3FM) uses tokens so after you parse the playlist you only have about 5 
minutes to start playing the direct url which is probably why you weren't able 
to connect when you tested with the direct url. I'm able to play it, have you 
tried the following:

mplayer -playlist http://livestreams.omroep.nl/npo/3fm-bb

mplayer -playlist http://livestreams.omroep.nl/npo/3fm-bb
Resolving livestreams.omroep.nl for AF_INET...
Connecting to server livestreams.omroep.nl[145.58.33.79]: 80...

STREAM_ASF, URL: http://livestreams.omroep.nl/npo/3fm-bb
Resolving livestreams.omroep.nl for AF_INET...
Connecting to server livestreams.omroep.nl[145.58.33.79]: 80...

size_confirm mismatch!: 22611 28271
Error while parsing chunk header
Failed, exiting.
Resolving livestreams.omroep.nl for AF_INET...
Connecting to server livestreams.omroep.nl[145.58.33.79]: 80...

Cache size set to 320 KBytes
Stream not seekable!
MPlayer SVN-r33569-4.5.2 (C) 2000-2011 MPlayer Team
mplayer: could not open config files /home/kyle/.lircrc and 
/etc/lirc/lirc/lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.

Playing 
mms://quint06.omroep.nl/npo_3fm-bb-public?/npo/3fm-bb&md5=8148b0cd41a5f4ccf027a0
8a0c182842&t=4dee6f5f.
STREAM_ASF, URL: 
mms://quint06.omroep.nl/npo_3fm-bb-public?/npo/3fm-bb&md5=8148b0cd41a5f4ccf027a0
8a0c182842&t=4dee6f5f
Resolving quint06.omroep.nl for AF_INET...
Connecting to server quint06.omroep.nl[145.58.33.165]: 1755...

Connected
unknown object
unknown object
file object, packet length = 8223 (8223)
unknown object
stream object, stream ID: 1
unknown object
unknown object
data object
mmst packet_length = 8223
Cache size set to 320 KBytes
Cache fill: 16.61% (54424 bytes)   

ASF file format detected.
[asfheader] Audio stream found, -aid 1
Clip info:
 title: 3FM Serious Radio
 author: NPO
 copyright: NPO 2010 (c)
 comments: 3FM Serious Radio
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:3897563.8 (1082:39:23.6) of 0.0 (unknown)  0.7% 17% 

MPlayer interrupted by signal 2 in module: play_audio

MPlayer interrupted by signal 2 in module: enable_cache
A:3897563.8 (1082:39:23.6) of 0.0 (unknown)  0.7% 17% 

This is a different stream from another host Abacast:
mplayer -playlist http://asx.abacast.com/whurdc-whur-64.asx
Resolving asx.abacast.com for AF_INET...
Connecting to server asx.abacast.com[50.16.85.244]: 80...

STREAM_ASF, URL: http://asx.abacast.com/whurdc-whur-64.asx
Resolving asx.abacast.com for AF_INET...
Connecting to server asx.abacast.com[50.16.85.244]: 80...

size_confirm mismatch!: 22611 28271
Error while parsing chunk header
Failed, exiting.
Resolving asx.abacast.com for AF_INET...
Connecting to server asx.abacast.com[50.16.85.244]: 80...

Cache size set to 320 KBytes
Resolving asx.abacast.com for AF_INET...
Connecting to server asx.abacast.com[50.16.85.244]: 80...

Server returns 416: Requested Range Not Satisfiable
nop_streaming_read error : Bad file descriptor
MPlayer SVN-r33569-4.5.2 (C) 2000-2011 MPlayer Team
mplayer: could not open config files /home/kyle/.lircrc and 
/etc/lirc/lirc/lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.

Playing http://madison.wm-live.abacast.com/whurdc-whur-64.
Resolving madison.wm-live.abacast.com for AF_INET...
Connecting to server madison.wm-live.abacast.com[216.218.147.58]: 80...

STREAM_ASF, URL: http://madison.wm-live.abacast.com/whurdc-whur-64
Resolving madison.wm-live.abacast.com for AF_INET...
Connecting to server madison.wm-live.abacast.com[216.218.147.58]: 80...
Resolving madison.wm-live.abacast.com for AF_INET...
Connecting to server madison.wm-live.abacast.com[216.218.147.58]: 80...

Cache size set to 320 KBytes
Cache fill: 18.78% (61525 bytes)   

ASF file format detected.
[asfheader] Audio stream found, -aid 1
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 32000 Hz, 2 ch, s16le, 32.0 kbit/3.12% (ratio: 4000->128000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [pulse] 32000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:497618.0 (138:13:37.9) of 0.0 (unknown)  0.3% 16% 

MPlayer interrupted by signal 2 in module: key_events

MPlayer interrupted by signal 2 in module: enable_cache
nop_streaming_read error : Interrupted system call
Error while reading network stream.
Stream not seekable!
A:497618.0 (138:13:38.0) of 0.0 (unknown)  0.3% 16% 

Exiting... (Quit)

The url for our player:
http://tunein.com/tuner/?StationId=29458&StreamId=2521216&debug=1

For some reason mplayer wasn't able to handle the BBC url:
http://www.bbc.co.uk/radio/listen/live/r1.asx

Original comment by kyl...@gmail.com on 7 Jun 2011 at 6:43

GoogleCodeExporter commented 8 years ago
I actually have the 3FM site playing at the moment, I found a couple of tricks 
to make it work. However, I have to pass the correct state to your site. So I 
have to figure out what I need to do still.

Original comment by kdeko...@gmail.com on 7 Jun 2011 at 6:50

GoogleCodeExporter commented 8 years ago
Try SVN of gecko-mediaplayer and gnome-mplayer, BBC still doesn't work, but the 
others do. 

Original comment by kdeko...@gmail.com on 7 Jun 2011 at 7:28

GoogleCodeExporter commented 8 years ago
BBC ended up working after the latest svn.

Original comment by kyl...@gmail.com on 7 Jun 2011 at 7:33

GoogleCodeExporter commented 8 years ago
So all the sites work now?

Original comment by kdeko...@gmail.com on 7 Jun 2011 at 7:37

GoogleCodeExporter commented 8 years ago
Can you check this one out, it's a station that has a preroll, it just loops 
the pre-roll and doesn't advance to the stream:

http://tunein.com/tuner/?StationId=28807&StreamId=1505525&debug=1

Original comment by kyl...@gmail.com on 7 Jun 2011 at 7:55

GoogleCodeExporter commented 8 years ago
Might be a mplayer error... take a look at this log, note how in the last one, 
the position is greater than the stream length.

I posted a message on the mplayer mailing list, so we'll see if there is any 
response on there.

 wget http://www.wfmt.com/res/streaming/live/ad1/ad_b/wfmtMP3web.pls
--2011-06-07 14:10:54--  
http://www.wfmt.com/res/streaming/live/ad1/ad_b/wfmtMP3web.pls
Resolving www.wfmt.com... 66.252.76.60
Connecting to www.wfmt.com|66.252.76.60|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 281 [audio/x-scpls]
Saving to: “wfmtMP3web.pls”

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

2011-06-07 14:10:55 (34.1 MB/s) - “wfmtMP3web.pls” saved [281/281]

[kdekorte@quad ~]$ more wfmtMP3web.pls 
[playlist]
NumberOfEntries=2
File1=http://wttw.vo.llnwd.net/o16/wfmt/live/ad1/ad_b/noyesB1209.mp3
Title1=98.7WFMT Broadcast: Supported by Sponsors and Members
Length1=24
File2=http://wttw.ic.llnwd.net/stream/wttw_wfmt_MP3
Title2=98.7WFMT Live Broadcast
Length2=-1
Version=2
[kdekorte@quad ~]$ mplayer wfmtMP3web.pls 
MPlayer SVN-r33571-4.6.0 (C) 2000-2011 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing wfmtMP3web.pls.
Invalid seek to negative position ffffffffffffffff!

Exiting... (End of file)
[kdekorte@quad ~]$ mplayer -playlist wfmtMP3web.pls 
Unknown entry type Version=2
MPlayer SVN-r33571-4.6.0 (C) 2000-2011 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing http://wttw.vo.llnwd.net/o16/wfmt/live/ad1/ad_b/noyesB1209.mp3.
Resolving wttw.vo.llnwd.net for AF_INET6...

Couldn't resolve name for AF_INET6: wttw.vo.llnwd.net
Resolving wttw.vo.llnwd.net for AF_INET...
Connecting to server wttw.vo.llnwd.net[68.142.123.254]: 80...

Cache size set to 320 KBytes
Cache fill: 13.62% (44621 bytes)   

Cache not filling, consider increasing -cache and/or -cache-min!
Cache not filling, consider increasing -cache and/or -cache-min!
Resolving wttw.vo.llnwd.net for AF_INET6...
Audio only file format detected.
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   0.0 (00.0) of 16.0 (16.0) ??,?% 80% 
Couldn't resolve name for AF_INET6: wttw.vo.llnwd.net
Resolving wttw.vo.llnwd.net for AF_INET...
Connecting to server wttw.vo.llnwd.net[68.142.122.70]: 80...
A:  22.9 (22.8) of 16.0 (16.0)  0.3% 45% 

MPlayer interrupted by signal 2 in module: play_audio

MPlayer interrupted by signal 2 in module: enable_cache
A:  23.1 (23.0) of 16.0 (16.0)  0.3% 44% 

Exiting... (Quit)

Original comment by kdeko...@gmail.com on 7 Jun 2011 at 8:17

GoogleCodeExporter commented 8 years ago
On a related note, you can declare issue 140 fixed too.

Original comment by kyl...@gmail.com on 8 Jun 2011 at 4:53

GoogleCodeExporter commented 8 years ago
Issue 140 has been merged into this issue.

Original comment by kdeko...@gmail.com on 8 Jun 2011 at 5:06

GoogleCodeExporter commented 8 years ago
The preroll on this site has been fixed with mplayer svn r33620

http://tunein.com/tuner/?StationId=28807&StreamId=1505525&debug=1

Original comment by kdeko...@gmail.com on 15 Jun 2011 at 7:42

GoogleCodeExporter commented 8 years ago
Can you check the Quicktime implementation, I'm not 100% familiar with how it 
works but I see similar script errors:

http://tunein.com/tuner/?StationId=30358&debug=1

Original comment by kyl...@gmail.com on 20 Aug 2011 at 10:28

GoogleCodeExporter commented 8 years ago
I'm debating if we should leave this issue closed or reopen it. The QuickTime 
interface is limited as well, so I'm assuming we'll need to add extra 
functionality to cover the missing functions.

Original comment by kdeko...@gmail.com on 21 Aug 2011 at 2:47

GoogleCodeExporter commented 8 years ago
Do you have a setup to compare the windows output with the linux one or should 
I provide logs of both?

Original comment by kyl...@gmail.com on 21 Aug 2011 at 2:59