inital commit, basic functionality and streaming with server working

This commit is contained in:
Brandon4466
2025-05-11 17:24:00 -07:00
commit 3e80923494
7 changed files with 973 additions and 0 deletions

7
preload.js Normal file
View File

@@ -0,0 +1,7 @@
const { contextBridge } = require('electron');
contextBridge.exposeInMainWorld('api', {
getMovies: () => fetch('http://localhost:8000/movies').then(r => r.json()),
getMovieDetails: (id) => fetch(`http://localhost:8000/movies/${id}`).then(r => r.json()),
getStreamUrl: (id) => `http://localhost:8000/stream/${id}`
});