Webcam

Here is a live insight on the grounds of casayohana in Peru and the current construction progress.

const token_request_url = "https://my.angelcam.com/broadcasting/api/domain-lock-validation/bolkpd75y8/"; const webcam_url = "https://v.angelcam.com/iframe?v=bolkpd75y8&token="; const payload = {"domain": "casayohana.click2stream.com"}; jQuery.post(token_request_url, payload, function( data ) { console.log(data); if (data.valid == true) jQuery('#webcam-frame').attr('src', (webcam_url + data.token)); else alert('something went wrong');}); function webcamKeepAspectRatio(){ jQuery( "#webcam-frame" ).height( parseInt(jQuery("#webcam-frame").width()/4.0*3.0 ));} jQuery( window ).load(webcamKeepAspectRatio); jQuery( window ).resize(webcamKeepAspectRatio); #webcam-frame { min-height: 75vmin; min-width: 100vmin; padding-bottom: 30px; display:block; margin: 0 auto;}
X