我正在尝试此代码
<video width="320" height="240" controls>
<source src="<?php echo 'resource/video/'; echo $image; ?>" type="video/mp4">
<source src="<?php echo 'resource/video/'; echo $image; ?>" type="video/ogg"> </video>
答案 0 :(得分:1)
您可以像这样使用base_url():
<video width="320" height="240" controls>
<source src="<?php echo base_url('resource/video/'.$image); ?>" type="video/mp4">
<source src="<?php echo base_url('resource/video/'.$image); ?>" type="video/ogg">
答案 1 :(得分:0)
我得到了答案,只是给了基本网址
<video width="320" height="240" controls>
<source src="<?php echo base_url('resource/video/'); echo $image; ?>" type="video/mp4">
<source src="<?php echo 'resource/video/'; ?>" type="video/ogg"> </video>