I'm working on WordPress site, and have programmatically integrated Video.js player in it. The screen is black and i can hear the audios. Most probably, it's due of bandwidth (as shown in screenshot attached).
Sometimes i'm able to watch videos, but most of the times, its black screen.
How to fix this issue. My code is as:
<link href="http://ift.tt/2eXF4I4" rel="stylesheet">
<script src="http://ift.tt/2vW8U6j"></script>
<script src="http://ift.tt/2eXxCMY"></script>
</head>
<body>
<?php
$var_value = $_GET['video_id'];
?>
<video id="my_video_1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="268" data-setup='{}'>
<source src="http://ift.tt/2vVxynL echo $var_value?>/<?php echo $var_value?>.m3u8" type="application/x-mpegURL">
</video>
<script src="http://ift.tt/2eXEauV"></script>
Please guide. Thanks.
Aucun commentaire:
Enregistrer un commentaire