<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      I am new to Sailfish and can only try to give some hints.<br>
      <br>
      Have you checked if pulse audio is running SYSTEM mode ?<br>
      If so you will need to have an entry like this in
      /etc/pulse/system.pa: <br>
      <br>
      <font face=""Courier New",Courier,monospace">load-module
        module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.1.0/24
        listen="0.0.0.0"</font><br>
      <br>
      <font face=""Courier New",Courier,monospace">If this
        entry is there check the user permissions.</font><br>
      <br>
      The user must be member of : pulse AND pulse-access.<br>
      Hope this helps.<br>
      Ciao<br>
          Matze<br>
      <br>
      Am 12.07.2013 15:02, schrieb Mohammed Hassan:<br>
    </div>
    <blockquote cite="mid:20130712130258.GN10674@home.foolab.org"
      type="cite">
      <pre wrap="">It seems GStreamer pulsesink cannot connect to pulse audio. It then tries a few
other sinks then fails completely.

Unfortunately I do not know why pulseaudio is not working correctly.

Could someone else help here?

Cheers,

On Fri, Jul 12, 2013 at 01:58:33PM +0200, Erlend Boe wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi Mohammed,


Here is the output:

[root@SailfishEmul ~]# GST_DEBUG='*:2' gst-launch-0.10 playbin2 uri=<a class="moz-txt-link-freetext" href="http://download.banshee-project.org/misc/http-test.ogg">http://download.banshee-project.org/misc/http-test.ogg</a>
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:02.769910826  1363 0x6d901860 WARN                   pulse pulsesink.c:540:gst_pulseringbuffer_open_device:<audiosink-actual-sink-pulse> error: Failed to connect: Connection refused
0:00:02.772671188  1363 0x6d901860 WARN                    alsa pulse.c:243:pulse_connect: alsalib error: PulseAudio: Unable to connect: Connection refused

0:00:02.773043893  1363 0x6d901860 WARN                    alsa gstalsasink.c:694:gst_alsasink_open:<audiosink-actual-sink-alsa> error: Could not open audio device for playback.
0:00:02.773357077  1363 0x6d901860 WARN                    alsa gstalsasink.c:694:gst_alsasink_open:<audiosink-actual-sink-alsa> error: Playback open error on device 'default': Connection refused
0:00:02.774327278  1363 0x6d901860 WARN                    oss4 oss4-property-probe.c:374:gst_oss4_property_probe_get_values:<audiosink-actual-sink-oss4> Can't open file descriptor to probe available devices: No such file or directory
0:00:02.774646351  1363 0x6d901860 WARN                oss4sink oss4-sink.c:515:gst_oss4_sink_open:<audiosink-actual-sink-oss4> error: Could not open audio device for playback.
0:00:02.774945041  1363 0x6d901860 WARN                oss4sink oss4-sink.c:515:gst_oss4_sink_open:<audiosink-actual-sink-oss4> error: system error: No such file or directory
0:00:02.775477104  1363 0x6d901860 WARN                     oss gstosssink.c:414:gst_oss_sink_open:<audiosink-actual-sink-oss> error: Could not open audio device for playback.
0:00:02.775756292  1363 0x6d901860 WARN                     oss gstosssink.c:414:gst_oss_sink_open:<audiosink-actual-sink-oss> error: system error: No such file or directory
0:00:02.776149518  1363 0x6d901860 WARN              autodetect gstautoaudiosink.c:370:gst_auto_audio_sink_detect:<audiosink> error: Failed to find a supported audio sink
0:00:02.776486737  1363 0x6d901860 WARN                playsink gstplaysink.c:1906:gen_audio_chain:<playsink0> error: The autoaudiosink element is not working.
ERROR: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0: The autoaudiosink element is not working.
Additional debug info:
gstplaysink.c(1906): gen_audio_chain (): /GstPlayBin2:playbin20/GstPlaySink:playsink0
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
[root@SailfishEmul ~]# 


Regards,
Erlend

On 12.07.2013, at 13:23, Mohammed Hassan <a class="moz-txt-link-rfc2396E" href="mailto:mohammed.hassan@jollamobile.com"><mohammed.hassan@jollamobile.com></a> wrote:

</pre>
        <blockquote type="cite">
          <pre wrap="">On Fri, Jul 12, 2013 at 12:25:56PM +0200, Erlend Boe wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">Hi Mohammed,

