android - Playing Sound in titanium Error is function not found -


In the form of I sound files are in perfect place so I do not know what is going wrong I started with this I am so thanked for so much help. // Level 1 page var win = Titanium.UI.currentWindow; var tab = titanium. U.CurrentTab; Var leveloneview = Ti.UI.createView ({width: '100%', height: '100%', background color: 'blue',}); Var tile1 = Ti.UI.createImageView ({Bottom: '100', Width: '100', Height: '100', Image: "images / pirate-icon.png",}); Var tile2 = Ti.UI.createImageView ({left: '50', bottom: '100', width: '100', height: '100', image: "images / pirate-icon.png",}); Var tile3 = Ti.UI.createImageView ({true: '50', bottom: '100', width: '100', height: '100', image: "picture / pirate-icon .png",}); Var sound = titanium.media Sequet ({url: 'sounds / wheres_me_rum.mp3', preload: true}); Var button = Ti.UI.createButton ({title: 'Click to play sound', width: '200', height: '40', top: 20, align: 'center',}); button. AddEventListener ('click', function (e) {sound.play ();}); Leveloneview.add (tile1); Leveloneview.add (tile2); Leveloneview.add (tile3); Leveloneview.add (button); Win.add (leveloneview);

  Unkit type error: undefined is not a function at /index.html ( Line 6080)   

Ti.Media.Sound is not supported on mobile web for supported platforms.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -