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

Function getPlayers

flash/core/html-template/history/history.js:156–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154 }
155
156 function getPlayers() {
157 var i;
158 var players = [];
159 if (players.length == 0) {
160 var tmp = document.getElementsByTagName('object');
161 for (i = 0; i < tmp.length; i++)
162 {
163 if (typeof tmp[i].browserURLChange != "undefined")
164 players.push(tmp[i]);
165 }
166 }
167 if (players.length == 0 || players[0].object == null) {
168 var tmp = document.getElementsByTagName('embed');
169 for (i = 0; i < tmp.length; i++)
170 {
171 if (typeof tmp[i].browserURLChange != "undefined")
172 players.push(tmp[i]);
173 }
174 }
175 return players;
176 }
177
178 function getIframeHash() {
179 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…