Create USB apps? Release notes? Updates?

Just to clarify for people…These are not actually applications in the typical sense. WD uses a web browser to display an html5 page. The manifest file is basically just a hyperlink to a webpage. That is what is meant by “App”. These are not native programs and are not SWF files.

For those who want examples, you are looking too hard. SDK_WDTVMediaPlayer_AppsOnUSB.pdf (in the SDK download) has everything you need (once you fix the typos listed in prev. posts).

To run usb apps, go to the ‘All Apps’ tab under Services on your WDTV and click ‘Apps on USB’.

Just wanted to add a couple bits I found while looking at local storage. 

To run any of the functions listed in the API Summary document I had to prefix with deviceInfo

<script>
function foo() {
    	deviceInfo.configWrite( "thisisthekey", "thisisthevalue");
	var value = deviceInfo.configRead("thisisthekey");

}
</script>

 These key/value pairs are then stored in the file: 

/usrdata/app/3rdparty/apps/common/config

Using html5 localStorage also works and saves key/value pairs in the file:

/tmp/qt-data/data/Qt/WDSimpleBrowser/http_www.websitename.com_0.localstorage

Unfortunately neither store the data on the USB drive itself, so space is limited.

1 Like

So, are you saying there is no way to play videos from the “apps” and no API to control playback?

So, as i understand we can have something like html5 apps like games?

I was trying put web page in launch option with flash player with rtsp sources - won’t play video on that page.

We should be able to load  any file off USB including videos for playback.  I was previously just looking at saving files. As far as an API for playback you will need to use HTML5 and javascript I assume.  I don’t think Flash is going to work.

I was looking at the AOL HD app, as an example, and they have streaming video playback. I’m sure you could make it use local files with a bit of work.

Anton wrote:

So, as i understand we can have something like html5 apps like games?

I was trying put web page in launch option with flash player with rtsp sources - won’t play video on that page.

I don’t mean to be off topic, but if you need rtsp streams you might want to look here

http://forum.wdlxtv.com/viewtopic.php?f=23&t=8707  custom firmware

and more specifically look into UMSP

http://wiki.wdlxtv.com/UMSP_plugin_development

http://rkpisanu.altervista.org/doku.php?id=wdtv:wdtv_umsp_crash_course_v2

plugins are written in php

and if you need examples, there’s lots

https://svn.wdlxtv.com/listing.php?repname=UMSP&path=%2Fplugins%2F&#a521bc28705aa16ab81bd4936c90be4a4

1 Like

Loud2004 wrote:

We should be able to load  any file off USB including videos for playback.  I was previously just looking at saving files. As far as an API for playback you will need to use HTML5 and javascript I assume.  I don’t think Flash is going to work.

 

I was looking at the AOL HD app, as an example, and they have streaming video playback. I’m sure you could make it use local files with a bit of work.

 

So, it seems there should be a javascript API with functions to load a file and play, stop, seek, etc.,  I don’t see any mention of these functions in the SDK docs and that’s why I started another thread about the code sample that is mentioned but can’t be found anywhere in the SDK download.

Does the AOL HD app demonstrate this and where can it be found?  Thanks.

Is there a way to show up a side bar to scroll down web pages in spatial navigation of QT/Webkit browser ?

Something to add to the manifest.json ?

Thanks for help

BTW for anyone having issues getting their apps recognized, I just tried and realized that while you can use NTFS drives for videos, you cannot use them for Apps on USB.

gottahavit wrote:

BTW for anyone having issues getting their apps recognized, I just tried and realized that while you can use NTFS drives for videos, you cannot use them for Apps on USB.

if anybody wants to know this is caused by the default fmask used to mount the ntfs format drives

to prevents any files for have executable permissions

if you manually remount the drive from command line with different fmask then x permissions are allowed

gottahavit wrote:

BTW for anyone having issues getting their apps recognized, I just tried and realized that while you can use NTFS drives for videos, you cannot use them for Apps on USB.

