Spaces:
Running
Running
Add 2 files
Browse files- index.html +85 -66
- prompts.txt +2 -1
index.html
CHANGED
@@ -103,6 +103,42 @@
|
|
103 |
.stream-btn:hover {
|
104 |
transform: scale(1.05);
|
105 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
</style>
|
107 |
</head>
|
108 |
<body class="min-h-screen">
|
@@ -268,55 +304,33 @@
|
|
268 |
</div>
|
269 |
</div>
|
270 |
|
271 |
-
<!-- Streaming
|
272 |
-
<div id="streaming-
|
273 |
-
<div class="
|
274 |
-
<
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
<h3 id="streaming-title" class="text-xl font-bold text-white"></h3>
|
284 |
-
<button onclick="closeStreamingModal()" class="text-gray-400 hover:text-white">
|
285 |
-
<i class="fas fa-times text-xl"></i>
|
286 |
-
</button>
|
287 |
-
</div>
|
288 |
-
|
289 |
-
<div class="video-container mb-4 rounded-lg overflow-hidden">
|
290 |
-
<iframe id="streaming-player" allowfullscreen></iframe>
|
291 |
-
</div>
|
292 |
-
|
293 |
-
<div class="flex flex-wrap gap-2 mb-4">
|
294 |
-
<button onclick="changeQuality('720p')" class="stream-btn px-3 py-1 bg-gray-700 hover:bg-gray-600 text-white rounded-full text-sm">720p</button>
|
295 |
-
<button onclick="changeQuality('1080p')" class="stream-btn px-3 py-1 bg-gray-700 hover:bg-gray-600 text-white rounded-full text-sm">1080p</button>
|
296 |
-
<button onclick="changeQuality('4k')" class="stream-btn px-3 py-1 bg-gray-700 hover:bg-gray-600 text-white rounded-full text-sm">4K</button>
|
297 |
-
</div>
|
298 |
-
|
299 |
-
<div class="flex justify-between items-center">
|
300 |
-
<div class="flex space-x-2">
|
301 |
-
<button onclick="toggleSubtitles()" class="stream-btn px-3 py-1 bg-gray-700 hover:bg-gray-600 text-white rounded-full text-sm">
|
302 |
-
<i class="fas fa-closed-captioning mr-1"></i> Sous-titres
|
303 |
-
</button>
|
304 |
-
<button onclick="toggleFullscreen()" class="stream-btn px-3 py-1 bg-gray-700 hover:bg-gray-600 text-white rounded-full text-sm">
|
305 |
-
<i class="fas fa-expand mr-1"></i> Plein écran
|
306 |
-
</button>
|
307 |
-
</div>
|
308 |
-
|
309 |
-
<div>
|
310 |
-
<button onclick="downloadMovie()" class="stream-btn px-3 py-1 bg-blue-600 hover:bg-blue-700 text-white rounded-full text-sm">
|
311 |
-
<i class="fas fa-download mr-1"></i> Télécharger
|
312 |
-
</button>
|
313 |
-
</div>
|
314 |
-
</div>
|
315 |
-
</div>
|
316 |
-
</div>
|
317 |
</div>
|
318 |
</div>
|
319 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
320 |
</div>
|
321 |
|
322 |
<script>
|
@@ -469,8 +483,8 @@
|
|
469 |
<span class="text-gray-400 text-sm ml-auto">${movie.release_date ? movie.release_date.substring(0, 4) : 'N/A'}</span>
|
470 |
</div>
|
471 |
<div class="mt-3">
|
472 |
-
<button onclick="
|
473 |
-
<i class="fas fa-play mr-1"></i>
|
474 |
</button>
|
475 |
<button onclick="showMovieDetails(${movie.id})" class="w-full mt-2 px-3 py-2 bg-gray-700 hover:bg-gray-600 text-white rounded text-sm">
|
476 |
<i class="fas fa-info-circle mr-1"></i> Détails
|
@@ -648,29 +662,44 @@
|
|
648 |
function startStreaming() {
|
649 |
if (currentMovieId) {
|
650 |
const movieTitle = document.getElementById('modal-title').textContent;
|
651 |
-
|
652 |
closeModal();
|
653 |
}
|
654 |
}
|
655 |
|
656 |
-
// Démarrer le streaming
|
657 |
-
function
|
658 |
currentMovieId = movieId;
|
|
|
|
|
|
|
659 |
document.getElementById('streaming-title').textContent = movieTitle;
|
660 |
|
661 |
// Configurer le lecteur vidéo avec le service de streaming tiers
|
662 |
const player = document.getElementById('streaming-player');
|
663 |
player.src = `${STREAMING_PROVIDER}${movieId}`;
|
664 |
|
665 |
-
// Afficher la
|
666 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
667 |
}
|
668 |
|
669 |
-
// Fermer la
|
670 |
-
function
|
671 |
const player = document.getElementById('streaming-player');
|
672 |
player.src = '';
|
673 |
-
document.getElementById('streaming-
|
674 |
}
|
675 |
|
676 |
// Changer la qualité de streaming (simulé)
|
@@ -679,11 +708,6 @@
|
|
679 |
// En réalité, vous devriez mettre à jour la source du lecteur vidéo
|
680 |
}
|
681 |
|
682 |
-
// Basculer les sous-titres (simulé)
|
683 |
-
function toggleSubtitles() {
|
684 |
-
alert("Fonctionnalité de sous-titres activée. Note: Ceci est une démonstration.");
|
685 |
-
}
|
686 |
-
|
687 |
// Basculer en plein écran
|
688 |
function toggleFullscreen() {
|
689 |
const player = document.getElementById('streaming-player');
|
@@ -695,11 +719,6 @@
|
|
695 |
player.msRequestFullscreen();
|
696 |
}
|
697 |
}
|
698 |
-
|
699 |
-
// Télécharger le film (simulé)
|
700 |
-
function downloadMovie() {
|
701 |
-
alert("Option de téléchargement. Note: Ceci est une démonstration.");
|
702 |
-
}
|
703 |
</script>
|
704 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=docto41/cinestream" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
705 |
</html>
|
|
|
103 |
.stream-btn:hover {
|
104 |
transform: scale(1.05);
|
105 |
}
|
106 |
+
|
107 |
+
/* Style pour la fenêtre de streaming */
|
108 |
+
.streaming-window {
|
109 |
+
position: fixed;
|
110 |
+
top: 0;
|
111 |
+
left: 0;
|
112 |
+
width: 100%;
|
113 |
+
height: 100%;
|
114 |
+
background-color: rgba(0, 0, 0, 0.9);
|
115 |
+
z-index: 1000;
|
116 |
+
display: flex;
|
117 |
+
flex-direction: column;
|
118 |
+
}
|
119 |
+
|
120 |
+
.streaming-header {
|
121 |
+
padding: 15px;
|
122 |
+
background-color: rgba(0, 0, 0, 0.7);
|
123 |
+
display: flex;
|
124 |
+
justify-content: space-between;
|
125 |
+
align-items: center;
|
126 |
+
}
|
127 |
+
|
128 |
+
.streaming-content {
|
129 |
+
flex: 1;
|
130 |
+
display: flex;
|
131 |
+
justify-content: center;
|
132 |
+
align-items: center;
|
133 |
+
}
|
134 |
+
|
135 |
+
.streaming-controls {
|
136 |
+
padding: 15px;
|
137 |
+
background-color: rgba(0, 0, 0, 0.7);
|
138 |
+
display: flex;
|
139 |
+
justify-content: space-between;
|
140 |
+
align-items: center;
|
141 |
+
}
|
142 |
</style>
|
143 |
</head>
|
144 |
<body class="min-h-screen">
|
|
|
304 |
</div>
|
305 |
</div>
|
306 |
|
307 |
+
<!-- Streaming Window (hidden by default) -->
|
308 |
+
<div id="streaming-window" class="streaming-window hidden">
|
309 |
+
<div class="streaming-header">
|
310 |
+
<h3 id="streaming-title" class="text-xl font-bold text-white"></h3>
|
311 |
+
<button onclick="closeStreamingWindow()" class="text-gray-400 hover:text-white">
|
312 |
+
<i class="fas fa-times text-xl"></i>
|
313 |
+
</button>
|
314 |
+
</div>
|
315 |
+
<div class="streaming-content">
|
316 |
+
<div class="w-full h-full" style="max-width: 1200px;">
|
317 |
+
<div class="video-container">
|
318 |
+
<iframe id="streaming-player" allowfullscreen></iframe>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
</div>
|
320 |
</div>
|
321 |
</div>
|
322 |
+
<div class="streaming-controls">
|
323 |
+
<div class="flex space-x-2">
|
324 |
+
<button onclick="changeQuality('720p')" class="stream-btn px-3 py-1 bg-gray-700 hover:bg-gray-600 text-white rounded-full text-sm">720p</button>
|
325 |
+
<button onclick="changeQuality('1080p')" class="stream-btn px-3 py-1 bg-gray-700 hover:bg-gray-600 text-white rounded-full text-sm">1080p</button>
|
326 |
+
<button onclick="changeQuality('4k')" class="stream-btn px-3 py-1 bg-gray-700 hover:bg-gray-600 text-white rounded-full text-sm">4K</button>
|
327 |
+
</div>
|
328 |
+
<div>
|
329 |
+
<button onclick="toggleFullscreen()" class="stream-btn px-3 py-1 bg-gray-700 hover:bg-gray-600 text-white rounded-full text-sm">
|
330 |
+
<i class="fas fa-expand mr-1"></i> Plein écran
|
331 |
+
</button>
|
332 |
+
</div>
|
333 |
+
</div>
|
334 |
</div>
|
335 |
|
336 |
<script>
|
|
|
483 |
<span class="text-gray-400 text-sm ml-auto">${movie.release_date ? movie.release_date.substring(0, 4) : 'N/A'}</span>
|
484 |
</div>
|
485 |
<div class="mt-3">
|
486 |
+
<button onclick="startAutoStreaming(${movie.id}, '${movie.title || 'Film'}')" class="w-full stream-btn px-3 py-2 bg-green-600 hover:bg-green-700 text-white rounded text-sm">
|
487 |
+
<i class="fas fa-play-circle mr-1"></i> Lecture auto
|
488 |
</button>
|
489 |
<button onclick="showMovieDetails(${movie.id})" class="w-full mt-2 px-3 py-2 bg-gray-700 hover:bg-gray-600 text-white rounded text-sm">
|
490 |
<i class="fas fa-info-circle mr-1"></i> Détails
|
|
|
662 |
function startStreaming() {
|
663 |
if (currentMovieId) {
|
664 |
const movieTitle = document.getElementById('modal-title').textContent;
|
665 |
+
startAutoStreaming(currentMovieId, movieTitle);
|
666 |
closeModal();
|
667 |
}
|
668 |
}
|
669 |
|
670 |
+
// Démarrer le streaming automatique dans une nouvelle fenêtre
|
671 |
+
function startAutoStreaming(movieId, movieTitle) {
|
672 |
currentMovieId = movieId;
|
673 |
+
|
674 |
+
// Afficher la fenêtre de streaming
|
675 |
+
const streamingWindow = document.getElementById('streaming-window');
|
676 |
document.getElementById('streaming-title').textContent = movieTitle;
|
677 |
|
678 |
// Configurer le lecteur vidéo avec le service de streaming tiers
|
679 |
const player = document.getElementById('streaming-player');
|
680 |
player.src = `${STREAMING_PROVIDER}${movieId}`;
|
681 |
|
682 |
+
// Afficher la fenêtre de streaming
|
683 |
+
streamingWindow.classList.remove('hidden');
|
684 |
+
|
685 |
+
// Mettre le focus sur la fenêtre de streaming
|
686 |
+
streamingWindow.focus();
|
687 |
+
|
688 |
+
// Lecture automatique (certains navigateurs bloquent cette fonctionnalité)
|
689 |
+
player.onload = function() {
|
690 |
+
try {
|
691 |
+
player.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');
|
692 |
+
} catch (e) {
|
693 |
+
console.log("Auto-play blocked by browser");
|
694 |
+
}
|
695 |
+
};
|
696 |
}
|
697 |
|
698 |
+
// Fermer la fenêtre de streaming
|
699 |
+
function closeStreamingWindow() {
|
700 |
const player = document.getElementById('streaming-player');
|
701 |
player.src = '';
|
702 |
+
document.getElementById('streaming-window').classList.add('hidden');
|
703 |
}
|
704 |
|
705 |
// Changer la qualité de streaming (simulé)
|
|
|
708 |
// En réalité, vous devriez mettre à jour la source du lecteur vidéo
|
709 |
}
|
710 |
|
|
|
|
|
|
|
|
|
|
|
711 |
// Basculer en plein écran
|
712 |
function toggleFullscreen() {
|
713 |
const player = document.getElementById('streaming-player');
|
|
|
719 |
player.msRequestFullscreen();
|
720 |
}
|
721 |
}
|
|
|
|
|
|
|
|
|
|
|
722 |
</script>
|
723 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=docto41/cinestream" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
724 |
</html>
|
prompts.txt
CHANGED
@@ -4,4 +4,5 @@ affichier les image origine des filme
|
|
4 |
CORRIGER ERREUR DE CHARGEMENT DES FILMS
|
5 |
corriger l'erreur 401
|
6 |
RECONFIGURE LE SITE AFIN DE CORRIGER LES ERREUR 401
|
7 |
-
je veux regarder les film en automatique activer les boutons regarder en automatique
|
|
|
|
4 |
CORRIGER ERREUR DE CHARGEMENT DES FILMS
|
5 |
corriger l'erreur 401
|
6 |
RECONFIGURE LE SITE AFIN DE CORRIGER LES ERREUR 401
|
7 |
+
je veux regarder les film en automatique activer les boutons regarder en automatique
|
8 |
+
activer les lecture des films dans une nouvel fenetre en mode lecture automatique
|