简体   繁体   English

当视频来自数据库时,HTML5视频标签在ios中不起作用

[英]Html5 video tag is not working in ios when video is from database

I have a hybrid mobile app using cordova for both ios and android. 我有一个混合的移动应用程序,同时使用ios和android的cordova。 I have uploaded the video files in db as blob data. 我已将视频文件上传到db中作为blob数据。 They are fetched through rest service call nd attached to src tag though httpservletresponse. 通过httpservletresponse通过附加到src标签的rest服务调用nd获取它们。 The videos are not playing in ios devices where playing in android app. 视频无法在android应用中播放的ios设备中播放。

Where as same files stored in a downloadable location and given in src is working fine in ios. 在ios中,与存储在可下载位置并在src中给出的相同文件在哪里正常工作。 But when fetched from the db ia npt working. 但是,当从db ia npt获取数据时,它会正常工作。 Same case image files are also fetched as blob and given to img src are working fine in ios. 同样大小写的图像文件也作为blob获取,并提供给img src在ios中工作正常。 I dont understand the issue with ios video tag. 我不了解ios video标签的问题。

Please suggest. 请提出建议。

Without more information, there is no way to know what's wrong. 没有更多信息,就无法知道出了什么问题。 However it's very likely that your server is not properly handling http range requests. 但是,您的服务器很可能没有正确处理http范围请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM