I am trying to load a trackCues.vtt
file that is stored in my solution and I am trying to load this resource in my view in the following manner:
<video style="margin-top:30px;margin-bottom:30px" width="800" height="600" controls>
<source src='@Url.Content("~/Content/AudioAssets/speechSample.mp4")' type="video/mp4">
<track src='@Url.Content("~/Content/AudioAssets/trackCues.vtt")' kind="metadata" default>
</video>
however when the page loads I receive the following error:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:33862/Content/AudioAssets\trackCues.vtt
I'm not sure why this is failing as the path look correct (I must be wrong about that though)
Note: I load my video out of the same directory and using the same syntax so I'm not sure why the .vtt
file won't load