Add frontend
This commit is contained in:
@@ -67,8 +67,11 @@ export class App implements OnInit {
|
||||
fluid: true,
|
||||
sources: [{
|
||||
src: `/api/videos/${videoId}/stream`,
|
||||
type: 'video/x-msvideo' // AVI MIME type
|
||||
}]
|
||||
type: 'video/mp4' // Use MP4 as it's widely supported
|
||||
}],
|
||||
error: (error: Event) => {
|
||||
console.error('Video.js error:', error);
|
||||
}
|
||||
});
|
||||
|
||||
this.#videoPlayers.set(videoId, player);
|
||||
|
||||
Reference in New Issue
Block a user