Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Stream - qrxx.pl</title>
- <link rel="icon" type="image/x-icon" href="https://parspng.com/wp-content/uploads/2022/01/tvpng.parspng.com-2.png">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/shaka-player/4.2.0/controls.min.css">
- <link rel="stylesheet" href="https://lucksy.github.io/shaka-player-themes/dist/brands/youtube-theme/youtube-theme.css">
- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
- <script src="https://cdnjs.cloudflare.com/ajax/libs/shaka-player/4.2.0/shaka-player.ui.js"></script>
- <script src="https://lucksy.github.io/shaka-player-themes/dist/brands/youtube-theme/youtube-script.js"></script>
- <script id="aclib" type="text/javascript" src="//acscdn.com/script/aclib.js"></script>
- <style>
- /* General Styles */
- body {
- margin: 0;
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
- background-color: #121212;
- color: #e0e0e0;
- display: flex;
- flex-direction: column;
- min-height: 100vh;
- }
- /* Header Styles */
- .header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 20px 40px;
- background-color: #1e1e1e;
- position: sticky;
- top: 0;
- z-index: 1000;
- border-bottom: 1px solid #333;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
- }
- .header h1 {
- margin: 0;
- font-size: 32px;
- color: #00aaff;
- }
- .header .back-button {
- padding: 10px 20px;
- font-size: 16px;
- color: #ffffff;
- background-color: #00aaff;
- border: none;
- border-radius: 5px;
- cursor: pointer;
- transition: background-color 0.3s, transform 0.3s;
- text-decoration: none;
- }
- .header .back-button:hover {
- background-color: #ffaa00;
- transform: scale(1.05);
- }
- /* Video Container Styles */
- #video-container {
- width: 100%;
- height: auto;
- max-width: 1200px; /* Adjust maximum width as needed */
- margin: 20px auto;
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
- border-radius: 10px;
- overflow: hidden;
- background-color: #2b2b2b;
- }
- #video-container video {
- width: 100%;
- height: 100%;
- border-radius: 10px;
- }
- /* EPG Container Styles */
- .epg-container {
- max-width: 800px;
- margin: 20px auto;
- padding: 20px;
- background-color: #1e1e1e;
- border-radius: 10px;
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
- }
- .stationItem {
- margin-bottom: 20px;
- padding: 15px;
- border-radius: 8px;
- background-color: #2b2b2b;
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
- transition: box-shadow 0.3s;
- display: flex;
- align-items: center;
- justify-content: center; /* Center content vertically */
- }
- .stationItem.loading::after {
- content: 'Åadowanie EPG...';
- color: #555;
- font-size: 16px;
- font-style: italic;
- }
- .stationItem:hover {
- box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
- }
- .stationItem img {
- width: 120px;
- height: 90px;
- object-fit: cover;
- border-radius: 8px;
- margin-right: 20px;
- }
- .detail {
- flex: 1;
- color: #e0e0e0;
- }
- .detail a {
- text-decoration: none;
- color: #00aaff;
- font-weight: bold;
- display: block;
- margin-bottom: 5px;
- font-size: 18px;
- transition: color 0.3s;
- }
- .detail a:hover {
- color: #ffaa00;
- }
- .detail p {
- margin: 5px 0;
- color: #bbbbbb;
- font-size: 16px;
- }
- .detail time {
- display: block;
- color: #999;
- font-size: 0.9em;
- margin-bottom: 5px;
- }
- .detail p.genre {
- font-style: italic;
- margin-bottom: 5px;
- }
- /* Buttons Container Styles */
- .buttons-container {
- display: flex;
- justify-content: center;
- gap: 20px;
- margin: 20px 0;
- flex-wrap: wrap;
- }
- .buttons-container a {
- text-decoration: none;
- }
- .button {
- padding: 15px 30px;
- font-size: 18px;
- color: #ffffff;
- background-color: #00aaff;
- border: none;
- border-radius: 5px;
- cursor: pointer;
- transition: background-color 0.3s, transform 0.3s;
- }
- .button:hover {
- background-color: #ffaa00;
- transform: scale(1.05);
- }
- /* Responsive Styles */
- @media (max-width: 768px) {
- .header, .content {
- padding: 10px 20px;
- }
- .header h1 {
- font-size: 24px;
- }
- .header .back-button {
- font-size: 14px;
- padding: 8px 16px;
- }
- #video-container {
- width: 100%;
- }
- .buttons-container {
- flex-direction: column;
- align-items: center;
- }
- .button {
- width: 100%;
- max-width: 200px;
- text-align: center;
- margin: 5px 0;
- }
- }
- /* Override styles for shaka-player controls */
- .shaka-settings-menu {
- background-color: #2b2b2b !important;
- color: #e0e0e0 !important;
- font-family: inherit !important;
- }
- .shaka-settings-menu .shaka-overflow-menu {
- overflow-y: auto !important;
- }
- .shaka-settings-menu .shaka-button-container {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 8px 16px;
- white-space: nowrap;
- }
- .shaka-settings-menu .shaka-back-to-overflow-button,
- .shaka-settings-menu .shaka-overflow-button {
- flex: 1;
- text-align: left;
- }
- .shaka-settings-menu .shaka-back-to-overflow-button span,
- .shaka-settings-menu .shaka-overflow-button span {
- display: inline-block;
- width: 100%;
- }
- .shaka-settings-menu .shaka-settings-menu-header {
- display: flex;
- justify-content: space-between;
- padding: 8px 16px;
- }
- .shaka-settings-menu .shaka-back-to-overflow-button span {
- text-align: left;
- }
- .shaka-settings-menu .shaka-overflow-button {
- text-align: right;
- }
- .shaka-settings-menu .shaka-overflow-button span {
- display: inline-block;
- text-align: right;
- }
- /* Hide the navigate_next icon */
- .youtube-theme .shaka-overflow-menu span + span:after {
- content: "";
- }
- </style>
- </head>
- <body>
- <header class="header" data-protonpass-form="">
- <h1>qrxx.pl</h1>
- <a href="https://strim.qrxx.pl/" class="back-button">Powrot do listy kanalow</a>
- </header>
- <main class="content">
- <div id="video-container" class="youtube-theme">
- <video id="video" autoplay></video>
- </div>
- <div class="epg-container">
- <div class="stationItem loading" id="firstProgram"></div>
- </div>
- </div>
- </main>
- <script>
- document.addEventListener('DOMContentLoaded', function () {
- shaka.polyfill.installAll();
- if (shaka.Player.isBrowserSupported()) {
- initPlayer();
- } else {
- console.error('Browser not supported!');
- }
- });
- async function initPlayer() {
- const video = document.getElementById('video');
- const videoContainer = document.getElementById('video-container');
- const player = new shaka.Player(video);
- player.addEventListener('error', onErrorEvent);
- const clearKeys = {
- 'f3bb9bb88e0449ea927e8410de5dfeca': 'e53bcfe25cd8fbe95b207341bd7b4383'
- };
- player.configure({
- drm: {
- clearKeys: clearKeys
- },
- streaming: {
- rebufferingGoal: 2,
- bufferingGoal: 10,
- lowLatencyMode: true,
- inaccurateManifestTolerance: 2
- }
- });
- const manifestUri = 'https://ineago.cf.insyscd.net/insysgo.live/live/eds/polsat-news-fhd/dash/polsat-news-fhd.mpd';
- try {
- await player.load(manifestUri);
- console.log('The video has now been loaded!');
- } catch (error) {
- onError(error);
- }
- const ui = new shaka.ui.Overlay(player, videoContainer, video);
- ui.getControls();
- video.controls = false;
- }
- function onErrorEvent(event) {
- onError(event.detail);
- }
- function onError(error) {
- console.error('Error code', error.code, 'object', error);
- }
- async function fetchEPGData() {
- try {
- const response = await fetch(`https://api.allorigins.win/get?url=${encodeURIComponent('https://www.teleman.pl/program-tv/stacje/Polsat-News')}`);
- const data = await response.json();
- const parser = new DOMParser();
- const doc = parser.parseFromString(data.contents, 'text/html');
- // Select the first <li> element from the parsed HTML
- const firstProgram = doc.querySelector('.stationItems li');
- if (firstProgram) {
- const programContainer = document.getElementById('firstProgram');
- programContainer.innerHTML = `
- ${firstProgram.querySelector('a img') ? `<img src="https:${firstProgram.querySelector('a img').getAttribute('src')}" alt="${firstProgram.querySelector('a img').getAttribute('alt')}">` : ''}
- <div class="detail">
- ${firstProgram.querySelector('em') ? `<time>${firstProgram.querySelector('em').innerHTML}</time>` : ''}
- <a>${firstProgram.querySelector('.detail a').innerText}</a>
- <p class="genre">${firstProgram.querySelector('.genre') ? firstProgram.querySelector('.genre').innerText : ''}</p>
- <p>${firstProgram.querySelector('.detail p:not(.genre)') ? firstProgram.querySelector('.detail p:not(.genre)').innerText : ''}</p>
- </div>
- `;
- programContainer.classList.remove('loading'); // Remove loading class
- }
- } catch (error) {
- console.error('Error fetching EPG data:', error);
- }
- }
- // Fetch EPG data when the page loads
- document.addEventListener('DOMContentLoaded', () => {
- fetchEPGData();
- });
- </script>
- <script type="text/javascript">
- aclib.runAutoTag({
- zoneId: 'xqnxaucwru',
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment