function showOnUserInput() { ?> <onUserInput> ret = "false"; userInput = currentUserInput(); if (userInput == "<?php echo getRssCommand('enter'); ?> " || userInput == "<?php echo getRssCommand('right'); ?> ") { idx = getFocusItemIndex(); url = getItemInfo( idx, "link" ); act = getItemInfo( idx, "action" ); if( act == "rss" ) { url = doModalRss(url); } else if ( act == "search" ) { str = doModalRss("<?php echo getMosUrl() . '?page=rss_keyboard'; ?> "); if(( str != null )&&( str != "" )) { url = url + urlEncode(str); } else url = ""; } setReturnString( url ); postMessage( "<?php echo getRssCommand('return'); ?> " ); ret = "true"; } else if (userInput == "<?php echo getRssCommand('left'); ?> ") { postMessage( "<?php echo getRssCommand('return'); ?> " ); ret = "true"; } ret; </onUserInput> <?php }
public function showOnUserInput() { ?> <onUserInput> ret = "false"; i = getFocusItemIndex(); userInput = currentUserInput(); if (userInput == "<?php echo getRssCommand('up'); ?> ") { if( ( i % <?php echo $this->_rowCount; ?> ) == 0 ) ret = "true"; } else if (userInput == "<?php echo getRssCommand('down'); ?> ") { if( ( ( i - -1 ) % <?php echo $this->_rowCount; ?> ) == 0 ) ret = "true"; } else if (userInput == "<?php echo getRssCommand('menu'); ?> " || userInput == "<?php echo getRssCommand('rewind'); ?> ") { url = "<?php echo getMosUrl() . '?page=rss_services_menu'; ?> "; url = doModalRss(url); if(( url != null )&&( url != "" )) { moUrl = url; savedItem = i; setRefreshTime(1); } ret = "true"; } ret; </onUserInput> <?php }
public function showOnUserInput() { ?> <onUserInput> ret = "false"; i = getFocusItemIndex(); userInput = currentUserInput(); if (userInput == "<?php echo getRssCommand('up'); ?> ") { if( ( i % <?php echo $this->_rowCount; ?> ) == 0 ) ret = "true"; } else if (userInput == "<?php echo getRssCommand('down'); ?> ") { if( ( ( i - -1 ) % <?php echo $this->_rowCount; ?> ) == 0 ) ret = "true"; } ret; </onUserInput> <?php }
public function showScripts() { ?> <onEnter> moUrl = "<?php echo getMosUrl() . '?page=xml_keyboard'; ?> "; inputText = ''; inputTextArray = null; inputTextCount = 0; setRefreshTime(1); </onEnter> <onRefresh> setRefreshTime(-1); showIdle(); itemCount = 0; dlok = getURL( moUrl ); if (dlok != null) { c = 0; pageTitle = getStringArrayAt(dlok, c); c += 1; itemCount = getStringArrayAt(dlok, c); c += 1; nameArray = null; count = 0; while( count != itemCount ) { nameArray = pushBackStringArray( nameArray, getStringArrayAt(dlok, c)); c += 1; count += 1; } } if( itemCount == 0 ) postMessage( "<?php echo getRssCommand('return'); ?> " ); setFocusItemIndex( 0 ); cancelIdle(); redrawDisplay(); </onRefresh> <onExit> setRefreshTime(-1); </onExit> <?php }
public function showScripts() { ?> <onEnter> itemCount = getPageInfo( "itemCount" ); cItem = <?php echo $this->cItem; ?> ; startVideo = 1; cPlayPause = 1; setRefreshTime(100); </onEnter> <onExit> playItemURL(-1, 1); setRefreshTime(-1); </onExit> <onRefresh> if (startVideo == 1) { playItemURL(-1, 1); cTitle = getItemInfo( cItem, "title" ); cImg = getItemInfo( cItem, "image" ); cUrl = getItemInfo( cItem, "link" ); cAct = getItemInfo( cItem, "action" ); if( cAct == "get" ) { showIdle; cUrl = getUrl( cUrl ); cancelIdle; } setRefreshTime(1000); startVideo = 0; showInfo = 1; timeLine = ""; playItemURL(cUrl, 0, "mediaDisplay", "previewWindow"); } vidProgress = getPlaybackStatus(); bufProgress = getCachedStreamDataSize(0, 262144); playElapsed = getStringArrayAt(vidProgress, 0); playTotal = getStringArrayAt(vidProgress, 1); playStatus = getStringArrayAt(vidProgress, 3); if (playElapsed != 0) { x = Integer(playElapsed / 60); h = Integer(playElapsed / 3600); s = playElapsed - (x * 60); m = x - (h * 60); if(h < 10) elapsedTime = "0" + sprintf("%s:", h); else elapsedTime = sprintf("%s:", h); if(m < 10) elapsedTime += "0"; elapsedTime += sprintf("%s:", m); if(s < 10) elapsedTime += "0"; elapsedTime += sprintf("%s", s); x = Integer(playTotal / 60); h = Integer(playTotal / 3600); s = playTotal - (x * 60); m = x - (h * 60); if(h < 10) totalTime = "0" + sprintf("%s:", h); else totalTime = sprintf("%s:", h); if(m < 10) totalTime += "0"; totalTime += sprintf("%s:", m); if(s < 10) totalTime += "0"; totalTime += sprintf("%s", s); timeLine = elapsedTime+"/"+totalTime; if (startVideo == 0) { if( showInfo == 1 ) { startVideo = 2; statusTimeout = 5; } } else { if( showInfo == 0 ) statusTimeout = 0; else statusTimeout -= 1; if ( statusTimeout == 0 ) { updatePlaybackProgress("delete", "mediaDisplay", "progressBar"); showInfo = 0; startVideo = 0; } } } else if (playStatus == 0) { postMessage("<?php echo getRssCommand('return'); ?> "); } if(showInfo == 1) { updatePlaybackProgress(bufProgress, "mediaDisplay", "progressBar"); } </onRefresh> <?php }