Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19805] KitchenSink: Remote url , sound doesn't play on android.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2017-05-02T20:41:42.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterAngel Petkov
AssigneeAshraf Abu
Created2015-10-27T21:08:19.000+0000
Updated2017-05-02T20:41:42.000+0000

Description

var win = Titanium.UI.createWindow({ title : "test" }), isIOS = Titanium.Platform.name === 'iPhone OS', isAndroid = Ti.Platform.name === 'android', isTizen = Ti.Platform.osname === 'tizen'; var timob7502fix = ((Ti.version >= '3.0.0') && (Titanium.Platform.name == 'iPhone OS')); var url = "http://www.archive.org/download/CelebrationWav/1.wav"; // On iOS, loading remote url takes time and blocks window opening. // Set the url after the window opens on iOS. var sound = Titanium.Media.createSound({ url : url }); // Show Actvity Indicator when loading the remote url. var actInd = Titanium.UI.createActivityIndicator({ bottom : 10, style : Titanium.UI.ActivityIndicatorStyle.DARK, message : "Loading URL ..." }); win.add(actInd); actInd.show(); win.addEventListener('open', function() { actInd.hide(); }); // // PLAY // var play = Titanium.UI.createButton({ title : 'Play', height : 40, width : 145, left : 10, top : 10 }); play.addEventListener('click', function() { sound.play(); }); win.add(play); win.open();

Comments

  1. Hans Knöchel 2015-12-26

    The issue is linked to be autolayout related. Since autolayout is iOS only, this might be independent from that.
  2. Lee Morris 2017-05-02

    Resolving ticket as Invalid as there is now a new version of Kitchen Sink available and we no longer support the version which relates to this ticket.

JSON Source