webos

Does webOS TV in LG supports HTML5 videos?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 03:51:31
问题 Current source code: <video controls loop> <source src="video.webm" autoplay="autoplay" preload="auto" type='video/webm;codecs="vp8, vorbis"' /> </video> But it doesn't play with TV browser in LG. Please help. 回答1: HTML 5.0 [*] Partly supported, Partly: satisfying 60-90% of the specifications. For Video & Audio. Note that webm is not supported in emulator. Reference http://developer.lge.com/webOSTV/develop/web-app/webos-tv-platform/web-engine/ http://developer.lge.com/webOSTV/develop/web-app

how to call web service by supplying credentials in Palm WebOS

99封情书 提交于 2019-12-25 03:17:24
问题 I am able to call a web service that doesn't require server credentials. But I need to call a web service which require server credentials(username and password) for authentication. How to call this type of web services by supplying appropriate credentials using Ajax.Request or any other method in Palm WebOS. Any help would be highly appreciated. Thanks, 回答1: If you are using Basic Authentication you could try this: Using Authentication with Ajax.Request 来源: https://stackoverflow.com

Grabbing a screenshot programmatically in webos

我只是一个虾纸丫 提交于 2019-12-24 04:07:23
问题 Is there any way to grab a screenshot of the currently active screen in webos programmatically? The use-case is an app that takes a screen shot every few seconds for recording user activity. EDIT: I'm interested in code that actually runs on the device. 回答1: There's a private service bus API to grab a screenshot that you can use from the shell via luna-send: luna-send -n 1 luna://com.palm.systemmanager/takeScreenShot '{"file":"sshot.png"}' This won't work from a non-com.palm application, so

How to take a picture using command line on webOS on HP touchpad?

橙三吉。 提交于 2019-12-21 20:37:56
问题 on webos, I have openssh running and would like to take a picture using the command line script. I suspect this is going to include some luna-send command, or alternatively a gst-launch But I am not having any luck with the docs. webos doesn't have any of the expected capture tools, but I can access the /dev/video0 device. Edit: i noticed that the touchpad has the ffmpeg utility installed, but it doesn't recognise the video4linux2 format So far, I am trying Gopherkhan's suggestions with the

How to get user phone number in palm webOS

喜你入骨 提交于 2019-12-13 05:45:18
问题 i am going to develop an application in palm webOS, for that i need to get phone number from device. Is it possible to get phone number?. please help me to get phone number from palm device. ThanQ... 回答1: You could always use the nuid. Not sure if that will be useful for your app: http://developer.palm.com/index.php?option=com_content&view=article&id=1550 回答2: There is no way through the use of the official APIs to get that information, just like accessing contacts emails, this would allow

How to replace image pixel in Webos Palm js

六月ゝ 毕业季﹏ 提交于 2019-12-13 00:46:32
问题 I want to replace image pixel color with other color in webos. so can any one suggest how i do this. Thanks 回答1: This can be done by using the HTML5 canvas API. Create a canvas the size of the image, and then draw the image into the canvas. Get the image data, and manipulate away! var canvas = document.getElementById(canvasID); var context = canvas.getContext('2d'); var image = context.getImageData(0,0,canvas.width,canvas.height); image is now an imageData object, which contains an array data

Delete post with Blogger API

非 Y 不嫁゛ 提交于 2019-12-11 12:54:35
问题 I'm using the Blogger Protocol API and I'm having trouble deleting posts. I'm working on a webOS device and so I can't send DELETE directly; instead I use Google's workaround to use POST : deletePostList: function(event) { var deletePostID = event.item.id.split('.').pop().split('-').pop(); var deleteRequest = new Ajax.Request("http://www.blogger.com/feeds/" + activeBlogID + "/posts/default/" + deletePostID, { method: 'post', requestHeaders: { Authorization: 'GoogleLogin auth=' + authCode, "X

Javascript SecurityError: DOM Exception 18 while accessing cookies

女生的网名这么多〃 提交于 2019-12-11 10:45:46
问题 Folks, I am working on WebOS Application for LGTV. In previous version my code was working fine while accessing cookie, but with updated WebOS it is giving me error as following: Can anyone help me over it? Thanks EDIT Here is the output when I try to access cookie in JS Console: 回答1: I see you are loading the app via file:// for testing. Cookies don't work for file:// urls. See this StackOverflow answer: Uncaught Error: SECURITY_ERR: DOM Exception 18 when I try to set a cookie 来源: https:/

in webOS, I need a method that, using the input, will doe a sql select command and returns the restults as an array

安稳与你 提交于 2019-12-11 07:49:22
问题 So the subject says it all, but here is more detail. I'd like to create a method that when passed a set of values, it inserts these values in a sql select statment and then returns the results. I'm working on a webOS app so the structure for calling the sqlite database is as such: function getSQLresults(input){ this.db.transaction(function(transaction) { transaction.executeSql( theSql, parmAry, function(transaction, results) {}, //this is the on success function function(transaction, error) {

What's the best way to detect a webOS tablet with jQuery / plain JS

对着背影说爱祢 提交于 2019-12-11 04:38:01
问题 I'm looking for the best way to detect a webOS tablet using plain JS and if it's any easier also using jQuery. The user agent of the tablet should look something like this: User-Agent:Mozilla/5.0 (webOS/1.3; U; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Version/1.0 Safari/532.2 Desktop/1.0 So an easy way would be: var deviceAgent = navigator.userAgent.toLowerCase(); webOS = deviceAgent.match(/(webos)/); Is that the best way to do it already? You're likely going to say detect the feature you