【问题标题】:I'm trying to make an embed code for my flow player it's not working?我正在尝试为我的流播放器制作嵌入代码,但它不起作用?
【发布时间】:2014-04-23 06:51:48
【问题描述】:

这是代码,嵌入部分不显示,为什么不显示?

    <div id="content">
<?php
    $video = $_GET['video'];
    $data_id = $_GET['id'];
    $name = $_GET['name'];
?>
<a href="videos/<?php echo $video; ?>"   
style="display:block;width:100%;height:400px;"   
id="player"></a>
<br>
    </div>
    <div id="content">
    <!--This is where the embed code will display the video-->
    <a href="videos/<?php echo $video; ?>">
    </div>

【问题讨论】:

  • 也许为我们提供更多细节,而不仅仅是向我们展示代码会有所帮助。 :)
  • 抱歉,我正在尝试为我的视频添加嵌入链接,以便用户可以在其他页面上查看视频,例如 VIDEO
  • 你的代码中没有&lt;embed&gt;

标签: php html flowplayer


【解决方案1】:

您错误地使用了带有&lt;a&gt; 标记的PHP 代码。来自this SO question中的用户Strae

echo '<a href="' . $folder_path . '">Link text</a>';

请注意,您必须使用相对于您的域的路径,如果文件夹路径在公共 htdocs 目录之外,它将不起作用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-11-22
    • 2011-10-14
    • 2020-12-22
    • 1970-01-01
    • 2022-07-08
    • 2019-11-13
    • 2021-07-19
    • 1970-01-01
    相关资源
    最近更新 更多