← Back to team overview

touch-packages team mailing list archive

[Bug 1393318] Re: Media-Hub can't play a file (*.mp3) downloaded with DownloadManager 0.1

 

The security policy is correctly denying access to the global
mediascanner database so I'm going to reassign this to media-hub for
now.

** Package changed: apparmor-easyprof-ubuntu (Ubuntu) => media-hub
(Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor-easyprof-ubuntu
in Ubuntu.
https://bugs.launchpad.net/bugs/1393318

Title:
  Media-Hub can't play a file (*.mp3) downloaded with DownloadManager
  0.1

Status in media-hub package in Ubuntu:
  New

Bug description:
  When download *.mp3 file with DownloadManager 0.1,  can't play it with MediaPlayer.
  The error in media-hub is: Client denied access to open_uri()

  the code:

                  Rectangle {
                      width: parent.width
                      height: units.gu(20)
                      TextField {
                          id: text
                          text: "http://www.everyayah.com/data/Ghamadi_40kbps/001001.mp3";
                          height: 50
                          anchors {
                              left: parent.left
                              right: button.left
                              rightMargin: units.gu(2)
                          }
                      }
                      Button {
                          id: button
                          text: "Download"
                          height: 50
                          anchors.right: parent.right
                          onClicked: {
                              single.download(text.text);
                          }
                      }
                      ProgressBar {
                          minimumValue: 0
                          maximumValue: 100
                          value: single.progress
                          anchors {
                              left: parent.left
                              right: parent.right
                              bottom: parent.bottom
                          }
                          SingleDownload {
                              id: single
                          }
                      }
                  }

                MediaPlayer{
                     id: playSound
                 }

                  Button {
                      text:"Play file Downloaded"
                      onClicked: {
                          playSound.source= "/home/phablet/.local/share/ubuntu-download-manager/com.ubuntu.developer.myApp/Downloads/001001.mp3"

                          playSound.play()

  
                      }
                  }

  When click on the Button ("Play file Downloaded") le file is not
  playing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/media-hub/+bug/1393318/+subscriptions


References