Add frontend
This commit is contained in:
@@ -67,8 +67,11 @@ export class App implements OnInit {
|
|||||||
fluid: true,
|
fluid: true,
|
||||||
sources: [{
|
sources: [{
|
||||||
src: `/api/videos/${videoId}/stream`,
|
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);
|
this.#videoPlayers.set(videoId, player);
|
||||||
|
|||||||
Reference in New Issue
Block a user