You are on page 1of 28

RSS Guide - moServices for Asus O!

Play HDP-R1/R3(Air)

https://sites.google.com/site/farvoice/rssguide

mo Ser v i c es f o r Asus O! P lay HDP - R 1/R 3( Ai r )
Русский
Описание Установка Новости Версии Файлы Поддержка Форум

RSS Guide
Getting from http://forum.xtreamer.net/mediawiki-1.15.1 /index.php/Talk:Xtreamer_RSS_Guide Full sample of text element without description : <text
Contents 1 getFocusMenuIndex 2 setFocusMenuIndex 3 showIdle 4 cancelIdle 5 getSelectedItemIndex 6 getDrawingItemState 7 getUserInput 8 userSelectToString 9 stringToUserSelect 10 currentUserInput 11 postMessage 12 setRefreshTime 13 getURL 14 getCSVFromURL 15 getItemInfoArray 16 catStringArray 17 pushBackStringArray 18 getStringArrayAt

English
Description Installation News Files Support Forum

Articles
RSS Guide

4100155932518

19 deleteStringArrayAt 20 updateDisplay 21 loadXMLFile 22 Print

Z398721231627 E413223906631 R304953901478

23 getItemInfo 24 getPageInfo 25 getQueryItemIndex 26 getQueryMenuIndex 27 getFocusItemIndex 28 addItem 29 redrawDisplay 30 getXMLElementCount 31 getXMLText 32 getXMLAttribute

1 din 28

21.09.2012 16:36

RSS Guide - moServices for Asus O!Play HDP-R1/R3(Air)

https://sites.google.com/site/farvoice/rssguide

33 getURLforStock

BASIC Programming
Liberty BASIC gives you a power toolkit for Windows programming!
www.libertybasic.com

34 selectMenu 35 setItemFocus 36 executeScript 37 jumpToLink 38 writeStringToFile 39 playItemURL 40 sprintf1 41 Integer1 42 sprintf 43 Integer 44 Add 45 Minus 46 getInput 47 postMessage 48 setRefreshTime 49 getURL 50 getCSVFromURL 51 getItemInfo 52 getPageInfo 53 getQueryItemIndex 54 getQueryMenuIndex 55 getFocusItemIndex 56 getFocusMenuIndex 57 getSelectedItemIndex 58 getDrawingItemState 59 getItemInfoArray 60 catStringArray 61 getStringArrayAt 62 deleteStringArrayAt 63 addItem 64 redrawDisplay 65 loadXMLFile 66 getXMLElementCount 67 getXMLText 68 getXMLAttribute 69 pushBackStringArray 70 getURLforStock 71 selectMenu 72 executeScript 73 jumpToLink 74 setItemFocus 75 playItemURL 76 playAtTime 77 getPlaybackStatus 78 getCachedStreamDataSize 79 setPreviewWindow 80 tearDownPlaybackFlow 81 setVoutDisplay 82 GetScreenSaverStatus 83 SetScreenSaverStatus 84 isInternalHDDExist 85 getPTS 86 updatePlaybackProgress 87 readStringFromFile

2 din 28

21.09.2012 16:36

print(" the index is:".RSS Guide . Input Parameters: None Output Parameters: the Index of focusMenu Sample Code: <script> index = getFocusMenuIndex().ttf" offsetXPC="5" offsetYPC="12" widthPC="85" heightPC="40" fontSize="17" backgroundColor="200:200:200" foregroundColor="75:85:95" redraw=no lines=4 align="justify" cornerRounding=10 tailDots="yes" > <script> message.2012 16:36 . index). 3 din 28 21.09.moServices for Asus O!Play HDP-R1/R3(Air) https://sites. </script> </text> getFocusMenuIndex Description: fetch the index of the item which is Focus.google./Arial_Bold.com/site/farvoice/rssguide 88 writeStringToFile 89 setEnv 90 unsetEnv 91 getEnv 92 getStoragePath 93 drawImageOnScreen 94 drawImage 95 urlEncode 96 menuCmd 97 getCurrentAPName 98 setParentFade 99 deleteItem 100 setFocusItemIndex 101 setFocusMenuIndex 102 convertSpaceInUrl 103 prepareAnimation 104 getErrorCode 105 getErrorString 106 doModalRss 107 setReturnString 108 googleServiceLogin 109 cancelDownload fontFile=".

if (dlok != null) print("success"). index).com /classfortv. print(" === the index is ". currentUrl).google. Input Parameters: index Output Parameters: return NULL.ppstream. } 4 din 28 21.09. cancelIdle(). Sample Code: <script> setFocusMenuIndex(0).moServices for Asus O!Play HDP-R1/R3(Air) https://sites. else { print("Download xml file fail: ". dlok = loadXMLFile(topUrl).RSS Guide .com/site/farvoice/rssguide </script> setFocusMenuIndex Description: set the item focus. </script> cancelIdle Description: cancel the showing of idle image Input Parameters: None Output Parameters: return NULL Sample Code: <script> topUrl = "http://tv. Sample Code: <script> showIdle(). </script> showIdle Description: show the idle image Input Parameters: None Output Parameters: return NULL.2012 16:36 . index = getFocusMenuIndex().php?oem=realtek&classsize=5&page=2".

RSS Guide ."enter".09. else print("userInput is not pagedown")."video_stop"."up". Sample Code: <script> userInput = getUserInput(). </script> getUserInput Description: fetch the corresponding user input Input Parameters: None Output Parameters: Command,such as: "left"."video_pause". print(" === the index is ".google. </script> getDrawingItemState Description: fetch the state of the item which is be Drawing."video_abrepeat". index)."pageup"."video_sfwd"."down"."edit". if (userInput == "pagedown") print("userInput is pagedown")."down "video_completed"."pagedown"."right".com/site/farvoice/rssguide </script> getSelectedItemIndex Description: fetch the index of the item which is selected.moServices for Asus O!Play HDP-R1/R3(Air) https://sites. Input Parameters: None Output Parameters: Item 's state,such as: "focus"、"unfocus"、"inactive" Sample Code: <script> state_string = getDrawingItemState().2012 16:36 . </script> 5 din 28 21."return"."video_ffwd"."vid "video_repeat". Input Parameters: None Output Parameters: index Sample Code: <script> index = getSelectedItemIndex().

</script> currentUserInput Description: fetch the current user input currentUserInput() return the current user selection."pageup". It is often used inside <onUserInput> element in the script to know what's the user selection Input Parameters: None Output Parameters: Command,such as: "left". "down"."right"."edit"."enter".09. like "up". userInput = stringToUserSelect("enter")."down "video_completed"."down".com/site/farvoice/rssguide userSelectToString Description: change UserSelect to a command string Input Parameters: USR_SELECT userInput Output Parameters: command string Sample Code: <script> string = null.. "left" . string = userSelectToString(SELECT_S)."video_pause"."video_abrepeat".. </script> stringToUserSelect Description: change the command string to UserSelect Input Parameters: command string Output Parameters: USR_SELECT userInput Sample Code: <script> userInput = null. print(string)."video_sfwd".2012 16:36 ."video_stop"."video_ffwd"."return"."pagedown"."up".google. Sample Code: <script> 6 din 28 21."vid "video_repeat".RSS Guide .moServices for Asus O!Play HDP-R1/R3(Air) https://sites.

} </onRefresh> </script> getURL Description: fetch the content of an URL (local file and http:// 7 din 28 21. } </script> setRefreshTime Description: set the refresh time of the page. the refresh timer for the current page. Sample Code: <script> index = getFocusItemIndex()."down "video_completed". index = getFocusItemIndex().moServices for Asus O!Play HDP-R1/R3(Air) https://sites.09."pageup"."pagedown". if (index > 0) { postMessage("enter")."video_sfwd". when timer is up."video_abrepeat"."right".RSS Guide . in milliseconds.google. </script> postMessage Description: execution the command Input Parameters: command,such as: "enter" "left". print("onRefresh***********").com/site/farvoice/rssguide userInputuserInput = currentUserInput(). else print("userInput is not pageup")."enter".2012 16:36 ."vid "video_repeat". if (userInput == "pageup") print("userInput is pageup"). Output Parameters: return NULL."video_ffwd". Input Parameters: time millisecond Output Parameters: return None Sample Code: <script> <onRefresh> setRefreshTime(15000)."return". if (index > 0) { postMessage("enter")."up". the <onRefresh> element inside the script will be called."edit"."down"."video_stop"."video_pause".

RSS Guide . </script> getItemInfoArray Description: function returns a string with the values. price= price + getURL("http://download.yahoo.csv?s=aapl&f=l1"). Output Parameters: a string with the element values.yahoo.com /d/quotes.xml Output Parameters: the content of the URL Sample Code: <script> price="AAPL".finance. </script> catStringArray 8 din 28 21.finance. http://www.google. Input Parameters: url The URL of remote content.2012 16:36 . For example.09. </script> getCSVFromURL Description: get the CSV stirng from the url. separates with '\n'. separates with '\n' Sample Code: <script> titleArray = getItemInfoArray("title").moServices for Asus O!Play HDP-R1/R3(Air) https://sites.csv?s=aapl&f=l1").com/site/farvoice/rssguide only). it will contain only the '\n' without value Input Parameters: itemElementName The element name to be fetched item by item. If an item does not have the element.com /d/quotes. Output Parameters: Command Separated value Sample Code: <script> CSV_string = getCSVFromURL("http://download. Input Parameters: url The URL of remote content.google.com/video/rse1234.

Input Parameters: Index 0 based index.RSS Guide . </script> The return string is "CNN News" getStringArrayAt Description: Function gets an element from a string array. will return 2. "CNN News"). idArray = pushBackStringArray(idArray.moServices for Asus O!Play HDP-R1/R3(Air) https://sites.idArray = null. titleArray = pushBackStringArray(titleArray. "+"). Output Parameters: 9 din 28 21.2012 16:36 . </script> If stringArray contains: Taiwan Japan Canada The return string is "Taiwan+Japan+Canada" pushBackStringArray Description: Function append an element to the end of an existing string array. system will get the index from user’s current selection. "+") will generate "1+2+" 2. 1). When index equals to -1. "2"). "1").<script> titleArray = null. idArray = pushBackStringArray(idArray. the idArray will contain "1\n2\n".google. Use getStringArrayAt(idArray. use catStringArray(idArray.com/site/farvoice/rssguide Description: Function cat the string array with separator Input Parameters: separator Output Parameters: a string which cat values with separator Sample Code: <script> catStringArray(stringArray. Output Parameters: the new string array Sample Code: 1. A stringArray is a text string separated with \n. Input Parameters: element A char string.09.

Output Parameters: the new string array Sample Code: <script> urlFile = getStoragePath("tmp"). 0). The next call of loadXML file will destroy the previous DOM object and form the new one. </script> If stringArray contains Taiwan Japan Canada It will return Taiwan. urlFile = urlFile + "ppsUrl. if index = -1 mean current item index.2012 16:36 .google.dat".moServices for Asus O!Play HDP-R1/R3(Air) https://sites. new_string = deleteStringArrayAt(old_string. and create a global xml DOM object.com/site/farvoice/rssguide the value of array[index] Sample Code: <script> getStringArrayAt(stringArray. Default value is -1.RSS Guide . 10 din 28 21. Sample Code: <script> updateDisplay(). Input Parameters: stringArray and index.09. old_string = readStringFromFile(urlFile). </script> loadXMLFile Description: load an XML file from local storage or http protocol. deleteStringArrayAt Description: Function deletes an element from a string array. 0). </script> updateDisplay Description:Update the Diaplay Input Parameters: None Output Parameters: return NULL.

