Media Player problem

Hi, I'm trying to get a MediaPlayer to work playing a video, but I am struck some path issues (perhaps?):

To start, I simply modified the sample application 'filepicker' to get the path to the video file. Once I have the way, I updated the sourceUrl in the MediaPlayer and call the play() function but I get the following error:

Oct 11 18:42:37.830 com.example.bb10samples.pickers.filepicker.testDev__filepicker2.35016910.0 qt-msg 0 START 1 MediaPlayerPrivate::
lastError
Oct 11 18:42:37.830 com.example.bb10samples.pickers.filepicker.testDev__filepicker2.35016910.0 qt-msg 0 => END 1 ( 0 ms):
Oct 11 18:42:37.830 com.example.bb10samples.pickers.filepicker.testDev__filepicker2.35016910.0 qt-msg 0 MediaPlayer::prepare: Error
attaching input source. url=QUrl("file:///accounts/1000/shared/camera/VID_00000001.mp4") , error= SourceUnavailable
Oct 11 18:42:37.830 com.example.bb10samples.pickers.filepicker.testDev__filepicker2.35016910.0 qt-msg 0 => END 1 ( 13 ms):
Oct 11 18:42:37.830 com.example.bb10samples.pickers.filepicker.testDev__filepicker2.35016910.0 qt-msg 0 MediaPlayer::play: Unable to
prepare the player
Oct 11 18:42:37.830 com.example.bb10samples.pickers.filepicker.testDev__filepicker2.35016910.0 qt-msg 0 => END 1 ( 13 ms):

Here is my config of MediaPlayer:

MediaPlayer {
            id: myPlayer
            // The file to play.
            sourceUrl: "/path/to/media.mp4"       

            // Use the device's primary display to
            // show the video.
            videoOutput: VideoOutput.PrimaryDisplay

            // The ID of the ForeignWindow control to
            // use as the rendering surface.
            windowId: videoControl.windowId
        }

Here's the code for ForeignWindowControl:

ForeignWindowControl {
            id: videoControl
            windowId: "myVideoSurface"
            updatedProperties:
                WindowProperty.Size | WindowProperty.Position | WindowProperty.Visible
            visible: boundToWindow
            preferredWidth: 1280
            preferredHeight: 768
        }

And adding the button to play the selected video file:

// The 'Play Video' button
            Button {
                horizontalAlignment: HorizontalAlignment.Center
                topMargin: 100

                text: qsTr ("Play Video")
                onClicked: {
                    myPlayer.sourceUrl = picker.selectedFile;
                    myPlayer.play()
                }
            }

Anyone has an idea what is?

Thank you

You specify the permission of "access_shared" in your file of bar - descriptor.xml? Without this, your application cannot read, write, or otherwise access the files in the share / files.

See https://developer.blackberry.com/cascades/documentation/device_platform/filesystem/ and https://developer.blackberry.com/native/beta/documentation/com.qnx.doc.native_sdk.devguide/com.qnx.d...

Tags: BlackBerry Developers

