YouTube views not counting on Wordpress embed - wordpress

On my WordPress site, I have been embedding both my YouTube videos and my Twitch channel.
However, even after using the old embed code which has been suggested on a previous post, no views coming from the site count towards the view count.
As well as this, the official Twitch embed code also does not count towards the view count either.
The code I am using for the site is:
<iframe width="560" height="315" src="https://www.youtube.com/embed/TWH0RnH1QMU" frameborder="0" allowfullscreen></iframe>
And the twitch:
<object type="application/x-shockwave-flash" height="250" width="300" id="live_embed_player_flash" data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=official_don_gaming" bgcolor="#000000"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><param name="allowNetworking" value="all"><param name="movie" value="http://www.twitch.tv/widgets/live_embed_player.swf"><param name="flashvars" value="hostname=www.twitch.tv&channel=official_don_gaming&auto_play=true&start_volume=0"></object>
Hopefully you can help me with this issue!

Even though it's quite a crude solution, simply iframing the url you use when using youtube in your browser should make the views be counted. You can do this with <iframe src="http://youtubeurl"></iframe>

Related

How to Embed Video Google Drive using Youtube Iframe

I'm using this code but not working
<iframe class="youtube-player" width="100%" height="400" src="http://www.youtube.com/embed/https://drive.google.com/file/d/0BwbA32qGbwr8TTdidmFMZnV3SDg/view" frameborder="0"></iframe>
please help me
thanks
That's will be conflict in that way, you can't force like that.
you can try on this https://developers.google.com/youtube/iframe_api_reference

Auto-playing embed code issue in wordpress

I want to automatically play the .swf file when the page load in word-press
This is my embadded code:
<embed src="http://turkchat.nl/newturkchat/turkchat/wp-content/themes/rt_oculus_wp/swf/Ov1.swf"
type="application/x-shockwave-flash" width="358" height="240" align="middle"
name="Ov1/Ov1" autoPlay="1"></embed>
Video is showing but not automatically playing.
Add "autoPlay=true" as a parameter this should work. instead of autoPlay=1.

Wordpress Widget went away

Does anybody knows why this code is no more showing the Google Map?
It is on a Wordpress widget. It has worked before now.
<div class="Flexible-container clearfix">
<div class="textwidget">
Versione ingrandita della mappa</div>
</div>
Otherwise if you put the map URL on a browser you can see the map regularly
Thanks, bye
I think the correct way to do that now is to use the iframe approach, aka Google Maps Embed API.
With which you use:
<iframe
width="600"
height="450"
frameborder="0" style="border:0"
src="https://www.google.com/maps/embed/v1/place?key=API_KEY
&q=Space+Needle,Seattle+WA" allowfullscreen>
</iframe>
this to embed your maps onto your page.
Note that you need an API key and you can get it from the Google Developers Console.

Adding the YouTube iframe to a Cordova app on iOS

I'm using Cordova 3.0 and am trying to embed a YouTube video inside an article of my news app. The YouTube code looks like this:
<iframe width="600" height="450" src="//www.youtube.com/embed/_OBlgSz8sSM" frameborder="0" allowfullscreen></iframe>
In its current form the code does nothing except leave a large wide white square in the DOM. When I inject the letters http: so that it looks like this:
<iframe width="600" height="450" src="http://www.youtube.com/embed/_OBlgSz8sSM" frameborder="0" allowfullscreen></iframe>
then the app automatically quits and goes to the browser. How can I just make the iframe behave as it should, as a little window. I have followed the steps mentioned in this question and have tried fiddling with the <preference name="stay-in-webview" value="false" /> line in the config.xml file.
Is this what you are looking for
Force HTML5 youtube video
<iframe src="http://www.youtube.com/embed/_OBlgSz8sSM?html5=1"></iframe>
OR may be
Show Youtube video source into HTML5 video tag?
Step 1: add &html5=True to your favorite youtube url
Step 2: Find tag in source
Step 3: Add controls="controls" to video tag:
<video controls="controls"
class="video-stream"
x-webkit-airplay="allow"
data-youtube-id="N9oxmRT2YWw"
src="http://v20.lscache8.c.youtube.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cratebypass%2Coc%3AU0hPRVRMVV9FSkNOOV9MRllD&itag=43&ipbits=0&signature=D2BCBE2F115E68C5FF97673F1D797F3C3E3BFB99.59252109C7D2B995A8D51A461FF9A6264879948E&sver=3&ratebypass=yes&expire=1300417200&key=yt1&ip=0.0.0.0&id=37da319914f6616c"></video>
More SF posts:
YouTube video in HTML5
Force HTML5 youtube video

Invalid Parameters on playing youtube embedded on a website

At first I'm getting this error "This video contains content from sme. It is restricted from playback on certain sites" Then after reading this post I added few lines to my youtube emded url I'm now receiving a new error which says "Invalid Paramaters". By the way what I'm trying to do here is embed a youtube video on my site.
This is the original embed url of the youtube I'm trying to embed on my website. Where I'm receiving the error message "This video contains content from SME. It is restricted from playback on certain sites. Watch on Youtube".
<iframe width="420" height="315" src="http://www.youtube.com/embed/CFqbhsvXE7M" frameborder="0" allowfullscreen></iframe>
This is the editted one after reading the post. And getting this error "Invalid Paramaters".
<iframe width="420" height="315" src="http://www.youtube.com/embed/CFqbhsvXE7M?playlist=." frameborder="0" allowfullscreen></iframe>
I've done some research and it says YouTube indeed has changed their API over the last couple of days and flash fallback from their HTML5 Video Player fails. and I didn't find a clear explanation how to fix it. Using the original embed url the youtube plays well in my localhost. After I deployed it in a server I'm now receiving those errors. Is this something to do with the domain of the server I'm using?
Question:
How could I possibly fix this? T_T
Other Information: I'm using asp.net MVC3
Instead of using embed use watch and add in a few attributes, works all the time:
<iframe width="420" height="315"
src="http://www.youtube.com/watch?v=CFqbhsvXE7M"
frameborder="0"
webkitAllowFullScreen
mozallowfullscreen
allowFullScreen></iframe>

Resources