MCPcopy Create free account
hub / github.com/ActiveState/code / play_state_str

Function play_state_str

recipes/JavaScript/578517_Music_player/recipe-578517.js:1214–1223  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1212}
1213
1214function play_state_str(s)
1215{
1216 if (s=="3") s="Playing";
1217 if (s=="2") s="Paused";
1218 if (s=="1") s="Stopped";
1219 if (s=="0") s="Loading";
1220 if (s=="10") s="Loading";
1221 if (s=="9") s="Loading";
1222 return s;
1223}
1224
1225function smart_play_state()
1226{

Callers 1

dec_timerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected