大约有 41 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
...ia.SoundManager.playSound("res/Sounds/bgm.mp3",0); laya.media.SoundManager.playMusic("res/Sounds/bgm.mp3",0);这两种方法播放背景音乐第一次完毕后都会突然没有声音,然后再继续重头播放,感觉很不连贯,请问有什么方法可以无缝衔接吗,背景音乐音...
来源: Laya_社区 发布时间: 20190819
...放背景音乐报错,如何解决? //背景音乐 Laya.SoundManager.playMusic("res/sound/victory.mp3"); 微信开发工具中报错如下: laya.wxmini.js中报错位置如下: 附件 : --> 2018-01-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20180104
...达人 赞同来自: shaotianhk SoundManager.playSound或者 SoundManager.playMusic会返回一个SoundChannel实例。你可以声明一个变量来接收它,然后通过SoundChannel来控制播放、停止、暂停。具体代码如下所示: var soundC:SoundChannel = SoundManager.playSound("...
来源: Laya_社区 发布时间: 20180312
...playsound有一定兼容问题,部分安卓机无法播放,只能转为playMusic来做,但是又不能同时播放二个音乐,只能牺牲声音来做兼容了。 4:横竖屏切换的时候会有偶现的黑屏问题 5:部分安卓机,特别魅族PRO6在APP中打开会出现背景...
来源: Laya_社区 发布时间: 20171031
...OK的。 播放背景音乐是mp3 格式是可以的。 Laya.SoundManager.playMusic("images/bg.mp3",0);这种也是OK的。 这种兼容性你们要看 一下。 2017-07-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...
来源: Laya_社区 发布时间: 20170711
...也会增加,如 Laya.timer.loop(1000,this,function():void{ SoundManager.playMusic(UrlUtils.getSoundUrl("runbeard/Audio_Game_Back")); }); Laya_Aaron • 2018-02-08 20:10 都换了就不会切换也增加了 Laya_Aaron • 2018-02-08 20:11 焦点切换,和音乐切换的问题,都在...
来源: Laya_社区 发布时间: 20180208
...playbackRate = rate; if(soundControl){ Laya.SoundManager.playMusic(url, loop, Laya.Handler.create(this, onCompleteBgMusic, [loop, url])); } } function onCompleteBgMusic(loop, url) { if(loop > 0){ Laya.SoundManager.stopAll() ; Laya.SoundManager...
来源: Laya_社区 发布时间: 20170414
...2.5 let sound:Laya.SoundChannel = Laya.SoundManager.playMusic("res/1_3.mp3"); let _pause:boolean = false; btn1.on(Laya.Event.CLICK,this,()=>{ if(!_pause)return; sound.pause(); ...
来源: Laya_社区 发布时间: 20200921
...on.on(Event.CLICK, this, onPlaySound); musicButton.on(Event.CLICK, this, onPlayMusic); } function createButton(label) { var w = 110; var h = 40; var button = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#F...
来源: Laya_社区 发布时间: 20170527
...t.CLICK, this, this.onPlaySound); musicButton.on(Event.CLICK, this, this.onPlayMusic); } private createButton(label: string): Sprite { var w: number = 110; var h: number = 40; var button: Sprite = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.f...
来源: Laya_社区 发布时间: 20190421