Similar Questions

  • Satellite P300: Microsoft Windows Media Player problems

    Hi, I have trouble getting all the sounds of WMP 11 after about 10-15 seconds. I can get sound for 10 seconds and then no sound, but WMP still continues to play. Same thing when you try headphones. I have no trouble hearing my TV modem sounds and other sounds of Windows (I have recently changed from 32 to 64-bit one no problem with sound)

    My laptop is a Toshiba P300/05Y, P7450, 4 GB of Ram with Windows Vista SP2 x 64 installed. In Device Manager I have drivers listed as Conexant High Definintion SmartAudio 221 and high definition Audio Device (I think this one is for the HDMI output) (there is also a 71st Pinnacle PCTV which is for my modem TV).

    I checked the two audio devices are up-to-date with WMP11 - all of which are. What else can I check to get WMP works again? Oh yes, I use the media through the media player (although I did try and play music over there just to see if it made a difference, but not the question)

    Just a question:
    Have you noticed same problem using another player like WinAmp?

    I just want to understand if there is a sound problem general or simply associated with WMP 11.
    Is that what you have installed this update?
    Did you also install the codecs or codec package such as K-lite

  • Y570 Windows media player problem

    Hi guys...

    Recently I bought Lenovo Y570.

    But I am facing problem with the playback of the media through windows media player.

    Audio / video that plays automatically stops and I have to press play to resume playback.

    It is sometimes quite irritating.

    Sometimes, listening to a playlist, the song gets skipped automatically and the next song starts.

    What could be the problem?

    I installed the Spider & VLC player media player, but I don't face above problems during playback of audio / video on them.

    Edit: just now, I was playing a piece and he pauses automatically. I did not worth playing again. But after a few minutes, he started to play again.

    So, basically, it's like some ghosts control my windows media - play, pause, skip song player.

    I couldn't find a similar problem on the internet. Help, please. I want Media Player since it sounds better than the spider.

    You have Lenovo RIC in your system tray? If you do, you have the auto-DJ turned on. Go to the menu "assistant" and turn it off.

    You can disable this "feature" in your menu.

    DragonRider

  • Real player and Media Player problems

    1. Media player never worked since graduating from my new office.

    2. real player worked but would be constantly closed.  I send many problems to microsoft, but nothing have heard back.

    3. I removed Real player and reloaded the latest version and it won't work at all.  Says that my system is incompatible with it.

    Hello

    Contact Real Player Support for problems with Real Player.

    https://real.custhelp.com/

    "Media Player never worked since graduating from my new desktop PC"

    For problems with Media Player, we need information from you.

    1. what operating system do you use?

    2. what version number of Media Player do you use?

    3. what error messages you get?

    See you soon.

  • Windows Media Player problem-CD burning.

    The past 2 CD I burned using Windows Media won't play in my boombox/stereo. The meter moves forward as if playing but there is no sound. It displays only 1 track. What I am doing wrong?

    Hi Linda,.

    Thanks for posting the question in the Microsoft Community!

    You can not use burn CD in Windows Media Player in Boombox.

    To help you better, we need more information.

    What is the format of the files that you are faced with the question with?

    You can also consult the site:

    Burn a CD or DVD in Windows Media Player

    http://Windows.Microsoft.com/en-in/Windows-Vista/burn-a-CD-or-DVD-in-Windows-Media-Player

    Note: This article applies to XP as well.

    If you need any help or if you encounter problems with Windows in the future, let us know and we would be happy to help you.

  • color of Windows media player problem

    The Windows Media Player framework (including the toolbar) changed to dark red color (have not changed the parameters myself) on my desktop (blackish slept on my laptop). and the "color picker" under "improvements" simply does not (it does on my laptop). I've uninstalled and reinstalled WMP without result. Suggestions, please

    I found this solution on an Avast forum (seems as if some Avast users have this problem) and it worked for me.

    Open the dialog box run (twice) and then paste into the pressing next OK after every time:

    regsvr32 jscript.dll

    regsvr32 vbscript.dll

    I did a registry backup first - just in case - but now my WMP is back to normal (black)

  • Error message C00D11B1 with video file Windows media player problems

    I have problems in using Windows Media Player version 11.0.6002.18311 on Vista business.
    I tried to check for any problems with the update of the records, but they look the same to date.
    This problem is only with video files, while with audio files this medication works very well.
    Any help to solve the problem is welcome!
    Thank you

    Agnese

    The following links may be worth a visit:

    (935336) Windows Media Player 11 cannot
    read content protected by DRM on Windows Vista
    http://support.Microsoft.com/kb/935336

    (925705) when you try to use Windows Media
    Player 11 to play a digital rights management
    (DRM) - protected media file media cannot play
    http://support.Microsoft.com/kb/925705

    The security component upgrade
    http://drmlicense.one.Microsoft.com/Indivsite/en/indivit.asp

    Windows Media Player: Mini WMP FAQ
    http://zachd.com/PSS/PSS.html
    (scroll down a bit to the 3rd entry that said: Vista only)

    Windows Media Player error c00d11b1 resolved
    http://Strom.WordPress.com/2007/04/06/Windows-Media-Player-error-C00D11B1-solved/
    (it's a long discussion on the error 0XC00D11B1)

  • Window Media Player problem

    I downloaded many mp3 files on my computer and now want to burn CDs.  It is said that this file is not a program associated with it for performing this action.  Create an association in the control panel of link value.  I have absolutely no idea what it this.  A month ago I was not having problem with my Windows media player.  I don't know what to do.  I have Windows Vista.  It came bundled with my computer so I can't uninstall & reinstall.

    I downloaded many mp3 files on my computer and now want to burn CDs.  It is said that this file is not a program associated with it for performing this action.  Create an association in the control panel of link value.  I have absolutely no idea what it this.  A month ago I was not having problem with my Windows media player.  I don't know what to do.  I have Windows Vista.  It came bundled with my computer so I can't uninstall & reinstall.

    Try this...

    Start > default programs > associate a type of file or Protocol with a program > wait for loading > top left, under name, scroll down until you see mp3, click > everywhere, look under current by default, it should say Windows Media Player...
    If it does not say that, click on change program... > in the open with window, select Windows Media Player > click OK
    See the screenshots for illustration...

    Hope this will help.

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • HP pavilion zv6000 - digital media player problem

    My digitial medial player does not read our SD camera card even if the card can be read by a USB SD card reader. We have the same problem with our HP desktop computer digital media player.

    I have download all the updates that I can find for the AMD processor, windows XP Pro, and digital media player.

    We tried several different SD cards but all are bigger then 2 gig I think that's the problem.

    When inserted, the system (Windows XP Pro) simply does not recognize the card.

    Is their a patch of firmware for the digital media player, I'm missing?

    Unfortunately, the maps of more than 2 GB are actually SD - HC, no SD they look alike and have the same form factor, internally, they are quite different.  Although in some cases, an update of the firmware can update a card reader, it is usually not possible (or at least most of the manufacturers do not try), I suspect that your USB card reader is of a more recent vintage than readers integrated computer.

    Unfortunately, your choice is to continue to use the separate drive or stick on SD cards that are generally limited to 2 GB or less.

  • Media Player problem - library not updated

    Hello

    I had a problem with my windows media player - it's are more updates from the music library.
    Initially, the problem was with my i-tunes purchases only. I would like to download - it would save in my music folder - appear in my library of MP - then disappear from the library. He's doing the same trick with CD Ripper using the MP.
    Trobleshooter told me that the files were corrupt but did not say who. Subsequent verifications and bugs says everything was ok, but this is not the problem is still there.
    I have the version 12.0.7601.1754 for Windows 7 WMP12

    The indices of solutions?

    See if that does something positive,

    http://support.Microsoft.com/mats/windows_file_and_folder_diag/

  • Personal media player problem - Windows delayed write failed

    I have a 1 TB Personal Media Drive (hd10000x) which does not with my e9120f machine Pavilion Elite running Windows 7.  When I try to write to the disk using the dedicated Bay or USB connection, he wrote a small number of files (anywhere from 8-100), then an error "the system cannot find the specified file.  In Event Viewer-Windows Logs------system I get thousands of warnings "an error was detected on device \Device\Harddisk6\DR6" and "the system does not have empty data in the transaction log.»  Corruption may occur.

    This is my second personal media player, I had the same problem with the first, and he returned after spending 90 minutes online with the help of HP trying to diagnose the problem (with a friendly assistance technician yet not very knowledgable).  Its best estimate was Norton AntiVirus, but the drive did not work when the machine has been started in Mode safe and AntiVirus software has not loaded.

    The drive works fine with my old Dell laptop Windows XP, but not with my brand new HP desktop computer.  I think that it must be a driver conflict but can't find anything in the forums or elsewhere online.

    Ideas anyone?

    .

    Who seems to have done the trick - thanks

  • Windows Media Player problem - put the sounds of the game to the Unknown Album title

    Howdy again, even to try to fix this thing-figured out some of what's going on.

    Masquerade Vampire loaded on the computer and all the sounds in this game are appearing in Windows Media Player under unknown Album - I have now around 6 000 files in the the album title unknown, including ringtones? - and the recovery album info is non-stop even after preliminary test of fixes for this problem.  Is it possible to separate or to stop the music of games fall into the part unknown Album in Windows Media Player?

    Hello
     
    Glad to know that the problem is solved.
     
     
    Please do not hesitate to answer, in the case where you are facing in the future other problems with Windows.
  • Win 7 Media Player problem

    under Win 7 Home Premium
    Media Player stop working (no error etc.  It just doesn't work anymore)
    I tried all the fixes, I can find on the web and Microsoft sites
    Including disable Media player (via Windows) restart and then turn it back on.  Does NOT work

    Pls help ASAP

    Hi MuffinManRD,

    See if the reconstruction of Media Player cache may resolve the problem. Follow the steps and the link below to do the same thing.

    1. exit Windows Media Player.

    2. If you are running Windows Vista, click Start, click run, type %LOCALAPPDATA%\Microsoft, and then click OK.

    3 select the folder Media Player, and then click delete on the file menu.

    4. restart Windows Media Player.

    Note Windows Media Player automatically rebuilds the database.

    http://support.Microsoft.com/default.aspx/KB/925718

    Important : this article explains the steps on a computer that is running Windows Vista, but it remains valid for Windows 7 as well.

    Varun j: MICROSOFT SUPPORT
    Visit our Microsoft answers feedback Forum
    http://social.answers.Microsoft.com/forums/en-us/answersfeedback/threads/ and tell us what you think

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • set Windows media player problem

    Hello! Recently, I run the advanced system of care on my system. Since that when I reduce media player to the system (in mini player mode) tray, the buttons work fine, but when I click twice, or click the reset button, nothing happens. When I try a right click, it does work as well.

    Hello

    I suggest you to try the SFC scan and check.

    Here is the link:

    http://support.Microsoft.com/kb/310747

  • Windows media player problems

    I downloaded a movie with utorrent.  I was not able to watch it on Windows Media Player.  I can only hear it.  I was our VLC media player.  It is a lot of work but still impossible to burn to CD.  Any suggestions?

    You need a burning software, like Roxio/Nero etc.

    See also: -.

    http://Windows.Microsoft.com/en-us/Windows7/burn-a-DVD-video-disc-with-Windows-DVD-Maker

  • UPGRADE WINDOWS MEDIA PLAYER PROBLEMS

    I HAVE WINDOWS VISTA HOME PREMIUM WITH WINDOWS MEDIA PLAYER VERSION 2007 AND AM TRYING TO UPGRADE TO V.9 OR HIGHER VERSION, BUT ALL FAIL WITH ERRORS OF CONFLICT. ... Help!

    Hi pamarula,

    Windows Vista has Windows media version 11 built the drive in which you cannot move to v9.

    There is no upgrade to higher version of Windows media player for Windows vista.

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for