<?php

$share_link = get_field('share_link');

if($share_link){
	$audio_id_from_share_link = basename($share_link);
}

?>



<section <?php echo  get_block_wrapper_attributes(array('class' => 'block-custom-video custom-video content-section')) ?>>
	<div style="position: relative; width: 100%; height: 80px; overflow: hidden;">
		<iframe id="ik-vod-<?php echo $audio_id_from_share_link ; ?>" class="ik-player-1jhvl2upwockr ik-embed" src="https://player.vod2.infomaniak.com/embed/<?php echo $audio_id_from_share_link ; ?>" width="100%" height="80px" style="position: absolute; top: 0; left: 0; right: 0; bottom: 0" allowfullscreen crossorigin="anonymous" frameborder="0" allow="autoplay; fullscreen; picture-in-picture"></iframe>
	</div>
</section>


