GuidesAPI GuideChangelog
Log In
Guides

Basic Usage of the Library (Guest)

This section explains how to initialize and use the Saucelive player library in a typical web environment.

  • Install the Saucelive player on your web page by manually specifying its position and layout.
  • Customize the container layout by directly applying your own CSS styles.
  • Specify the broadcastId to play a particular broadcast.

Step 1. Setup

HTML

<script type="text/javascript" src="https://player.sauceflex.com/static/js/SauceLiveLib.js"></script>

<script>
window.addEventListener('load',()=>{
 window.SauceLiveLib.setInit({ broadcastId: 'Please enter the Broadcast ID.',id:'player'  }); 
})

</script>

Step 2. Installing the Player

Install the Saucelive player on your web page by setting its position and layout, and customizing the container’s style using CSS.

The following code allows you to run the player without passing user information.
By default, users will join as guests. If guest users wish to participate in chat, please contact your Saucelive representative to enable the necessary settings.

<style>
  #player {
    max-width: 360px;
    height: 612px;
    margin: auto;
  }
</style>
<div id="player"></div>
<script> 
  // If not specified, the ID will default to sauce_live.
  window.addEventListener('load',()=>{
   window.SauceLiveLib.load();
})

</script>

Example

<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>ONLINE STORE</title>
</head>
<body>
  <div id="sauce_live"></div>
</body>
<script type="text/javascript" src="https://player.sauceflex.com/static/js/SauceLiveLib.js"></script>
<script>
window.addEventListener('load',()=>{
 window.SauceLiveLib.setInit({ broadcastId: 'Please enter the broadcast ID.' }); 
 window.SauceLiveLib.load();
})
</script>
</html>


Did this page help you?
🏠 소스라이브 🎬 소스클립 🔗 소스링크 📢 소스애드
🧩 API 가이드
🆕 최근 업데이트
💬 도움이 더 필요하신가요?
메일로 문의 카카오톡 채널로 문의
담당자에게 문의하기

궁금한 점이나 불편했던 점을 남겨주시면 담당자가 확인 후 답변드릴게요.

가이드 챗봇 BETA
* AI를 활용해 답변해서 사실과 다를 수도 있어요. 더 궁금한 사항은 '담당자에게 문의하기'를 이용해주세요.
💡 궁금한 솔루션(예: 라이브, 링크 등)을 함께 적어주시면 더 정확한 답변을 받을 수 있어요.