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

大约有 1,858 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0056 秒)

41. 音频-播放演示 [ 90%]

... { const Event = Laya.Event; var gap = 10; //创建一个Sprite充当音效播放按钮 let soundButton = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) / 2; //创建一个Sprite充当...

来源: Laya2.0_示例 发布时间: 20241002

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

绑定播放完毕事件后的音频,如何暂停 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

43. 音频-播放演示 [ 90%]

...(); })(); function setup() { var gap = 10; //创建一个Sprite充当音效播放按钮 var soundButton = createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) / 2; Laya.stage.addChild(soundButton)...

来源: Laya_示例 发布时间: 20241002

44. 关于说明文档实战篇《微信飞机大战》的问题 [ 90%]

...微信 hj 赞同来自: 上面那个fly动画可能还没有加载完,就播放动画了,所以报找不到动画,下面你那个fly_hit动画你没有做,报找不到,你可以参考一下腾讯课堂的那个js飞机大战逻辑,你这个都是逻辑问题。 2018-10-09 0 6 分享 微...

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

45. ios上无法播放ogg音效 [ 89%]

ios上无法播放ogg音效 ios上无法播放ogg音效,安卓没问题 2019-02-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 nevercai 赞同来自: 大林 音频格式 当前,audio 元素支持三种音...

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

46. Laya.SoundManager.playSound浏览器兼容问题 [ 89%]

...  在pc chrome浏览器有效。在ios safari跟微信浏览器中不会播放。但是wav格式会播放,其他格式木有测试。 Laya.SoundManager.playSound("images/fail.wav",1); 这种是OK的。 播放背景音乐是mp3 格式是可以的。 Laya.SoundManager.playMusic("images/bg.mp3",0);...

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

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

2.0播放声音时 Error: DOMException: Unable to decode audio data 1.7的项目,用2.0打开时播放声音就会显示此错误 Laya.SoundManager.playSound("res/Sound/big_ta_dah.mp3", 1, null); 2018-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

48. webkitAudioContext 解码mp3和ogg音频格式失败 [ 89%]

...udioContext 解码mp3和ogg音频格式失败 在PC,native的安卓和ios播放mp3格式的背景音乐和ogg格式的点击音效都没问题,后面IOS改成wkwebview构建之后,mp3和ogg的音频都解析失败了,如图,在调用webAudioSound.ctx.decodeAudioData之后,就进入了失...

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

49. 怎么播放声音? [ 89%]

怎么播放声音? 大家好,我刚学laya,很多东西不懂,还希望各位多多赐教!! 我现在的问题是不能播放音乐呀,代码如下: var bg_sound:Laya.Sound =new Laya.Sound(); bg_sound.load("res/bg.mp3"); bg_sound.play(0,0);这么写的话,声音不能播放,于...

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

50. native 打包到手机上后MP3格式的背景音乐的音量明显比源文件小太多 [ 89%]

...上就连接不上socket 图集打包找不到图集文件 谷歌浏览器播放mp3出现The AudioContext was not allowed to start. 构建iOS工程后,真机上运行显示“网络异常,请检查您的网络或与开发商联系...”, 打包出来后的APP打开加载速度过慢,有黑...

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