我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

html5视频标签不使用php在chrome上播放

I am trying to download an mp4 video file in PHP. the file generated successfully with the code below.

$result_ad // is the PHP variable contains video content.

header("Content-Type: video/mp4");  
header("Content-Length: ".strlen($result_ad));

echo $result_ad;exit;

It generate an html5 video and successfully played it on Mozilla.

But not playing on google Chrome.

近期文章

  • 自动增量列ID不是从1开始
  • 删除angularjs下拉列表中的未定义值
  • FormData不将数据发布到php后端脚本
  • 我可以在我的网站PHP上获得用户的完整地址吗?
  • 在foreach循环中实例化静态对象
  • 使用IMAP和PHP阅读电子邮件 - 拒绝连接
  • 图像显示为html mime gibberish - PHP - Glide
  • 如何从android发送到Web服务器的位置
  • 从目录中读取文件并回显某些行
  • 我的代码出错,但我无法找到解决方法
  • 隐藏特定的woocommerce帐单字段
  • 如何基于子域url get_template_part()?
  • Laravel:用户在会话过期后注销
  • 从用户提供的数据中拆分数字和单词
  • PHP日期时间差异(小时,天,周,月)
  • PHP与MySQL的多个连接 - 最佳实践
  • 如何在浏览器关闭时标记出勤超时?
  • 用某种空格分割字符串
  • PHP:如何按长度删除数组元素?
  • PHP从MySql以水平样式显示数据

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华