Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18174] iOS: Ti.Media.Sound does not work in iOS 8.2 beta

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-12-15T07:50:06.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-3.5.0
ReporterVisalakshi Chidambaram
AssigneeEric Merriman
Created2014-12-10T09:36:25.000+0000
Updated2017-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

FileDateSize
cricket.wav2014-12-10T09:36:25.000+000080923

Comments

  1. Chee Kiat Ng 2014-12-15

    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.
  2. Lee Morris 2017-03-31

    Closing ticket as "Cannot Reproduce", if you encounter any further problems please file a new ticket.

JSON Source