【问题标题】:Titanium How to Play the Sound from nth secondTitanium 如何从第 n 秒开始播放声音
【发布时间】:2011-06-23 06:30:54
【问题描述】:

我有以下代码。

recording.start();
file = recording.stop();

sound = Titanium.Media.createSound({sound:file});

sound.play();

我需要从 15 秒开始播放录音。

我该怎么做?

【问题讨论】:

  • 你试过了吗。 sound.time = 15.0;
  • 是的,我试过了,没用
  • 我在 iPhone 上对其进行了测试,并且可以正常工作。不知道为什么不能在 Android 上为您工作。

标签: android ios audio titanium appcelerator-mobile


【解决方案1】:

你试过method而不是属性吗?

sound.setTime(15);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-11-05
    • 1970-01-01
    • 2011-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-20
    相关资源
    最近更新 更多