Add audio sample and update video sample assets

Moved sample-media-file.json to src/assets, updated subtitle info with a new URL, and added a new sample-media-file.mp3.json for audio testing. These changes support improved handling and testing of both video and audio media in the VideoJSPlayer component.
This commit is contained in:
Yiannis Christodoulou 2025-10-17 15:46:46 +03:00
parent 178b5ed37c
commit 6f3ed46413
3 changed files with 1161 additions and 3 deletions

View File

@ -110,9 +110,9 @@
"480_playlist": "/media/hls/d393b72d279d4d0da70a484eb6b8b44f/media-6/stream.m3u8" "480_playlist": "/media/hls/d393b72d279d4d0da70a484eb6b8b44f/media-6/stream.m3u8"
}, },
"license": null, "license": null,
"subtitles_info": [ "__subtitles_info": [
{ {
"src": "/media/original/subtitles/user/markos/7e5aaed284954ae497d09783bf81004f.ExitofElygiaGorgeChaniaCrete.vtt", "src": "https://videojs.mediacms.io/media/original/subtitles/user/markos/7e5aaed284954ae497d09783bf81004f.ExitofElygiaGorgeChaniaCrete.vtt",
"srclang": "en", "srclang": "en",
"label": "English" "label": "English"
} }

File diff suppressed because it is too large Load Diff

View File

@ -29,7 +29,7 @@ import KeyboardHandler from '../../utils/KeyboardHandler';
import PlaybackEventHandler from '../../utils/PlaybackEventHandler'; import PlaybackEventHandler from '../../utils/PlaybackEventHandler';
// Import sample media data // Import sample media data
import sampleMediaData from '../../../public/sample-media-file.json'; import sampleMediaData from '../../assets/sample-media-file.json';
// Import fallback poster image // Import fallback poster image
import audioPosterImg from '../../assets/audio-poster.jpg'; import audioPosterImg from '../../assets/audio-poster.jpg';