Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-17078

BlackBerry: Can't play local files using createSound function

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 3.3.0
    • Fix Version/s: None
    • Component/s: BlackBerry
    • Labels:
    • Environment:
    • Sprint:
      2014 Sprint 11 SDK

      Description

      Description

      Local files do not play on a BlackBerry device, however files from over a network do play.

      Steps To Reproduce

      1. Create a BlackBerry project
      2. Add the following to your app.js

      var win = Titanium.UI.createWindow({ title:'Sounds Test', backgroundColor:'#fff', layout:"vertical" });
       
      var playerExt = Ti.Media.createSound({ url: 'http://www.wav-sounds.com/vehicle/ferrari250.wav' });
      var playSoundExt = Titanium.UI.createButton({ title:'External Sound File', top:10 });
      playSoundExt.addEventListener('click',function(e){ playerExt.play(); });
       
      var playerInt = Ti.Media.createSound({ url: 'path/to/local/file.mp3' });
      var playSoundInt = Titanium.UI.createButton({ title:'Local Sound File', top:10 });
      playSoundInt.addEventListener('click',function(e){ playerInt.play(); });
       
      win.add(playSoundExt);
      win.add(playSoundInt);
      win.open();
      

      3. Change playerInt variable to link to a local file
      4. Run on device

      Expected Result

      External Button should play a car sound
      Internal Button should play your local sound

      Actual Result

      External Button plays fine
      Internal Button does not play

        Attachments

          Activity

            People

            • Assignee:
              penrique Pedro Enrique (Inactive)
              Reporter:
              sdowse Samuel Dowse
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-18792
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration