en:tvipjsapi:2
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:tvipjsapi:2 [2015/09/29 15:55] – [void updateStartEndTime(String id, String start, String end);] Alexi | en:tvipjsapi:2 [2017/08/04 14:52] (current) – [bool addMountPoint(int id, bool temp, int type, String name, Object options);] Alexander | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// | + | |
| ====== TVIP JavaScript API #2 ====== | ====== TVIP JavaScript API #2 ====== | ||
| Line 35: | Line 35: | ||
| Add or change mount point with indicated //id//. | Add or change mount point with indicated //id//. | ||
| - | If //temp// equal //true//, then mount point will be saved after device reload, if //false// - then mount point will be deleted after reload or application restart.The possible mount points types (//type//): 1 - SMB, 2 - NFS. Point name at mount system (for example, at pop-up message): //name//. Parameter //options// set specific options as object: | + | If //temp// equal //false//, then mount point will be saved after device reload, if //true// - then mount point will be deleted after reload or application restart.The possible mount points types (//type//): 1 - SMB, 2 - NFS. Point name at mount system (for example, at pop-up message): //name//. Parameter //options// set specific options as object: |
| SMB: | SMB: | ||
| Line 71: | Line 71: | ||
| ====String getCurrentTimezone(); | ====String getCurrentTimezone(); | ||
| - | Return | + | Returns |
| \\ \\ | \\ \\ | ||
| Line 113: | Line 113: | ||
| ====String getEnvValue(String name);==== | ====String getEnvValue(String name);==== | ||
| - | Get variable from the browser store. If //name// not found, empty string returns. | + | Gets variable from the browser store. If //name// not found, empty string returns. |
| \\ \\ | \\ \\ | ||
| Line 119: | Line 119: | ||
| ====String getMainMacAddress(); | ====String getMainMacAddress(); | ||
| - | Returns main MAC address as string. Usually it's Ethernet interface | + | Returns main MAC address as string. Usually it's Ethernet interface |
| \\ \\ | \\ \\ | ||
| Line 135: | Line 135: | ||
| ====List getSmbServers(String group);==== | ====List getSmbServers(String group);==== | ||
| - | Perform | + | Performs |
| Example: \\ | Example: \\ | ||
| < | < | ||
| Line 189: | Line 189: | ||
| ====void launchPreferences(); | ====void launchPreferences(); | ||
| - | Launch | + | Launches |
| \\ \\ | \\ \\ | ||
| Line 196: | Line 196: | ||
| ====void logDebug(String message); | ====void logDebug(String message); | ||
| - | Output | + | Outputs |
| \\ \\ | \\ \\ | ||
| Line 202: | Line 202: | ||
| ====void rebootSystem(); | ====void rebootSystem(); | ||
| - | Reboot | + | Reboots |
| \\ \\ | \\ \\ | ||
| Line 209: | Line 209: | ||
| ====void removeMountPoint(int id);==== | ====void removeMountPoint(int id);==== | ||
| - | Remove | + | Removes |
| \\ \\ | \\ \\ | ||
| Line 215: | Line 215: | ||
| ====void setColorKey(int color);==== | ====void setColorKey(int color);==== | ||
| - | Setup UI color that could be consider as transparent for video layer. //color// in RGB model. | + | Setups |
| \\ \\ | \\ \\ | ||
| Line 221: | Line 221: | ||
| ====void setCustomHeader(String header, String value);==== | ====void setCustomHeader(String header, String value);==== | ||
| - | Define | + | Defines |
| //header// - header name, //value// - header value. If //value// is empty, previously defined header will be purged. | //header// - header name, //value// - header value. If //value// is empty, previously defined header will be purged. | ||
| Line 229: | Line 229: | ||
| ====void setEnvValue(String name, String value);==== | ====void setEnvValue(String name, String value);==== | ||
| - | Save variable in browsers persistent storage. All variables are available for all browser pages. | + | Saves variable in browsers persistent storage. All variables are available for all browser pages. |
| \\ \\ | \\ \\ | ||
| Line 235: | Line 235: | ||
| ====void setDirectoryListFilters(String filters); | ====void setDirectoryListFilters(String filters); | ||
| - | Setup filename filter for getDirectoryFiles and getDirectoryDirs. **|** Will be count as delimiter. \\ | + | Setups |
| **?** and ***** applicable as well. \\ | **?** and ***** applicable as well. \\ | ||
| e.g. | e.g. | ||
| Line 270: | Line 270: | ||
| ====void setStandBy(bool enabled); | ====void setStandBy(bool enabled); | ||
| - | Switch | + | Switches |
| \\ \\ | \\ \\ | ||
| Line 281: | Line 281: | ||
| ====void reset(); | ====void reset(); | ||
| - | Reset settings: \\ transparent color; \\ HTTP-header; | + | Resets |
| \\ \\ | \\ \\ | ||
| Line 289: | Line 289: | ||
| ====void reset(); | ====void reset(); | ||
| - | Reset playback. If we don't need playback after page change this routine should be called. | + | Resets |
| \\ \\ | \\ \\ | ||
| Line 336: | Line 336: | ||
| ====void unpause(); | ====void unpause(); | ||
| - | Continue | + | Continues |
| \\ \\ | \\ \\ | ||
| Line 342: | Line 342: | ||
| ====void seek(int position); | ====void seek(int position); | ||
| - | Set playback // | + | Sets playback // |
| \\ \\ | \\ \\ | ||
| Line 451: | Line 451: | ||
| ==== String addRecord(String name, String url, String path, String start, String end); ==== | ==== String addRecord(String name, String url, String path, String start, String end); ==== | ||
| - | Добавляет новое задание на запись эфира. \\ Здесь: //name// - произвольное имя записи, //url// - URL потока | + | Adds new record job. \\ |
| - | Возвращает уникальный идентификатор созданного задания. | + | Here: \\ |
| + | //name// - record name, \\ | ||
| + | //url// - stream | ||
| + | //path// - Local path to record, \\ | ||
| + | //start// и //end// - start/stop time in UNIX TIMESTAMP | ||
| + | Returns unique record job id. | ||
| \\ \\ | \\ \\ | ||
| ==== bool cancelRecord(String id, bool removeFile); | ==== bool cancelRecord(String id, bool removeFile); | ||
| - | Удаляет задание на запись с уникальным идентификатором | + | Removes record job by // |
| + | Returns | ||
| \\ \\ | \\ \\ | ||
| ==== void updateStartEndTime(String id, String start, String end); ==== | ==== void updateStartEndTime(String id, String start, String end); ==== | ||
| - | Меняет время начала и/или окончания записи с уникальным идентификатором //id//. Если требуется поменять только одно из значений, | ||
| Updates start time or(and) end time of recording //id//. If we need to set only one parameter leave second one empty. \\ | Updates start time or(and) end time of recording //id//. If we need to set only one parameter leave second one empty. \\ | ||
| Fromat for //start// //end// see at addRecord | Fromat for //start// //end// see at addRecord | ||
en/tvipjsapi/2.1443542146.txt.gz · Last modified: by Alexi
