[TIMOB-18174] iOS: Ti.Media.Sound does not work in iOS 8.2 beta
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-12-15T07:50:06.000+0000 |
Affected Version/s | Release 3.5.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | qe-3.5.0 |
Reporter | Visalakshi Chidambaram |
Assignee | Eric Merriman |
Created | 2014-12-10T09:36:25.000+0000 |
Updated | 2017-03-31T22:46:35.000+0000 |
Description
The sound files do not play in iOS 8.2 beta but works as expected with iOS 8.1. When the sdk versions are reverted to the older versions, the sound files still do not work on iOS 8.2 beta.
Steps to reproduce:
1. Create a sample classic project and replace app.js with the following:
var win = Titanium.UI.createWindow({
backgroundColor: '#D1D1D1',
navBarHidden: false,
fullscreen: false
});
var button1 = Ti.UI.createButton({
title: 'play sound',
width: 300,
height: 50,
top:50
});
var button2 = Ti.UI.createButton({
title: 'play sound from 1 sec',
width: 300,
height: 50,
top:150
});
win.add(button1);
win.add(button2);
var sound;
var url;
button1.addEventListener("click", playNext);
function playNext() {
url = 'cricket.wav';
sound = Ti.Media.createSound({
url : url
});
sound.play();
};
button2.addEventListener("click", playNext2);
function playNext2() {
url = 'cricket.wav';
sound = Ti.Media.createSound({
url : url,
volume: 1.0,
time: 3000
});
sound.play();
};
win.open();
and include the attached sound file under resources of the created project
2. Click on 'play sound' button
Actual results:
2. No sound
Expected results:
2. A cricket sound should be played.
Attachments
File | Date | Size |
---|---|---|
cricket.wav | 2014-12-10T09:36:25.000+0000 | 80923 |
Unable to reproduce this. Sound still works in iOS 8.2, Xcode 6.2 Beta 2 with latest SDK, (3_5_X), on simulator as well as device.
Closing ticket as "Cannot Reproduce", if you encounter any further problems please file a new ticket.