Laravel视频播放

时间:2017-06-21 14:47:01

标签: php laravel video laravel-5

我在Laravel的视频播放器有问题而且不能支持为什么不支持文件。视频保存在DB中,名称和.mp4 extenision,这是我的代码

  @foreach($videos as $video)

                <div class="portfolio-item {{$video->id_category}}"><!-- item -->

                    <div class="margin-bottom-50">
                        <div class="embed-responsive embed-responsive-16by9 thumbnail">
                            <video style="width: 100%" controls>
                                <source src=".....\lecture_videos/{{$video->filename}}" type="video/mp4">
                                Your browser does not support the audio element.
                            </video>
                        </div>
                    </div>
                    <h4 class="size-15">
                        <a target="_blank" href="{{url('video', $video->id)}}"><!--<span class="label label-danger pull-right">new</span>-->{{$video->title}}</a>
                    </h4>

                </div><!-- /item -->

            @endforeach

Chrome向我展示了这样的内容,但无法播放image

0 个答案:

没有答案