Public bug reported:

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

** Affects: apparmor-easyprof-ubuntu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1393318

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

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to