php?oem=realtek&classsize=5&page=1". Sample Code: <script> print("fail").ppstream.0.rss".com /rss/sample. or local file "/tmp/scripts/sample. else print("fail"). For example "http://www. Output Parameters: return NULL. </script> getItemInfo Description: function return the item value associate with the name. it is used when the web server will re-direct the link to other places like 11 din 28 21. Or it can be the videoID on storage after user download from playURL "playURL" : the web URL to the internet contents.). In this example. This link must be consistent on the web server..com/site/farvoice/rssguide Input Parameters: url the URL. print to debug console on windows Input Parameters: char string. arg2.RSS Guide .com /classfortv. Sample Code: <script> topUrl = "http://tv... if (dlok != null) print("success").google.google. Output Parameters: if fail to load the file.moServices for Asus O!Play HDP-R1/R3(Air) https://sites. function return NULL..2012 16:36 . Input Parameters: Index: the item index Name string: you can query the standard item elements defined inside RSS2.09. "mediaURL" : the direct URL path of the media file from internet. getItemInfo("xx") return "TEST". arg3 . </script> Print Description: print(arg1.rss". Any element text inside <item> <xx> TEST </xx> </item> can be queried by name. dlok = loadXMLFile(topUrl).

we use "link" to go to services. for example "rss_file://test.google.com/site/farvoice/rssguide youtube. Sample Code: <script> getItemInfo(1. "pageNumber": the page number of requested item is located indexForMultipleResults: default to 0. "itemCount" means how many items show in the current page.RSS Guide . </script> If rss contains <item> <xx> TEST </xx> </item> <item> 12 din 28 21. This is page releated attributes Input Parameters: Name string: e.09.g. </script> If rss contains <item> <xx> TEST </xx> </item> <item> <xx> TEST2 </xx> </item> It will return TEST. getPageInfo Description: function return the value associate with the name. which equal to the second prototype of this function Output Parameters: return the string of item value associate with the name. this is the url that the service will go to.2012 16:36 . Sample Code: <script> getPageInfo("itemCount"). name can be "itemCount" or "focusItemIndex". Output Parameters: return the string of current page value associate with the name.rss" will open the rss file in our browser.moServices for Asus O!Play HDP-R1/R3(Air) https://sites. "link" : when user select the item. XX). and if index = -1. function will fetch current focus item.

09. </script> getFocusItemIndex Description: return the current item index that the View is currently focus on.com/site/farvoice/rssguide <xx> TEST2 </xx> </item> It will return "2". It is not the focused item. Input Parameters: None 13 din 28 21. When your script is scanning the items by itself instead of user focus change. This function is useful in item_template to get the item index.google. use getQueryItemIndex. it is the item that the view is currently drawing Input Parameters: None Output Parameters: Index : the current item index that the View is currently scanning at Sample Code: <script> ItemIndex = getQueryItemIndex(). getQueryItemIndex Description: return the current item index that the View is currently scanning at. </script> getQueryMenuIndex Description: return the current menu index that the View is currently scanning at.2012 16:36 .RSS Guide . Input Parameters: None Output Parameters: Index : the current menu index that the View is currently scanning at Sample Code: <script> MenuIndex = getQueryMenuIndex().moServices for Asus O!Play HDP-R1/R3(Air) https://sites.

</script> addItem Description: add Item to current document. Input Parameters: None 14 din 28 21.2012 16:36 . Input Parameters: String: new element name Output Parameters: None Sample Code: <script> add("newitem").google. Function add an element to current page.com/site/farvoice/rssguide Output Parameters: FocusIndex : the current focus item index Sample Code: <script> FocusIndex = getFocusItemIndex().moServices for Asus O!Play HDP-R1/R3(Air) https://sites.RSS Guide . </script> If rss contains <channel> <item> <xx> TEST </xx> </item> </channel> <newitem> <xx> TEST2 </xx> </newitem> The modify rss to new : <channel> <item> <xx> TEST </xx> </item> <item> <xx> TEST2 </xx> </item> </channel> redrawDisplay Description: redraw the display.09.

