[GET] Youtube views script

Status
Not open for further replies.
Absolutely you can put this scripts in you r blog , but to get views count from this scripts i dont think it works.
i have the script to lunch the video automaticly when someone visit the page but if there is any way to put in silence mode
 
i have the script to lunch the video automaticly when someone visit the page but if there is any way to put in silence mode
I have a scripts that can play video in silence mode.

But it useless , views not added.
 
Hi guys.

I found this script in my folder with scripts, I found it somewhere few months ago, tested and added to my collection.
What does this script do?
-Basicly show your video on your website. But don't worry you can set it to bi invisible and to mute audio. So nobody won't know he's "watching your video.



Code:
<script src="http://www.google.com/jsapi"></script>
<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>
<div id="ytapiplayer">You need Flash player 8+ and JavaScript enabled to view this video.</div>
<script type="text/javascript">
    google.load("swfobject", "2.1");
    function onYouTubePlayerReady(playerId) {
        ytplayer = document.getElementById("myytplayer");
        ytplayer.playVideo();
        ytplayer.mute();
    }
    var params = { allowScriptAccess: "always" };
    var atts = { id: "myytplayer" };
    swfobject.embedSWF("http://www.youtube.com/v/MO8ITTxvdSo?enablejsapi=1&playerapiid=ytplayer&allowFullScreen=true&version=3",
    "ytapiplayer", "420", "315", "8", null, null, params, atts);
</script>

And to make it invisible, just add this code below:
Code:
<style>#myytplayer{width:1px;height:1px;}</style>

p.s Don't forget to change "MO8ITTxvdSo" with your video ID, I just added this video as example.
 
the invisible mode of the script is not working, someone has some solution?
 
Status
Not open for further replies.
Back
Top