My app allow the user to save video files wherever he/she wants so when using this video files inside the app I end up with something like this
<video src={`D:/folder1/.../folderN/filename.mkv`}>
<track default src={`D:/folder1/.../folderN/filename-subs.srt`} kind="subtitles" srcLang="en" label="English" />
</video>
this give the following warning Resource interpreted as TextTrack but transferred with MIME type text/plain
and the subtitles doesn't show
But after thinking about it it would be better to play the video file with the native media player if I am not mistaken. How to do so? using node child_process spawn? or is there an electron way
from Set mime type OR run the native media player
No comments:
Post a Comment