sadly it stops working after rebooting the VM. The error that I get in the console is:
(HelloWorld:2291): GLib-GObject-WARNING **: invalid cast from `WebKitWebSrc' to `GstBaseSrc'
** (HelloWorld:2291): CRITICAL **: gst_base_src_is_live: assertion `GST_IS_BASE_SRC (src)' failed
</pre>
          </blockquote>
          <pre wrap="">
That is indeed strange but judging by the error below, it doesn't look
like it's the case.

</pre>
          <blockquote type="cite">
            <pre wrap="">and in the simulator:
[root@SailfishEmul ~]# gst-launch-0.10 playbin2 uri=<a class="moz-txt-link-freetext" href="http://download.banshee-project.org/misc/http-test.ogg">http://download.banshee-project.org/misc/http-test.ogg</a>
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0: The autoaudiosink element is not working.
Additional debug info:
gstplaysink.c(1906): gen_audio_chain (): /GstPlayBin2:playbin20/GstPlaySink:playsink0
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...


</pre>
          </blockquote>
          <pre wrap="">
Could you please try GST_DEBUG='*:2' gst-launch-0.10 playbin2 uri=<a class="moz-txt-link-freetext" href="http://download.banshee-project.org/misc/http-test.ogg">http://download.banshee-project.org/misc/http-test.ogg</a>

It should at least give us some more debugging

Cheers,

</pre>
          <blockquote type="cite">
            <pre wrap="">Regards,
Erlend

On 12.07.2013, at 08:30, Erlend Boe <a class="moz-txt-link-rfc2396E" href="mailto:erlendboe@yahoo.com"><erlendboe@yahoo.com></a> wrote:

</pre>
            <blockquote type="cite">
              <pre wrap="">Hi Mohammed,

after doing "zypper install gst-plugins-good", it now works.
Thanks!

can you confirm that the gst-plugins-good will be part of the next Sailfish release, and will be installed in the shipping product?

Regards,
Erlend

On 11.07.2013, at 17:17, Mohammed Hassan <a class="moz-txt-link-rfc2396E" href="mailto:mohammed.hassan@jollamobile.com"><mohammed.hassan@jollamobile.com></a> wrote:

</pre>
              <blockquote type="cite">
                <pre wrap="">On Thu, Jul 11, 2013 at 01:21:44PM +0000, "Thomas B. Rücker" wrote:
</pre>
                <blockquote type="cite">
                  <pre wrap="">Hi,

On 07/11/2013 12:40 PM, Erlend Boe wrote:
</pre>
                  <blockquote type="cite">
                    <pre wrap="">I tried to play an .ogg audio file using a http url in my application (from qml), but it is not working.
The error message that I get is:
GStreamer; Unable to play - <a class="moz-txt-link-rfc2396E" href="http://upload.wikimedia.org/wikipedia/commons/4/4b/En-us-surname.ogg">"http://upload.wikimedia.org/wikipedia/commons/4/4b/En-us-surname.ogg"</a> 
Error: "No URI handler implemented for "http".

I then saw that also MeeGo once had this problem, bug 1584.
(performing a similar test in the simulator gives the same error as in bug 1584)
</pre>
                  </blockquote>
                  <pre wrap="">
Umm, that's bad and should be fixed. I suppose Mer inherited the build
config from MeeGo.
GStreamer is part of Nemo middleware nowadays and bugs can be filed here:
<a class="moz-txt-link-freetext" href="https://bugs.nemomobile.org/">https://bugs.nemomobile.org/</a>
Once it's fixed there it should automagically also appear in Sailfish as
that uses Nemo MW.
</pre>
                </blockquote>
                <pre wrap="">
It's actually available. You only need to install gst-plugins-good in the
emulator to get http streaming to work.

It seems that nothing is depending on gst-plugins-good thus it never gets
pulled in by default.

Cheers,
_______________________________________________
SailfishOS.org Devel mailing list
</pre>
              </blockquote>
              <pre wrap="">
_______________________________________________
SailfishOS.org Devel mailing list
</pre>
            </blockquote>
            <pre wrap="">
</pre>
          </blockquote>
          <pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list
</pre>
        </blockquote>
        <pre wrap="">
</pre>
      </blockquote>
      <pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list</pre>
    </blockquote>
    <br>
  </body>
</html>