如何不自动开始播放视频?

时间:2020-07-20 16:36:57

标签: php

朋友您好,我在网站上实施php代码时遇到问题,我将数据库中的视频带入数据库,访问页面时发生的情况是所有视频同时自动播放,导致网站崩溃我该如何解决此问题我不希望视频自动开始播放,但是当用户单击视频时,他要感谢大家! 遵循代码:

 <div class="row">
            <?php extract($this->Dados['sts_videos'][1]); ?>
            <div class="col-md-6">
                <p class="lead text-center mt-4"><?php echo $titulo; ?></p>
                <iframe class="ml-4 mt-4" width="560" height="315" 
                src="<?php echo URL . '/assets/video/site/video_opiniao/'
                    . $id . '/' . $video; ?>" alt="<?php echo $descricao; ?>">
                </iframe>
                <p class="lead ml-4 mt-4">Descrição do video:
                    <p class="lead ml-4 mt-2"><?php echo $descricao; ?></p>
                </p>
            </div>
            <?php extract($this->Dados['sts_videos'][2]); ?>
            <div class="col-md-6">
                <p class="lead text-center mt-4"><?php echo $titulo; ?></p>
                <iframe class="ml-4 mt-4" width="560" height="315" 
                src="<?php echo URL . '/assets/video/site/video_opiniao/'
                    . $id . '/' . $video; ?>" alt="<?php echo $descricao; ?>">
                </iframe>
                <p class="lead ml-4 mt-4">Descrição do video:
                    <p class="lead ml-4 mt-2"><?php echo $descricao; ?></p>
                </p>
            </div>
        </div>
        <hr class="my-2">
        <div class="row">
            <?php extract($this->Dados['sts_videos'][3]); ?>
            <div class="col-md-6">
                <p class="lead text-center mt-4"><?php echo $titulo; ?></p>
                <iframe class="ml-4 mt-4" width="560" height="315" 
                src="<?php echo URL . '/assets/video/site/video_opiniao/'
                    . $id . '/' . $video; ?>" alt="<?php echo $descricao; ?>">
                </iframe>
                <p class="lead ml-4 mt-4">Descrição do video:
                    <p class="lead ml-4 mt-2"><?php echo $descricao; ?></p>
                </p>
            </div>
            <?php extract($this->Dados['sts_videos'][4]); ?>
            <div class="col-md-6">
                <p class="lead text-center mt-4"><?php echo $titulo; ?></p>
                <iframe class="ml-4 mt-4" width="560" height="315" 
                src="<?php echo URL . '/assets/video/site/video_opiniao/'
                    . $id . '/' . $video; ?>" alt="<?php echo $descricao; ?>">
                </iframe>
                <p class="lead ml-4 mt-4">Descrição do video:
                    <p class="lead ml-4 mt-2"><?php echo $descricao; ?></p>
                </p>
            </div>
        </div>
        <hr class="my-2">
        <div class="row">
            <?php extract($this->Dados['sts_videos'][5]); ?>
            <div class="col-md-6">
                <p class="lead text-center mt-4"><?php echo $titulo; ?></p>
                <iframe class="ml-4 mt-4" width="560" height="315" 
                src="<?php echo URL . '/assets/video/site/video_opiniao/'
                    . $id . '/' . $video; ?>" alt="<?php echo $descricao; ?>">
                </iframe>
                <p class="lead ml-4 mt-4">Descrição do video:
                    <p class="lead ml-4 mt-2"><?php echo $descricao; ?></p>
                </p>
            </div>
            <?php extract($this->Dados['sts_videos'][6]); ?>
            <div class="col-md-6">
                <p class="lead text-center mt-4"><?php echo $titulo; ?></p>
                <iframe class="ml-4 mt-4" width="560" height="315" 
                src="<?php echo URL . '/assets/video/site/video_opiniao/'
                    . $id . '/' . $video; ?>" alt="<?php echo $descricao; ?>">
                </iframe>
                <p class="lead ml-4 mt-4">Descrição do video:
                    <p class="lead ml-4 mt-2"><?php echo $descricao; ?></p>
                </p>
            </div>
        </div>

0 个答案:

没有答案