print("context =". </script> If rss contain: <FileData> 15 din 28 21. 2. </script> If rss contain: <FilmData> <Film> </Film> <Film> </Film> <Film> </Film> <Film> </Film> </FilmData> It will return "4".RSS Guide . </script> getXMLElementCount Description: get the count of a specific element from xml dom object. "context"). "Film".context).2012 16:36 .09.moServices for Asus O!Play HDP-R1/R3(Air) https://sites."Film").com/site/farvoice/rssguide Output Parameters: None Sample Code: <script> redrawDisplay(). getXMLText Description: get the text of specific element from global xml dom object Input Parameters: name string of specific element Output Parameters: Context of element Sample Code: <script> context = getXMLText("FilmData". Input Parameters: name string of specific element Output Parameters: Count string Sample Code: <script> getXMLElementCount("FilmData".google.

</script> If rss contain: <FileData> <Film> <context>"Hello !" </context> </Film> <Film> <context>"Hello world !" </context> </Film> <FileData> It will return "attribute = text".com/site/farvoice/rssguide <Film> <context>"Hello !" </context> </Film> <Film> <context>"Hello world !" </context> </Film> <FileData> It will return "context = Hello world!". getURLforStock Description: get URL informations for stock Input Parameters: URL Path Output Parameters: None Sample Code: <script> dlok = getURLforStock(Xmlurl). attribute). </script> selectMenu Description: function will select the menu. "Film". "context").google.moServices for Asus O!Play HDP-R1/R3(Air) https://sites.09.2012 16:36 .RSS Guide . getXMLAttribute Description: get the attribute of a specific element from global xml dom object Input Parameters: name string of specific element Output Parameters: attribute of element Sample Code: <script> attribute = getXMLAttribute ("FilmData". print("attribute =". 16 din 28 21.

google. //will execute the script inside <testFunction> in the RSS scope </script> If rss contain: < testFunction > print("Hello !"). </script> setItemFocus Description: function will focus the menu.com/site/farvoice/rssguide Input Parameters: Menu index Output Parameters: None Sample Code: <script> SelectMenu(2). // will focus the 3rd menu item. < /testFunction > It will return "Hello!". Input Parameters: Menu index Output Parameters: None Sample Code: <script> SelectFocus(2).moServices for Asus O!Play HDP-R1/R3(Air) https://sites. // will select the 3rd menu item. jumpToLink Description: function will jump to other URL follow the description of a script block. Input Parameters: specific element string name Output Parameters: None Sample Code: <script> executeScript("testFunction").09.RSS Guide . </script> executeScript Description: function will execute a script block. 17 din 28 21.2012 16:36 .

5 itemYPC = 5 itemWidthPC = 95 itemHeightPC = 7 /> </nextLink1> It will jump to help.moServices for Asus O!Play HDP-R1/R3(Air) https://sites.dat contain "movie". </script> the context of thunderfocus. element2 : the element tag name to previewWindow. value Output Parameters: None Sample Code: <script> SelectTypePath = getStoragePath("tmp"). Output Parameters: 18 din 28 21.09.RSS Guide .google. writeStringToFile(SelectTypePath./multiMenu/scripts/help/help. playItemURL Description: play the "playURL" of item in previewWindow or full screen Input Parameters: Index element1.com/site/farvoice/rssguide Input Parameters: element link Output Parameters: None Sample Code: <script> jumplink("nextLink1"). </script> If rss contain: <nextLink1> <link> .rss writeStringToFile Description: write value to file Input Parameters: Filename. SelectTypePath = SelectTypePath + "thunderfocus. "movie").dat".2012 16:36 .rss</link> <mediaDisplay name=onePartView itemXPC = 2.

the <onRefresh> element inside the script will be called.moServices for Asus O!Play HDP-R1/R3(Air) https://sites. "up". "left".google. 0.RSS Guide . "mediaDisplay". "return". when timer is up. postMessage Decription: postMessage() post a user message to system you can post.2012 16:36 . </script> sprintf1 Integer1 sprintf Integer Add Minus getInput Decription: Function will pop up window to get user input.09. "previewWindow"). "enter". function will return the string from user input. "down". setRefreshTime(miliseconds). If user escape the input window.com/site/farvoice/rssguide None Sample Code: <script> playItemURL(content. getURL Decription: fetch the content from internet site. function will return "null". 19 din 28 21. "edit" setRefreshTime Decription: set the refresh timer for the current page. "right".

indexForMultipleResults default to 0. which equal to the second prototype of this function name: you can query the standard item elements defined inside RSS2.RSS Guide .rss" will open the rss file in our browser. For example.0 elements. "title". "durationHHMMSS" getPageInfo Decription: getPageInfo(name). please refer to RSS2. youtube has "rating". function will fetch current focus item.0 documentation. Or it can be the videoID on storage after user download from playURL "getplayURL" : the web URL to the internet contents. In this example. This is page releated attributes 20 din 28 21.09. indexForMultipleResults). getItemInfo("xx") return "TEST". "length". name. Any element text inside <item> <xx> TEST </xx> </item> can be queried by name. "mediaURL" : the direct URL path of the media file from internet. function return the value associate with the name.google. function return current focus item["name"][indexForMultipleResults]. that you can use getItemInfo to get the value corresponding to the "id" element. please see RSS2. we use "link" to go to services. getCSVFromURL Decription: fetch the content from internet site. function return the item[index] ["name"][indexForMultipleResults] value associate with the name.2012 16:36 . "pubDate" are default RSS2. it is used when the web server will re-direct the link to other places like youtube. which is comma separated string getItemInfo Decription: getItemInfo(index.com/site/farvoice/rssguide getURL(url). function return the http content in full text. getItemInfo(name. "duration". getCSVFromURL(url). "mediaType".0 spec "pageNumber": the page number of requested item is located Any XML file conform to our dataProivder can have any custom name-value pair. function return the http content parse to string array basing on CSV fomat. for rss definition. this is the url that the service will go to.0. indexForMultipleResults). Flickr xml feed has "id" element. This link must be consistent on the web server. for example "rss_file://test.moServices for Asus O!Play HDP-R1/R3(Air) https://sites. and if index = -1. "link" : when user select the item. "description". "viewcount".

