View Single Post
Old 02-08-2022, 02:25 PM  
camgirlpal
Registered User
 
camgirlpal's Avatar
 
Industry Role:
Join Date: Mar 2021
Posts: 8
How To Embed Stripchat Live Video

Code:
<div class="stream-container">
<video id="video" style="float: left; height: auto; width: 100%;" width="560" height="315" controls></video>
<script src="https://hls-js.netlify.app/dist/hls.js"></script>
</div>

<script>
  //Instructions:
  //1: find models username on Stripchat
  //2: replace GIRLNAME with models name in URL below
  //https://go.xxxiijmp.com/api/models?modelsList=GIRLNAME&strict=1
  //3: Paste Step 2 URL into web browser
  //4: find .m3u8 link in JSON.
  //5: replace hls.loadSource() with your .m3u8 URL
  
  //JSON File For Model
  //https://go.xxxiijmp.com/api/models?modelsList=GIRLNAME&strict=1
  var video = document.getElementById('video');
  if (Hls.isSupported()) {
    var hls = new Hls({
      debug: false,
    });
    hls.loadSource("https://b-hls-09.strpst.com/hls/71127951/71127951.m3u8");
    hls.attachMedia(video);
    hls.on(Hls.Events.MEDIA_ATTACHED, function() {
      video.muted = false;
      video.play();
    });
  }
</script>
Stripchat uses .m3u8 also known as HLS (Https Live Stream). It's technology created by Apple.

Happy website building.
camgirlpal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote