dongruan6001 2015-10-23 11:02
浏览 112

如何从浏览器的inspect元素隐藏vimeo url

I am trying to hide vimeo video url from browser it is not working properly. I am using Jplayer plugin used to play a vimeo video it is working properly but the video links are showing in inspect element and it is also available for download

Below is my code

<script type="text/javascript">
$(document).ready(function(){
$("#jquery_jplayer_1").jPlayer({
    ready: function () {
        $(this).jPlayer("setMedia", {
            title: "Big Buck Bunny",
            //m4v: "https://skyfiregcs-a.akamaihd.net/exp=1445430563~acl=%2A%2F426511975.mp4%2A~hmac=8768bf06a0fa2761cd9ccc202352d3fdb5ef900c697f47e5c5d6c4452583b8d4/vimeo-prod-skyfire-std-us/01/3429/5/142149222/426511975.mp4",
                            m4v: "https://skyfiregcs-a.akamaihd.net/exp=1445581412~acl=%2A%2F423502157.mp4%2A~hmac=79d9fdcb40746a63224a8b26c4489246ac8de9f92aedb8c4d3004f31ee883000/vimeo-prod-skyfire-std-us/01/3279/5/141398811/423502157.mp4",
            poster: "http://www.jplayer.org/video/poster/Big_Buck_Bunny_Trailer_480x270.png"
        });
    },
    swfPath: "../../js/jplayer",
    solution: "flash, html",
    supplied: "webmv, ogv, m4v",
    size: {
        width: "640px",
        height: "450px",
        cssClass: "jp-video-360p"
    },
    useStateClassSkin: true,
    autoBlur: false,
    smoothPlayBar: true,
    keyEnabled: true,
    remainingDuration: true,
    toggleDuration: true
   });
});
 </script>';

Is there any solution to fixed the problem

Thanks in advance any suggestion would be appreciated.

  • 写回答

1条回答 默认 最新

  • dongxing8650 2015-10-23 11:43
    关注

    For this you have to do some jugglery with session.

    Something like this:

     $(document).ready(function(){
    
    <?php //----Set some session variable here-----// 
    $_SESSION['url_on']=1;
    
    ?>
    
    
    $("#jquery_jplayer_1").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                title: "Big Buck Bunny",
    
                                m4v: "getUrl.php",//--------->>call any function or page
                poster: "http://www.jplayer.org/video/poster/Big_Buck_Bunny_Trailer_480x270.png"
            });
        },
    

    And in php function check for the session data,if available then return the desire url otherwise return false.

    If any user hit the jplayer src he/she will see blank screen instead.

    评论

报告相同问题?

悬赏问题

  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn