Web Sitesinde bulunan bir videonu indirilmesi

Kodla Büyü

asp-php

Süper Üye
Süper Üye
Mesajlar
1,648
Merhaba arkadaşlar.
Bir uzaktan eğitim sitesi ( üyesi olduğum / eğitimcinin izin verdiği ) bir siteden dersleri indirmeye çalışıyorum.

Video url sini bir türlü çözemedim. Yardımcı olabilecek olan var mı?
Teşekkürler..


<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#252158">
<link rel="stylesheet" href="../fontawesome/css/all.css">
<link rel="stylesheet" href="../css/live.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css">
<link rel="icon" href="../img/favicon_1.ico" type="image/x-icon">
<title>Pixagor Live | </title>
</head>
<script>
const roomID = `sirius2022`;
const userID = `136019`;
const userName = `İNCİ ABAY`;
const mp4 = ``;
const p1080 = `https://video.pixagor.net/video/sinif/sirius2022/2022/1/video1080p/1080p.m3u8`;
const p720 = `https://video.pixagor.net/video/sinif/sirius/2022/1/video720p/720p.m3u8`;
const p480 = `https://video.pixagor.net/video/sinif/sirius/2022/1/video480p/480p.m3u8`;
const p360 = `https://video.pixagor.net/video/sinif/sirius2022/2022/1/video360p/360p.m3u8`;
const count = `1`;
const course_id = `46`;
</script>
<body>
<div class="container-fluid position-relative fullheight p-0">
<div class="container-fluid position-absolute top-0 start-0" style="z-index:100;">
<div class="row">
<div class="col-6 py-3 d-flex align-items-center justify-content-center justify-content-sm-start">
<img src="../img/Pixagor_Logo_Grad_Small.svg" alt="" class="logo-height d-none d-sm-block">
<img src="../img/Pixagor_Logo_Grad_Small_Neg.svg" alt="" class="logo-height d-block d-sm-none">
</div>
<div class="col-6 d-flex flex-column align-items-end justify-content-start py-3">
<h4 class="mb-0 btn btn-dark rounded shadow text-uppercase mb-3" id="name">Deneme İsim</h4>
<button type="button" class="btn btn-primary text-white text-decoration-none rem1-regular mb-3" data-bs-toggle="offcanvas" data-bs-target="#chatScreen" aria-controls="chatScreen" id="activateChat">Sohbeti Aç <i class="fas fa-comments ms-2"></i></button>
<a href="/userpanel?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJweF9jb2RlIjoxMzYwMTksImlhdCI6MTcxNjE1MDM2Mn0.5JfRVObHr0NbfPYLCefiJry3eKOZqsm4-90oACDGesA" class="btn btn-danger text-white text-decoration-none rem1-regular" onclick="return confirm('Panele dönmek istediğinize emin misiniz?')">Panele Dön<i class="far fa-sign-out-alt ms-3"></i></a>
</div>
</div>
</div>
<div class="container-fluid h-100 bg-dark position-relative z-index-0" id="videoContainer">
<div class="wrapper h-100 w-100 d-flex align-items-center justify-content-center" id="videoPlay">
<div id="ontape"></div>
</div>
</div>
</div>

<!-- Messages Offcanvas -->
<div class="offcanvas offcanvas-end bg-light border-start border-dark" data-bs-backdrop="false" tabindex="-1" id="chatScreen" aria-labelledby="chatScreenLabel" style="min-width: 25%;">
<div class="offcanvas-header offcanvas-header-height py-2 px-4 d-flex align-items-center justify-content-between border-bottom border-dark">
<h5 id="chatScreenLabel" class="mb-0 textshadow"><img src="../img/Pixagor_Logo_Grad_Small.svg" alt="" style="height: 2rem;"> Pixagor Chat</h5>
<button type="button" class="btn-close text-reset bg-white text-white p-2 shadow rounded-circle" data-bs-dismiss="offcanvas" aria-label="Close" id="dismissChat"></button>
</div>
<div class="offcanvas-body offcanvas-body-height py-2">
<div class="h-100 w-100 d-flex flex-column justify-content-start border-bottom border-dark overflow-auto pb-3" id="messages">

</div>
</div>
</div>

<script src="../js/popper.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script type="module" src="../js/ontape.js"></script>
<script src="../js/height.js"></script>
<script src="../js/replaychat.js"></script>
<script src="../ovenplayer/ovenplayer.js"></script>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dashjs/3.2.1/dash.all.min.js" integrity="sha512-K8ychE2luu1+zrt4MiDhr8L8B6zPB+x/EofroMF6LygAn+Oh/EadU18WgChXuOeCAan0y5/IQGS06izToR8xnQ==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script>
var player = OvenPlayer.create("ontape", {
loop : false,
autoStart : true,
volume : 100,
controls : true,
disableSeekUI: false,
rtmpBufferTime : 1,
rtmpBufferTimeMax : 3,
title : "",
image : "../img/Pixagor_Logo_Grad_Small.svg",
adClient : "googleima",

waterMark: {
text: `PX-${userID}`,
position: 'top-left',
y: '20px',
x: '20px',
width: '40px',
height: '30px',
opacity: 0.7
},

sources: [
/*{
type: 'mp4',
file: `${mp4}`,
label: 'mp4',
index: 0,
},
{
type: 'hls',
file: `${p1080}`,
label: '1080p',
index: 1,
},*/
{
type: 'hls',
file: `${p720}`,
label: '720p',
index: 2,
default: 'true'
},
{
type: 'hls',
file: `${p480}`,
label: '480p',
index: 3,
},
/*{
type: 'hls',
file: `${p360}`,
label: '360p',
index: 4,
},*/
],
});
//! get position as seconds
// setInterval(()=>{
// player.once('time', function(data){
// console.log(Math.floor(data.position))
// })
// },1000)
hljs.initHighlightingOnLoad();
</script>
</body>
</html>
 
Geri
Üst