1/* 2 * Name: 3 * play_window.js 4 * 5 * Description: 6 * Defines functions for the Play Window 7 * width default 350 8 * height default 215 9 * 10 * Pre-conditions: 11 * None 12 * 13 * Post-conditions: 14 * Defines the following functions: 15 * 16 * Log: 17 * Shaunak Kashyap 11/21/2005 18 * - Creation 19 * 20 */ 21 22/* 23 * Name: 24 * openPlayer 25 * 26 * Description: 27 * Opens the play window 28 * 29 * Pre-conditions: 30 * audioType REQUIRED Type of audio 31 * audioId REQUIRED Id of audio 32 * width OPTIONAL width of play window 33 * height OPTIONAL height of play 34 * 35 * Post-conditions: 36 * The player is opened 37 * 38 * Log: 39 * Shaunak Kashyap 11/21/2005 40 * - Creation 41 * Kripa Shenai 01/09/2007 42 * - Cached Queries 43 * Prajapati Nilesh 15 Sep 2008 44 * - added other extra param to track the podcast statistics VX-2565 45 */ 46function openPlayer(audioType, audioId, statTrackStrInfo) { 47 48 cTyId = ''; 49 grpId = ''; 50 spcId = ''; 51 sbId = ''; 52 53 if (statTrackStrInfo && statTrackStrInfo != 'undefined') { 54 statTrackInfoArr = statTrackStrInfo.split('-'); 55 cTyId = statTrackInfoArr[0]; 56 grpId = statTrackInfoArr[1]; 57 spcId = statTrackInfoArr[2]; 58 sbId = statTrackInfoArr[3]; 59 } 60 width = 350; 61 height = 215; 62 var playWindowUrl = "/play_window.php"; 63 playWindowUrl += "?audioType=" + audioType;
64 playWindowUrl += "&audioId=" + audioId; 65 66 if (sbId && sbId != 'undefined') { 67 playWindowUrl += "&contentType=" + cTyId; 68 playWindowUrl += "&spcId=" + spcId; 69 playWindowUrl += "&sbId=" + sbId; 70 playWindowUrl += "&groupId=" + grpId; 71 } 72 73 74 window.open(playWindowUrl, "playWindow", "width="+ width + ",height="+ height+ ",resizable=no,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no"); 75} // END function - openPlayer 76 77 78/* 79 * Name: 80 * playPause 81 * 82 * Description: 83 * play Pause the audio player 84 * 85 * Pre-conditions: 86 * audioPlayerId REQUIRED player id 87 * 88 * Post-conditions: 89 * Starts or pause the audio player 90 * 91 * Log: 92 * Chanda Kudale 02/25/2011 93 * - Creation [VI-1909] 94 */ 95function playPause(audioPlayerId, playBtn, pauseBtn){ 96 audioPlayerLink = document.getElementById("img_"+audioPlayerId); 97 audioPlayed = document.getElementById("hdn_"+audioPlayerId).value; 98 99 if(audioPlayed == "play"){ 100 document.getElementById(audioPlayerId).play(); 101 audioPlayerLink.src = pauseBtn 102 document.getElementById("hdn_"+audioPlayerId).value = "pause" 103 } 104 else{ 105 document.getElementById(audioPlayerId).pause(); 106 audioPlayerLink.src = playBtn; 107 document.getElementById("hdn_"+audioPlayerId).value = "play"; 108 } 109} 110 111/* 112 * Name: 113 * startAudioPlayer 114 * 115 * Description: 116 * Starts the audio player 117 * 118 * Pre-conditions: 119 * audioPlayerId REQUIRED player id 120 * 121 * Post-conditions: 122 * Starts the audio player 123 * 124 * Log: 125 * Chanda Kudale 02/21/2011 126 * - Creation [VI-1909] 127 */ 128function startAudioPlayer(audioPlayerId,src){ 129 document.getElementById(audioPlayerId).play(); 130 audioPlayerLink = document.getElementById("img_"+audioPlayerId); 131 audioPlayerLink.src = src; 132 document.getElementById("hdn_"+audioPlayerId).value = "pause" 133} 134 135 136 137/* 138 * Name: 139 * openSubscribeWindow 140 * 141 * Description: 142 * Opens the podcast subscrible window 143 * 144 * Pre-conditions: 145 * contentType REQUIRED Content Type 146 * contentId REQUIRED Id of Content 147 * 148 * Post-conditions: 149 * The podcast subscrible is opened 150 * 151 * Log: 152 * Li Zheng 11/29/2006 153 * - Creation 154 * - Cached Queries 155 * Prajapati Nilesh 15 Sep 2008 156 * - added other extra param to track the podcast statistics VX-2565 157 */ 158function openSubscribeWindow(contentType,contentId, statTrackStrInfo) { 159 160 cTyId = ''; 161 grpId = ''; 162 spcId = ''; 163 sbId = ''; 164 165 if (statTrackStrInfo && statTrackStrInfo != 'undefined') { 166 statTrackInfoArr = statTrackStrInfo.split('-'); 167 cTyId = statTrackInfoArr[0]; 168 grpId = statTrackInfoArr[1]; 169 spcId = statTrackInfoArr[2]; 170 sbId = statTrackInfoArr[3]; 171 } 172 173 width = 500; 174 height = 500; 175 var subscribleWindowUrl = "/podcast_chooser.php"; 176 subscribleWindowUrl += "?contentType=" + contentType; 177 subscribleWindowUrl += "&contentId=" + contentId; 178 179 if (sbId && sbId != 'undefined') { 180 //subscribleWindowUrl += "&contentType=" + cTyId; 181 subscribleWindowUrl += "&spcId=" + spcId; 182 subscribleWindowUrl += "&sbId=" + sbId; 183 subscribleWindowUrl += "&groupId=" + grpId; 184 } 185 186 window.open(subscribleWindowUrl, "subscribleWindowUrl", "width="+ width + ",height="+ height+ ",resizable=yes,scrollbars=yes,toolbar=no,location=yes,directories=no,status=no,menubar=no"); 187} // END function - openSubscribeWindow
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.