Added streaming service style watch page for movies and series playback

This commit is contained in:
Trevor Mears
2026-01-06 20:01:43 -08:00
parent 3e377da67c
commit f525a6ee67
8 changed files with 1712 additions and 68 deletions
+12 -16
View File
@@ -341,23 +341,19 @@ class MoviesPage {
const result = await API.proxy.xtream.getStreamUrl(movie.sourceId, movie.stream_id, 'movie', container);
if (result && result.url) {
// Navigate to home and play
this.app.navigateTo('home');
// Play the movie
if (this.app.player) {
const channel = {
id: `movie:${movie.stream_id}`,
name: movie.name,
tvgLogo: movie.stream_icon || movie.cover,
sourceType: 'xtream',
// Play in dedicated Watch page
if (this.app.pages.watch) {
this.app.pages.watch.play({
type: 'movie',
id: movie.stream_id,
title: movie.name,
poster: movie.stream_icon || movie.cover,
description: movie.plot || '',
year: movie.year || movie.releaseDate?.substring(0, 4),
rating: movie.rating,
sourceId: movie.sourceId,
isVod: true // Mark as VOD for player handling
};
// For VOD, use direct URL (don't proxy through HLS)
// The video element can play mp4/mkv directly
this.app.player.play(channel, result.url);
categoryId: movie.category_id
}, result.url);
}
}
} catch (err) {