Android 未找到在钛合金中播放声音的错误函数

Android 未找到在钛合金中播放声音的错误函数,android,audio,web,titanium,Android,Audio,Web,Titanium,我有困难只是播放一个简单的声音,因为功能是未定义的。声音文件在正确的位置,所以我不知道出了什么问题。我是这方面的初学者,非常感谢您的帮助 //Level 1 Page var win = Titanium.UI.currentWindow; var tab = Titanium.UI.currentTab; var leveloneview = Ti.UI.createView({ width : '100%', height : '10

我有困难只是播放一个简单的声音,因为功能是未定义的。声音文件在正确的位置,所以我不知道出了什么问题。我是这方面的初学者,非常感谢您的帮助

//Level 1 Page
    var win = Titanium.UI.currentWindow;
    var tab = Titanium.UI.currentTab;

    var leveloneview = Ti.UI.createView({
        width : '100%',
        height : '100%',
        backgroundColor : '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({
        right : '50',
        bottom : '100',
        width : '100',
        height : '100',
        image : "images/pirate-icon.png",
    });
    var sound = Titanium.Media.createSound({
        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);

移动web上不支持Ti.Media.Sound。有关支持的平台,请参阅。

能否添加准确的错误日志?Uncaught TypeError:undefined不是/index.html(第6080行)上的函数。我忘了提到,自从添加了Ti.Media.createsound和button event listener之后,它才出现该错误。在此之前,将加载.js文件。这可能是我的问题。谢谢您。现在我必须解决我在安卓系统上遇到的问题,但在移动网络上效果很好。
Uncaught TypeError: undefined is not a function at /index.html (line 6080)