I am storing my videos on Firebase Storage. The videos work perfectly fine in the browser when I use a laptop or desktop computer. However, they do not function properly when accessed through the browser on a mobile phone.
Here is my code:
enter image description here
我正在Firebase Storage上存储我的视频。当我使用笔记本电脑或台式电脑时,这些视频在浏览器中运行得非常好。然而,当通过手机上的浏览器访问时,它们无法正常工作。这是我的代码:在此处输入图像描述
Initially, I thought the issue might be due to the video tag I used in the project. However, when I checked directly using the URL of the video located in the Firebase console, the result I received was a black screen. The video's duration was displayed accurately in seconds, but the visuals did not play.
enter image description here
起初,我认为这个问题可能是由于我在项目中使用的视频标签。然而,当我直接使用Firebase控制台中视频的URL进行检查时,我收到的结果是黑屏。视频的持续时间以秒为单位精确显示,但视觉效果没有播放。在此处输入图像描述
What is the cause of this issue? Please assist me.
这个问题的原因是什么?请帮帮我。
更多回答
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
请澄清您的具体问题或提供更多详细信息,以突出您的需求。正如目前所写的,很难准确说出你在问什么。
优秀答案推荐
I had the same problem. You can try to decrease the resolution and the frame rate of your videos. 1920 px by 1080 px and 30 frames per second solved the problem for me.
我也有同样的问题。您可以尝试降低视频的分辨率和帧速率。1920像素乘1080像素和每秒30帧为我解决了这个问题。
更多回答
我是一名优秀的程序员,十分优秀!