MCPcopy Create free account
hub / github.com/mailru/FileAPI / getPlayers

Function getPlayers

flash/image/html-template/history/history.js:165–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 }
164
165 function getPlayers() {
166 var i;
167 var players = [];
168 if (players.length == 0) {
169 var tmp = document.getElementsByTagName('object');
170 for (i = 0; i < tmp.length; i++)
171 {
172 if (typeof tmp[i].browserURLChange != "undefined")
173 players.push(tmp[i]);
174 }
175 }
176 if (players.length == 0 || players[0].object == null) {
177 var tmp = document.getElementsByTagName('embed');
178 for (i = 0; i < tmp.length; i++)
179 {
180 if (typeof tmp[i].browserURLChange != "undefined")
181 players.push(tmp[i]);
182 }
183 }
184 return players;
185 }
186
187 function getIframeHash() {
188 var doc = getHistoryFrame().contentWindow.document;

Callers 3

hashChangeHandlerFunction · 0.70
checkForUrlChangeFunction · 0.70
history.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…