Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17078] BlackBerry: Can't play local files using createSound function

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-06-05T17:56:56.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsBlackBerry
Labelsqe-3.3.0
ReporterSamuel Dowse
AssigneePedro Enrique
Created2014-06-04T23:25:46.000+0000
Updated2017-03-09T21:44:34.000+0000

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

Comments

  1. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source