My apps, or to better call them, “web links”, are stored on NTFS drive (USB connected) with videos, MP3 and photos and work fine.

My only draw back is that i cannot scroll down web pages because the lack of a side bar in the mini browser :cry:

Guess it depends on the drive.

anyone get mkv video playback to work.  I can playback mp4, but can’t get mp4 to play.  I have tried several Mimetype in the video tag with now luck.

gottahavit wrote:

Guess it depends on the drive.

 

anyone get mkv video playback to work.  I can playback mp4, but can’t get mp4 to play.  I have tried several Mimetype in the video tag with now luck.

Just tested all my mkv and mp4 (~ 20) and they works fine with the new firmware. It maybe you have to try with another hd or usb pen. Check before your videos on pc to avoid corrupted files :wink: Did you get a side bar to scroll down web pages on apps? This stupid thing seems a big secret here.

can you give me a sample Video tag to use in html 5 for the mkv files you have working?  My mkv’s play fine in the stock app, I’m talking about my own html 5 app on USB.

Thanks

gottahavit wrote:

can you give me a sample Video tag to use in html 5 for the mkv files you have working?  My mkv’s play fine in the stock app, I’m talking about my own html 5 app on USB.

 

Thanks

Sorry for misunderstanding. My bad English didn’t help.

I run apps only to browse web pages. Never tryed to play my own mkv or mp4 via an app.

Where is the usefulness of this way to play videos stored on hd?

I want to write an app with better playlist support as well as other features the stock player doesn’t support.

Hmm… “new SDK”? WDBetaTools.exe etc.

And what to do with this stuff? )
Looks like WD more interesting to collect all info about developers (via WDBetaTools) and not interesting more plugins…

Hi!

Are Your looking for examples?
Here is nice classic Tetris game.
http://codeincomplete.com/projects/tetris/

For this game “requirements” must be
{“network”:“1”,“cookie”:“1”,“navigation_type”:“1” ,“cehtml_key”:“”,“backdoor”:“”,“redirect_times”:“”}
or
{“network”:“1”,“cookie”:“1”,“navigation_type”:“1” ,“cehtml_key”:“1”,“backdoor”:“”,“redirect_times”:“”}
Press “back” and then “ok” on remote to start game.

Instead of creating USB application structure for every application You can create one HTM starting page (application).
It is because to add menu item to htm is much easier than creating application structure on USB.
Here is one examaple with 3 menu items. First item is linked to Tetris game. Other items are empty. Use arrow keys to chose item and press OK.

WD start page
Tetris
My first link
My second link

You can run it from a USB storage device or it available on a server.
For instance it is very easy to turn on IIS feature on Windows. Also download visual studio 2013 express for web and the limit is only a fantasy.

Hello, it’s been like 15 years or so since I played around with html code, etc. back in the Windows 95/98 days when you would write your own code to build custom websites (very pre-facebook), so please bear with me.  I tried to copy your code, but I cannot get my wdtv to open it. I tried following the directions for creating an app on a usb drive from the pdf file provided by WD, and I think I did it right, but my player does nothing when I insert the usb drive. I does recognize the drive, but nothing on it. What I really want is an app that will direct to the dish anywhere site so I can watch dish anywhere on my wdtv live. Please help with any info you can. 

TO: Aaronbud

I hope You created correct directory structure to USB. 

In manifest.json must be correct “requrements” section. There is error in SDK as described in this forum. 

“app_icon_image” ping file must be in images directory.

“id” must be in correct format and is different for each application.

If it is OK You must restart Player. For this keep on/off button pressed 5 sec. on remote. 

When there is no longer any flashing lights You can start Player again.

Restarting is the most annoying. That’s why I use html menus.

Application must appear in the list, despite URL in  “launch” section is existing or not. If not in list, application is not in accordance with the SDK documentation.

  

I have the same problem as Aaronbud. I cannot make any app to work. Can anyone upload a working app please? Even it is something very simple.