com/site/farvoice/rssguide e. catStringArray Decription: catStringArray(stringArray. Function replace the string array with separator. it will contain only the '\n' without value this function is useful to get one data column of all items.RSS Guide . The return value is "focus". example: the "taipei \n tokyo \n" will become "taipei + tokyo +" 21 din 28 21. "unfocus". It might not equal to current focus. name can be "itemCount" or "focusItemIndex".2012 16:36 . "itemCount" means how many items show in the current page. it is the item that the view is currently drawing getQueryMenuIndex getFocusItemIndex Decription: getFocusItemIndex() return the current item index that the View is currently focus on. getFocusMenuIndex getSelectedItemIndex Decription: getSelectedItemIndex() return the last selected item.or "inactive" getItemInfoArray Decription: getItemInfoArray(itemElementName). getDrawingItemState Decription: getDrawingItemState() return the current drawing item state. If an item does not have the element.09. getQueryItemIndex Decription: getQueryItemIndex() return the current item index that the View is currently scanning at This function is useful in item_template to get the item index. use getQueryItemIndex. separates with '\n'. It is not the focused item. function return a string with the values. When your script is scanning the items by itself instead of user focus change.moServices for Asus O!Play HDP-R1/R3(Air) https://sites.g. "+").google.

Function get the indexth entry of the string array. and create a global xml dom object only one instance of xml at a time.2012 16:36 . then issue getStringArrayAt(string. t function will cause the number of element of the array reduce 1 addItem Decription: add Item to current document. example: addItem("newItem"). Call loadXML will switch to another xml document. Function delete the indexth entry of the string array. "photos". index). example: deleteStringArrayAt(stringArray) will delete the getQueryItemIndex.google.09.com/site/farvoice/rssguide getStringArrayAt Decription: getStringArrayAt(stringArray. and rename <newItem> to <item> redrawDisplay Decription: redraw the display loadXMLFile Decription: load an xml file from url. then rename and resolve the scripts inside <newItem> element. If return 5. if index = -1 mean current item index. getXMLElementCount Decription: return the count of a specific element from xml dom object example: getXMLElementCount("rsp". insert the <newItem> element inside <channel> domain. "photo"). example: getStringArrayAt(stringArray) will get the getQueryItemIndex. getQueryItemIndex). Default value is -1. Function add an element to current page.moServices for Asus O!Play HDP-R1/R3(Air) https://sites. the calling will find the <newItem> element under <rss> domain. index). if index = -1 mean current item index.RSS Guide . means there are 5 <photo> elements under <photos> element 22 din 28 21. Default value is -1. deleteStringArrayAt Decription: deleteStringArrayAt(stringArray.

The number 5 means the 5th "title" element. example.RSS Guide . "+") will generate "1+2+" getURLforStock Description: get URL informations for stock selectMenu Description: selectMenu(index). idArray = null. "channel". will execute the script inside <testFunction> in the RSS scope jumpToLink Description: jumpToLink will jump to other URL follow the description of a script block.google. "1"). "title"). "title". "url"). 5). idArray = pushBackStringArray(idArray.com/site/farvoice/rssguide getXMLText Decription: get the text of specific element from global xml dom object For example. Use getStringArrayAt(idArray. getXMLText("rss". For example. selectMenu(2) will select the 3rd menu item. idArray = pushBackStringArray(idArray. function will select the menu. "text"). please see getXMLText pushBackStringArray Description: push a string to the back of the string array. will return 2. For example.09. Usage. "content". use catStringArray(idArray. A stringArray is a text string separated with \n. Default element index is 0 for each element. 1). 23 din 28 21. "title". "channel". 5. executeScript Description: executeScript will execute a script block. "channel". "channel".2012 16:36 . is equal to ["rss"][0]["channel"][0]["title"] [5]["text"][6] getXMLAttribute Decription: get the attribute of a specific element from global xml dom object The last parameter is the attribute of the element. getXMLText("rss". "2"). the idArray will contain "1\n2\n". getXMLText("rss".moServices for Asus O!Play HDP-R1/R3(Air) https://sites. "text". getXMLText("rss". 5. executeScript("testFunction").

playItemURL Description: control video. a integer specify how much to buffer before playing. 2. and display idle image before video starts op=3: play video in URL.2012 16:36 . argument list: 1. 3. 24 din 28 21. and don't hide OSD op=5: play audio in URL (for audio file). offset.com/site/farvoice/rssguide jumpToLink("nextLink1"). url. element1. op : required operation code. URL can be a file path. the specified file will be played URL can be http URL. and only relevant if op is "play" URL can be a number.). required. optional startupfullness.6 .optional element strings to specify where the preview window is. optional chapIndex. default -1 4. you need to redraw the display. default -1 5..moServices for Asus O!Play HDP-R1/R3(Air) https://sites.09.. video will play full screen. a integer specify the chapter to start.google. not used./multiMenu/scripts/help/help. will follow the link inside <nextLink1> in the RSS scope example of <nextLink1> <nextLink1> <link>. a integer specify where to seek to to play. pause video on start. The setting will effect on the dataProvider If want to reflect on view..RSS Guide . startupfullness. element2. optional offset.4. playItemUrl will try to get the index item's playURL in current dataprovider.5 itemYPC = 5 itemWidthPC = 95 itemHeightPC = 7 /> </nextLink1> setItemFocus Description: setItemFocus(index). URL. If no preview window.rss</link> <mediaDisplay name=onePartView itemXPC = 2. not used. but pause the video on start op=4: play video in URL. default -1 3. function will set the item focus. chapIndex. play video in previewWindow or full screen !! general usage of the script function is playItemURL(op.5. the valid numbers are op=1: stop current video op=2: pause current video op=0: play the video in URL op=10: play video in URL.

2012 16:36 . getCachedStreamDataSize setPreviewWindow tearDownPlaybackFlow setVoutDisplay GetScreenSaverStatus SetScreenSaverStatus isInternalHDDExist getPTS updatePlaybackProgress Description: update playback progress bar updatePlaybackProgress(progress. "mediaDisplay". in the format of "current/max" both are integers. last element must be previewWindow element. then starting with 3. element1. If no video is playing. for example. all following arguments will be treated as element string. element2...RSS Guide . arg 3/4/5..moServices for Asus O!Play HDP-R1/R3(Air) https://sites. "previewWindow"). will be playItemURL(index.). ["mediaDisplay"][0]["previewWindow"][0].google. element2 is the element tag name to previewWindow. you get "0/100".09. readStringFromFile 25 din 28 21. element1. playAtTime getPlaybackStatus Description: get the status of video playback.com/site/farvoice/rssguide if arg 3/4/5 is not a number (startupfullness).

widthPC.google. xPC. heightPC).. symbol is "tmp".moServices for Asus O!Play HDP-R1/R3(Air) https://sites. send command to AP by user select 26 din 28 21. value) setEnv Description: set environment variable setEnv(name. yPC. cmd2 .. cmd1.com/site/farvoice/rssguide Description: read string from file readStringFromFile(fileName) writeStringToFile Description: write value to file writeStringToFile(fileName.2012 16:36 . xPC. temporary storage "tmp". drawImage(path..g. e.09. widthPC. heightPC).). value. "key" drawImageOnScreen Description: drawImageOnScreen will draw image on the on screen buffer. It will not effect backbuffer drawImageOnScreen(path. All refer to panelWidth and panelHeight drawImage Description: drawImage will draw image on the back buffer. overWrite) unsetEnv Description: unset environment variable getEnv Description: read environment variable getEnv(name) getStoragePath Description: get the path of local storage.RSS Guide . non-volitle storage "key" getStoragePath(symbol).. yPC. All refer to panelWidth and panelHeight urlEncode Description: function return encoded url menuCmd Description: menuCmd(AP_Name.

set Parent AP's display area fade deleteItem Description: remove an item from saved file.09. get current AP's name setParentFade Description: setParentFade().RSS Guide .google.2012 16:36 . The first word is the keyword.moServices for Asus O!Play HDP-R1/R3(Air) https://sites.com/site/farvoice/rssguide getCurrentAPName Description: getCurrentAPName(). it take multiple keywords. setFocusItemIndex Description: setFocusItemIndex set the current focus Item setFocusMenuIndex Description: setFocusMenuIndex set the current focus menu convertSpaceInUrl Description: convert ' ' in url to %20 prepareAnimation Description: prepare system for animation getErrorCode getErrorString doModalRss setReturnString googleServiceLogin Description: this is google authentication service (clientLogin). 27 din 28 21.

2012 16:36 .check youtube (logged in?) return youtubeUsername to be extended to other google services (picasa etc) cancelDownload Description: cancel the url downloading.moServices for Asus O!Play HDP-R1/R3(Air) https://sites.check youtube (logged in?) return auth string "status youtube .test1.test..google.for log into youtube. you can cancel multiple downloads in single function call Sample code: cancelDownload("http://www. "http://www.RSS Guide .09. with usr/pass return "success" if OK "status youtube Auth" .jpg".jpg") Sign in | Recent Site Activity | Report Abuse | Print Page | Remove Access | Powered By Google Sites 28 din 28 21.com/site/farvoice/rssguide "youtube usr pass" .com/sample." .com/1..