大约有 40 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0027 秒)
...,此侦听事件响应一次后自动移除。 EventDispatcher play(startTime:Number = 0, loops:Number = 0):SoundChannel 播放声音。 SoundProperty Detaildurationpropertyduration:Number [read-only] 获取总时间。 Implementation public function get duration():NumberMethod Detai...
来源: Laya2.0_api 发布时间: 20190513
...ntDispatcher SoundChannel Index Properties completeHandler isStopped loops startTime url Accessors duration position volume Methods event hasListener off offAll offAllCaller on once pause play resume stop Properties completeHandler completeHandler: Handler Defined in laya/media/SoundChannel.ts:28 ...
来源: Laya3.0_api 发布时间: 20231115
...ass 使用哪个声音类进行播放,null表示自动选择。 * @param startTime 声音播放起始时间。 * @return SoundChannel对象,通过此对象可以对声音进行控制,以及获取声音信息。 */ static playSound(url: string, loops?: number, soundClass?: any, startTime?: numb...
来源: Laya_社区 发布时间: 20180124
...复此bug!SoundManager.playSound=function(url,loops,complete,soundClass,startTime){ (loops===void 0)&& (loops=1); (startTime===void 0)&& (startTime=0); // if (!SoundManager._isActive || !url)return null; if (!url)return null; if (SoundManager._muted)return null; SoundManager._recov...
来源: Laya_社区 发布时间: 20180709
...tatic playMusic playMusic(url: string, loops?: number, complete?: Handler, startTime?: number): SoundChannel Defined in laya/media/SoundManager.ts:353 播放背景音乐。背景音乐同时只能播放一个,如果在播放背景音乐时再次调用本方法,会先停止之前的背景音乐...
来源: Laya3.0_api 发布时间: 20231115
...: 用外网最新的版本已经可以了,外网最新的版本修复了startTime时间无效的bug,你可以下载测试下。 2018-08-31 0 1 分享 微博 QZONE 微信 176*****233 赞同来自: 有人遇到过吗 2018-08-28 0 3 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个建议...
来源: Laya_社区 发布时间: 20180827
...uffer) { // console.log("audioBuffer is null",this.url) return; } if (this.startTime >= this.duration) { if (this.loops == 1) { return this.stop(); } this.startTime = 0; } 2.修复 当播放未加载好的声音时 声音状态为暂停时 声音不播放的问题修复 webAudioSound 方法...
来源: Laya_社区 发布时间: 20201014
... 2 个回复 得意须尽欢 赞同来自: 调用音频的方法:其中starttime为0 const channel = Laya.SoundManager.playSound(url, loop ? 0 : 1, null, startTime); 2025-11-27 0 0 分享 微博 QZONE 微信 Fany 赞同来自: native包中我这边也出现过.概率很低.之前我一直以为是...
来源: Laya_社区 发布时间: 20251127
... @param complete 声音播放完成回调。 * @param startTime 声音播放起始时间。 * @return SoundChannel对象,通过此对象可以对声音进行控制,以及获取声音信息。 */ public static function playMus...
来源: Laya_社区 发布时间: 20180417
... position : Number[read-only] 获取当前播放时间。 SoundChannel startTime : Number 开始时间。 SoundChannel url : String 声音地址。 SoundChannel volume : Number 音量范围从 0(静音)至 1(最大音量)。 SoundChannelPublic Methods Hide Inherited Public Methods ...
来源: laya_api 发布时间: 20170929