简体   繁体   English

如何让 Tizen 的 B2B API 在模拟器上运行? 我想要这个用于电视

[英]How do I get Tizen's B2B API working on the emulator? I want this for a TV

I'm just getting started with Tizen so I hope this is an easy noobie question, but it's got me stumped.我刚刚开始使用 Tizen,所以我希望这是一个简单的新手问题,但它让我感到难过。 I'm using the emulator T-samsung-5.5-x86.我正在使用模拟器 T-samsung-5.5-x86。 I'm trying to use Tizen's B2B API with this on my HTML page:我正在尝试在我的 HTML 页面上使用 Tizen 的 B2B API:

<script type="text/javascript" src="$B2BAPIS/b2bapis/b2bapis.js"></script>
<script src="$WEBAPIS/webapis/webapis.js"></script>
    
<link rel="stylesheet" type="text/css" href="css/style.css"/>

And this in my code:这在我的代码中:

var speakerType = b2bapis.b2bcontrol.getSpeakerType();

When it runs it gives me this error when hovering over b2bapis:当它运行时,将鼠标悬停在 b2bapis 上时会出现此错误:

ReferenceError: b2bapis is not defined ReferenceError: b2bapis 未定义

Also, in my Console, it says: b2bapis.js - Failed to load resource.此外,在我的控制台中,它显示: b2bapis.js - 加载资源失败。

webapis works fine for me. webapis 对我来说很好用。

Just want to note here what I found.只想在这里记下我的发现。 b2bapis is working only on real smart TV not emulators. b2bapis 仅适用于真正的智能电视,不适用于模拟器。

Make sure you have added this import in your index.html确保您已将此导入添加到您的 index.html

<script type="text/javascript" src="$B2BAPIS/b2bapis/b2bapis.js"></script>

also privilege in your config.xml eg.在您的 config.xml 中也享有特权,例如。 b2bapis.b2bcontrol importing this b2bapis.b2bcontrol导入这个

<tizen:privilege name="http://developer.samsung.com/privilege/b2bcontrol"/>

Oh well, jeez... So the B2BAPIS apparently aren't something that are working on the emulator (at least not mine) but once I connected to a Samsung TV work just fine.哦,天哪……所以 B2BAPIS 显然不是在模拟器上运行的东西(至少不是我的),但是一旦我连接到三星电视就可以了。 Guess I just got by my first noob hurdle...猜猜我刚刚通过了我的第一个菜鸟障碍...

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我如何要求一个字段是(A 和 B),或(A),或(B),或(A 和 C),或(C) - How do I require one field to be (A and B), or ( A), or (B), or (A and C), or (C) 如果情况A或B切换到我想做的事情,而情况A XOR B切换到其他事情? - Switch case where I want to do some things if case A OR B and other things if case A XOR B? 如何让 A 和 B 并行运行? - How do I make A and B run in parallel? 我想显示变量“ b [i]”而不是“ x [i] .childNodes [0] .nodeValue”。 但是&#39;myFunction&#39;或document.write(b [i])似乎不起作用 - I want to display variable 'b[i]' instead of 'x[i].childNodes[0].nodeValue'. but either 'myFunction' or document.write(b[i]) seems not working 我想写一个代码把“a”变成“b”,“b”变成“c”,等等 - I want to make a code to turn "a" into "b", "b" into "c", and so on 如何打印“ a / b”,其中a和b是JavaScript中的数值。 我不想打印结果值 - how to print “a/b” where a and b are numeric value in JavaScript. I dont want to print the resultant value 如果我有一个元素的4个角的x和y位置,我如何知道元素A是否在元素B中 - If I have the 4 corner's x and y positions of an element, how do I know if element A is in element B 当使用 Javascript 单击图像 A 时,如何将图像 B 的 src 更改为图像 A 的 src? - How do I change image B's src to Image A's src when Image A is clicked with Javascript? 如何显示地方标签,而不是A或B在谷歌地图API的方向? - How do I display place labels instead of A or B in Google Maps directions API? 即使我将 a - b 更改为 b - a,排序在 D3 层次结构中也不起作用 - Sort is not working in D3 hierarchy even if I change a - b to b - a
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM