在本地托管 phono(jquery 软电话插件)依赖项?

发布于 2024-11-27 10:20:52 字数 1517 浏览 1 评论 0原文

这可能是一个太晦涩的问题,但也许有人可以发现我做错了什么。

Phono(基于 javascript/flash 的软件电话的 jquery 插件,构建在 Tropo/Voxeo 之上)从 phono 加载一些依赖项.com 服务器。即

我非常希望避免从外部服务器加载这些依赖项(出于明显的原因)并且通过他们的论坛上的此帖子(我无法注册,因为它似乎每个可能的用户名都已被“占用”),应该可以在本地托管它们。

这是主要 jquery 插件的美化源代码。也许我只是不擅长寻找,但我在完整的 SDK 或 github 上找不到带注释的、未缩小的版本。

因此,在更改

base_path: "http://s.phono.com/deps/flensed/1.0/"

swf: "http://s.phono.com/releases/" 后+ Phono.version + "/plugins/audio/phono.audio.swf"

...所有依赖项似乎都加载得很好,phono 成功获取会话 ID,并且通过 SIP 进行的聊天似乎正在工作。但是,当我尝试拨出或调用会话 id/SIP 时,出现 JavaScript 错误:

Uncaught TypeError: Cannot call method 'start' of null

refer to line 770h.start()

this.$flash.play(g, j); 似乎返回 null 或未定义。我对 javascript 很烂,但不明白为什么。

编辑 - 如果有人愿意尝试这个,你可以抓住他们的“厨房水槽”演示并将其放在服务器上,而不需要太多麻烦。

This may be too obscure a question, but perhaps someone can spot what I'm doing wrong.

Phono (jquery plugin for javascript/flash-based softphone built on top of Tropo/Voxeo) loads a couple of dependencies from the phono.com servers. Namely,

I would very much like to avoid loading these dependencies from an external server (for obvious reasons) and going by this thread on their forums (which I can't register for because it appears every possible username has been "taken") , it should be possible to host them locally.

Here's a prettified source for the main jquery plugin. Maybe I'm just bad at looking, but I could not find a commented, un-minified version either in their full SDK or on github.

So after changing

base_path: "http://s.phono.com/deps/flensed/1.0/"

and

swf: "http://s.phono.com/releases/" + Phono.version + "/plugins/audio/phono.audio.swf"

... all dependencies seem to load just fine, phono successfully grabs a session ID and chats by SIP appear to be working. When I try to dial out or call the session id/SIP, however, I get a javascript error:

Uncaught TypeError: Cannot call method 'start' of null

referring to line 770 : h.start().

this.$flash.play(g, j); appears to return null or undefined. I suck at javascript and can't figure out why.

EDIT - if anyone would be so adventurous as to try this out, you can just grab their "kitchen sink" demo and slap it up on a server without much hassle.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

神回复 2024-12-04 10:20:52

好吧——这太荒谬了,我是个白痴,没有早点发现它。

Flash 试图从我的服务器上需要身份验证的 URL 加载铃声。不幸的是,flash 不是具有有效会话的用户。因此,闪存什么都没有抓住。对不起。

Okay -- this is ridiculous and I'm an idiot for not catching it sooner.

Flash was trying to load the ringtones off my server at the URL that requires authentication. Unfortunately, flash is not a user with a valid session. Hence, flash was grabbing big handful of nothing. Sorry.

青衫负雪 2024-12-04 10:20:52

您可以下载 PhonoSDK 和所有示例(包括厨房水槽演示)并在本地主机上运行它。这是链接: http://s.phono.com/releases/PhonoSDK-0.2.zip 。它是开源的,您也可以为该项目分叉/贡献吗 - https://github.com/phono

我刚刚在我的本地主机上使用 Apache 进行了尝试,它无需编辑任何内容即可工作。

You can download the PhonoSDK and all of the samples (including the kitchen sink demo) and run it on your localhost. Here's the link: http://s.phono.com/releases/PhonoSDK-0.2.zip. It's open source, do you can also fork/contribute to the project as well - https://github.com/phono

I just tried it using Apache on my localhost it worked without editing anything.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文