I need to handle videos retrieved from OwnCloud through a C# WebAPI and sent using a Stream object from C# WebAPI to HTML. But the video tag is not working on IOS/Safari browser while using direct link for the same video is working fine. How can we solve this issue using the same technique?
Code Example:
using (var client = new HttpHelper(_serverAddress + filepath))
{
client.Authorization(_secret);
return new FileStreamResult(await client.Get(), "video/mp4");
}
<video width="320" height="240" controls="true" src="http://ip:5000/api/cloud/video">
<source src="http://ip:5000/api/cloud/video" type="video/mp4">
</video>