• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 67 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)

31. 有没有SoundChannel的示例? [ 75%]

有没有SoundChannel的示例? SoundManager.playSound(_url, _loop, new Handler(this, _fn)); var channel:SoundChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (ch...

来源: Laya_社区 发布时间: 20170116

32. 播放音效,duration为0 [ 74%]

...播放音效,duration为0 代码如下: let sound_channel = laya.media.SoundManager.playSound(this.soundArray[soundIndex], 1) console.log(sound_channel.duration) 在H5环境下没问题,发布到微信小游戏之后,duration为0.   猜测是因为微信异步播放声音,duration延迟...

来源: Laya_社区 发布时间: 20180713

33. mac系统下 TypeScript 语言 ,声音无法播放? [ 74%]

...     console.log("load light.mp3");               Laya.SoundManager.playMusic("res/sounds/light.mp3");                 Laya.SoundManager.playSound("res/sounds/light.mp3");           }),null,Laya.Loader.SOUND);   2018-08-14 0 0 分享 微博 QZONE 微信 ...

来源: Laya_社区 发布时间: 20180814

34. 发微信小游戏音乐不播放,报警告 [ 73%]

...y exist,is repeated loading: res/sounds/bgm.mp3   代码写的是   Laya.SoundManager.playSound("res/sounds/bgm.mp3", 1, new Handler(this, function(){                 console.log("播放完成");             })); 2018-08-08 0 0 分享 微博 QZONE 微信 为什么被折...

来源: Laya_社区 发布时间: 20180808

35. SoundManager苹果某些ipad兼容问题 [ 73%]

SoundManager苹果某些ipad兼容问题 playSound(),playMusic(),在有些苹果的ipad上面无法播放声音,这个问题要咋解决呀??? 2018-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Lay...

来源: Laya_社区 发布时间: 20180815

36. 音频无法播放 [ 73%]

音频无法播放 Laya.SoundManager.playMusic('res/sound/'+'fail'+'.wav',1, new Laya.Handler(null,function(){ alert('123') })); 在chrome下 提示图片这个警告,,,手机上也没有声音 附件 : --> 2018-04-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

来源: Laya_社区 发布时间: 20180403

37. 绑定播放完毕事件后的音频,如何暂停 [ 73%]

绑定播放完毕事件后的音频,如何暂停 Laya.SoundManager.playSound("res/audio/CoreState.mp3",1,new Laya.Handler(this,function(){ ..}) 如代码所示该音频绑定了事件, 然后调用Laya.SoundManager.stopSound("res/audio/CoreState.mp3")就直接报错 bundle.js:512 Uncaught Ra...

来源: Laya_社区 发布时间: 20200811

38. 2.0播放声音时 Error: DOMException: Unable to decode audio data [ 72%]

... data 1.7的项目,用2.0打开时播放声音就会显示此错误 Laya.SoundManager.playSound("res/Sound/big_ta_dah.mp3", 1, null); 2018-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 kylin 赞同来自:...

来源: Laya_社区 发布时间: 20181026

39. 音乐快进到 n秒进行播放 手机上无效 [ 72%]

...播放 手机上无效 做背景音乐从指定位置开始播放Laya.SoundManager.playSound(strSoundPath, 1, null,null,28); 在ide正常,发布微信小程序,在工具里边还是从头开始。 手机上更是如此。 使用微信api: var bgm = wx.createInnerAudioContext() bgm.autoplay...

来源: Laya_社区 发布时间: 20180504

40. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 72%]

...e = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import SoundManager = Laya.SoundManager; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export default class Test_11_Sound {  //声明一个信息文本 private txtInfo: Text;  constructor...

来源: Laya_社区 发布时间: 20190421