status api daylimotion
Posté : 18 sept. 2012, 20:07
Bonsoir , je cherche comment utilise api daylimotion pour dire si le live est on ou off et afficher une image 
J'ai commencer un peu , mais je sens que c'est faux
Merci à vous
J'ai commencer un peu , mais je sens que c'est faux
Code : Tout sélectionner
<script type="text/javascript">
function change(type){
switch (type) {
$.getJSON("https://api.dailymotion.com/video/XxxX&fields=onair", function(json){
if(json.onair == true){attr("src","images/webtv/webtv_on.jpg");
}
});
break
default:
break;
}
});
});
</script>