{codeBox}
<!DOCTYPE html>
<html lang="en">
<html lang="km">
<head>
<head>
<link href='https://raw.githack.com/Killer-GR/submovie/main/Admin-logo.css' rel='stylesheet'/>
<title>W88MOVIE</title>
</head>
<body>
<script src='https://raw.githack.com/Killer-GR/submovie/main/w88movie.js' type='text/javascript'></script>
<style>
#player {
position: absolute;
width: 100% !important;
height: 100% !important;
}
.jwplayer .jw-rightclick .jw-rightclick-list {
border-radius: 1px;
list-style: none;
margin: 0;
padding: 0;
display: none;
}
</style>
<!-- Player -->
<div id="player"></div>
<script>
const playerInstance = jwplayer("player").setup({
controls: true,
sharing: false,
displaytitle: false,
displaydescription: true,
abouttext: "Buy Me a Coffee",
aboutlink: "@mr_ron168",
skin: {
name: "netflix"
},
captions: {
color: "#FFF",
fontSize: 16,
backgroundOpacity: 100,
edgeStyle: "uniform"
},
playlist: [
{
title: "W88MOVIE",
description: "ភាពយន្តនេះនាំមកជូនដោយ W88MOVIE",
image: "",
sources: [
{
file:
"https://bigf.bigo.sg/asia_live/V4s7/13Ujhs.mp4",
label: "Auto",
default: true
},
{
file:
"",
label: "4k"
},
{
file:
"",
label: "1080p"
},
{
file:
"https://bigf.bigo.sg/asia_live/V4s7/13Ujhs.mp4",
label: "720p"
},
{
file:
"https://bigf.bigo.sg/asia_live/V4s7/13Ujhs.mp4",
label: "480p"
}],
captions: [
{file:"https://res.cloudinary.com/dcfl8m5ma/raw/upload/v1691862680/Movie%20Sub%20Hornor/They%20Talk%20to%20me%202021/Khmer_They.Talk.To.Me.2021_g8hynr.srt",
label: "ខ្មែរ",
kind: "captions",
default: true
},
{
file:"https://res.cloudinary.com/dcfl8m5ma/raw/upload/v1691862680/Movie%20Sub%20Hornor/They%20Talk%20to%20me%202021/En_They.Talk.To.Me._avnxb3.srt",
label: "English",
kind: "captions"
}],
}
],
advertising: {
client: "vast",
}
});
playerInstance.on("ready", function () {
const buttonId = "download-video-button";
const iconPath =
"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0Ij48cGF0aCBmaWxsPSJub25lIiBkPSJNMCAwaDI0djI0SDB6Ii8+PHBhdGggZD0iTTMgMTloMTh2Mkgzdi0yem0xMC01LjgyOEwxOS4wNzEgNy4xbDEuNDE0IDEuNDE0TDEyIDE3IDMuNTE1IDguNTE1IDQuOTI5IDcuMSAxMSAxMy4xN1YyaDJ2MTEuMTcyeiIgZmlsbD0icmdiYSgyNDcsMjQ3LDI0NywxKSIvPjwvc3ZnPg==";
const tooltipText = "Download";
// This function is executed when the button is clicked
function buttonClickAction() {
const playlistItem = playerInstance.getPlaylistItem();
const anchor = document.createElement("a");
const fileUrl = playlistItem.file;
anchor.setAttribute("href", fileUrl);
const downloadName = playlistItem.file.split("/").pop();
anchor.setAttribute("download", downloadName);
anchor.style.display = "none";
document.body.appendChild(anchor);
anchor.click();
document.body.removeChild(anchor);
}
// Move the timeslider in-line with other controls
const playerContainer = playerInstance.getContainer();
const buttonContainer = playerContainer.querySelector(".jw-button-container");
const spacer = buttonContainer.querySelector(".jw-spacer");
const timeSlider = playerContainer.querySelector(".jw-slider-time");
// Forward 10 seconds
const rewindContainer = playerContainer.querySelector(
".jw-display-icon-rewind"
);
const forwardContainer = rewindContainer.cloneNode(true);
const forwardDisplayButton = forwardContainer.querySelector(
".jw-icon-rewind"
);
forwardDisplayButton.style.transform = "scaleX(-1)";
forwardDisplayButton.ariaLabel = "Forward 10 Seconds";
const nextContainer = playerContainer.querySelector(".jw-display-icon-next"); nextContainer.parentNode.insertBefore(forwardContainer, nextContainer);
// control bar icon
playerContainer.querySelector(".jw-display-icon-next").style.display = "none"; // hide next button
const rewindControlBarButton = buttonContainer.querySelector(
".jw-icon-rewind"
);
const forwardControlBarButton = rewindControlBarButton.cloneNode(true);
forwardControlBarButton.style.transform = "scaleX(-1)";
forwardControlBarButton.ariaLabel = "Forward 10 Seconds"; rewindControlBarButton.parentNode.insertBefore(
forwardControlBarButton, rewindControlBarButton.nextElementSibling
);
// add onclick handlers
[forwardDisplayButton, forwardControlBarButton].forEach((button) => {
button.onclick = () => { playerInstance.seek(playerInstance.getPosition() + 10);
};
});
});
</script>
</body>
</html>
Sample Link https://raw.githack.com/Killer-GR/submovie/main/100%25Fix.html
0Comments