问题标签 [soundmanager2]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
157 浏览

javascript - SoundManager2 配置可以在结束体标签之前使用而不是在头部使用吗?

我之前曾尝试将我的 SoundManager2 内容移到页面底部,</body>但无济于事。这是我正在使用的语法:

但这仅适用于<head>. (不用担心 url_for 的东西,这是 Flask 的东西)

0 投票
1 回答
1541 浏览

wordpress - 内联 Javascript 音频播放器/声音管理器 2

我想实现这个音频播放器,

http://www.schillmania.com/projects/soundmanager2/

进入我正在制作的乐队网站

http://thewintonsbluegrass.com

它是一个在 Thesis Theme 框架上运行的 Wordpress 站点。我查看了播放器文档,但无法弄清楚。:D 有人知道怎么做吗?

0 投票
2 回答
3137 浏览

javascript - Soundmanager 2 的皮肤/主题

我目前正在考虑将 Soundmanager2 用作小型项目的音频播放器。我非常喜欢 SM2,但不幸的是,我找不到为内联播放器提供基本控件(播放、暂停、进度条、时间、音量控制)的实现。

我唯一找到的是基本播放器
Soundmanager 2 - 基本

你们中有人知道使用带有经典控制界面(像这样)的 Soundmanager2 的方法吗?

jPlayer 演示

0 投票
0 回答
1351 浏览

javascript - SoundManager2 创建和播放 55 种声音

更新:所以我在 Adob​​e 的 AS3 规范中找到了这个:

SoundChannel — 一个 SoundChannel 对象,用于控制声音。如果您没有声卡或没有可用的声道,则此方法返回 null。一次可用的最大声道数为 32。

来源:http ://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Sound.html

示例代码:http ://charliehield.com/sandbox/sm2/

我正在使用以下功能创建 55 种声音:

接下来,我触发播放剪辑并使用开始按钮上的单击功能将它们静音。

然后每个按钮使用 toggleMute(); 功能(以便声音“同步”循环,然后您可以切换它们的音量)。

唯一的问题是我可以看到正在加载的 55 个声音,但实际上只有前 32 个声音会播放。

我完全惊呆了。任何帮助都会很棒。

0 投票
1 回答
485 浏览

android - 如何创建 Asynctask 以将声音加载到加载屏幕上的管理器中

我过去的两个问题很短且不详细,所以这次我会尽力而为。我有一个带有大约 430 种声音的大型音板。它太大了,我必须在某些设备上创建 2 个声音管理器。无论如何,在加载屏幕上,我正在尝试实现 AsyncTask。我大致了解它的类型及其4个步骤,但我不了解参数。这是一个简单的 AsyncTask 供参考。

我需要在后台做的是像这样向我的经理添加声音: SoundManager2.addSound(415, R.raw.rubber);

拜托,这是我在这里的第三个问题,所以如果您需要任何其他信息,请不要犹豫,我将在接下来的 20 分钟内观看此主题,我会快速使用信息对其进行编辑!

0 投票
0 回答
822 浏览

soundmanager2 - soundmanager2 不在 Firefox 9 中内联流式传输音频

这太奇怪了。我基本上从这个演示中复制了源代码。

但由于某种原因,音频没有内联播放,只是在浏览器(Firefox 9)中加载。我真的不明白为什么演示有效,但我的代码没有:(

这就是我的<head>

这就是我如何称呼它-

0 投票
2 回答
1275 浏览

jquery - 从 ajax 加载的 soundManager 播放之前选择的歌曲

我有一个显示不同音乐专辑的页面,我正在其中初始化一个 soundManager。单击专辑时,会以 ajax 加载视图,其中包含一些 mp3 链接。这工作正常,音乐播放。(我的脚本基于:http ://www.schillmania.com/projects/soundmanager2/demo/mp3-player-button/basic.html )

当点击另一个专辑时,我正在打电话

停止任何当前播放的曲目。这会停止当前播放的曲目,但是当我单击新打开的“专辑视图”中的曲目时,先前选择的曲目会在新单击的曲目之上播放。

我试过使用 soundManager.unload(); 和 soundManager.destruct(); 没有成功...

有任何想法吗?

0 投票
1 回答
2501 浏览

html - SoundManager w HTML5 Audio 导致 206 Partial Content 错误?

我正在使用带有 HTML 5 音频的 SoundManager (SM) 以及标准的 SM 闪存回退。

出于某种原因,我看到请求被取消,导致控制台中出现红色错误,尽管声音播放得很好。

知道为什么吗?这个标准是 CDN 还是 HTML5 音频?有人见过这个吗?谢谢

在此处输入图像描述

0 投票
1 回答
1070 浏览

javascript - jquery replaceWith 后脚本停止工作

所以我有一个表单,我使用 jquery post 方法提交,并用 ajax 返回的数据替换分区的内容。这是代码:

现在我面临这个方法的两个问题:

1)我还使用了一个重置​​按钮,它只是将表单的字段值重置为初始值,然后触发更改事件,如下面的代码所示:

现在,每当我单击重置按钮时,它都会重置表单的字段并通过上述更改事件使用 ajax 提交表单。到目前为止一切顺利,但现在我无法再触发更改事件。现在无论我现在在表单中单击哪个字段,它都不再使用 ajax 提交表单。

2)我在#table-content 部门(它的多个实例)中安装了一个声音管理器插件。现在在 ajax 提交之后,该 soundmanager 插件停止工作,因为我假设,由于 soundmanager 在就绪事件中加载,它在 ajax 提交和 replaceWith 之后不会执行,因此它停止工作。

有什么办法可以规避这些问题?我是新来的查询,如果我做错了,请指导我正确的方向。提前非常感谢。

编辑:事实证明,如果我包含 $.getScript("/static/js/360player.js"); 它工作正常。没有一种方法可以将事件附加到使用 jquery replaceWith 命令替换的元素上。'On' 事件似乎根本不起作用。

Edit2:事实证明,我在错误的分区上使用了“on”。我的错 :(

0 投票
1 回答
262 浏览

javascript - Reloading a page inside a div, or rechecking a js file without rel

A bit of background first. I have made a player based on soundManager2, in the HTML file of the player there is a link to the soundManager2 js file, a js file which creates my interface, and a php file which generates js code to create the playlist.

The reason the playlist is in an external file is so while the music is playing a user can add tracks to it. Then on the final track the player will reload itself using window.location.reload(); in order to recheck the external playlist to see if any tracks have been added, if they have it continues on and plays those, if not it loops back to the beginning.

I just tried to embed the music player into the web page it has been created for using the jQuery below:

As you may have guessed my problem is that window.location.reload(); reloads the whole page and not just the player in the div. So what I need to know is, is there a way to just reload the content of the div which I can call from the music players js file. Alternatively, is there a way to tell the music player to recheck the playlist file each time a track is finished (soundManager allows you to call functions at the end of a sound), and this would probably be the better solution.