Playing a video in the home page by Django - django

I want to have a home page which plays a video when the site runs, and has a button in order to skip the video and go to the first page of the site
any advice to do it?

You can use a html5 video element and set it to autoplay. And also have a button linking to your homepage

Related

How to handle bootstrap button without any href in Jmeter?

Im trying to test performance for a web app and I'm currently blocked on a page which has submit button without any hyperlink.
How do I navigate to the next page?
This is the button im trying to use to navigate to the next page: Next
I tried using the CSS selection extractor in Jmeter, its reading the value of the button(I can see in the debug sampler) but without any hyperlink im unable to use that as a path for navigating to next page. Debug Sampler
Jmeter (not webdriver sampler) works on request level and not on gui level. So, you need to capture the request to navigates to the next page and not to click on the button.
Try jmeter recording. or directly put the path of the landing page in a new http sampler manually.
Hope this helps.

Og:image not showing in FB debugger but link is ok

I have a very very strange problem. I use a WordPress website to publish a picture every day, and of course, I want to publish it on my facebook page.
I've tried with Open Graph informations from Yoast, or from Jetpack and both but the problem is the same : no picture to show on social networks! Not a good thing for pictures based website ;-)
I've tried Open Graph debugger and when I look at this, I have a good link to my image on og:image property... but the picture doesn't display. It's a transparent picture to click that open the good image in a new link, but can't publish it on social networks.
You can try with this adress : http://social.1max2peche.com/belle-boule-de-mucus/
Put in the image URL directly (in the browser): http://www.1max2peche.com/design/magazine-peche-1max2peche-logo.png
Happens to at least 2 out of 3 images in the og:image tags, and it may be the problem. Also take a look at the image specifications: https://developers.facebook.com/docs/sharing/best-practices#images
You see that it redirects, so of course Facebook cannot get it. Make sure to check out your rewrite stuff.

How is SoundCloud embedding an HTML5/JS widget on Facebook?

Here's the scenario I'm seeing -
You click to post a sound from SoundCloud to Facebook
It embeds a player in the post that can either be clicked on to take you to the original item on SoundCloud OR you can click a Play icon to play the sound right in your feed.
The player is a Javascript/HTML5 player (which you can see by viewing source) HOWEVER if you take the embedded URL and put it in the Facebook open graph debugger you'll see that it appears to be directing to embed a Flash SWF
How is SoundCloud doing, what appears to be, some kind of redirect trick to get a "og:video" SWF to turn into a JS/HTML5 player?
I notice that there is an "og:type" of "soundcloud:sound" so is it some kind of whitelist/Facebook application scenario?
Try it yourself with this:
OG debug: https://developers.facebook.com/tools/debug/og/object?q=https%3A%2F%2Fsoundcloud.com%2Fsystek_music%2Fcyberoptics-sub-antix-the%3Futm_source%3Dsoundcloud%26utm_campaign%3Dshare%26utm_medium%3Dfacebook
I did find this bit of info from the SoundCloud site about how they've switched to JS players (that fall back to Flash on older browsers): http://help.soundcloud.com/customer/portal/articles/1219149-where-has-the-flash-widget-gone-
This may only be a partial answer. But there exists a special Facebook Open Graph Music program which "is only available to whitelisted partners at this time". This includes a bridge which has the goal to "enable play buttons on feed stories on Facebook.com that can play and pause tracks and indicate which is playing."
However, apparently you can include both Flash (application/x-shockwave-flash) and HTML5 video (video/mp4) formats in the og:video:type property.

JW player play/Pause button refreshing browser

having an annoying problem with JW Player. If I click on the video it will pause and play generally fine however if I use the pause and play button it refreshes my browser. Seems to effect browsers using the HTML5, fine in Flash. Can't come across anyone reporting the same problem. Running the files from videos in Sitecore Media Library. I was having a problem in IE9, saying 'error loading media: file could not be played' I sometimes get this in Chrome after trying to resume playback of video. Any ideas? Have encoded the video in Handbrake as iphone4 and universal MP4 with web optmise ticked.
Not done anything that special with the Javascript and using default skin.

Facebook Like button og:image needs to be scraped to be displayed

I've got a Drupal website with articles on them which have Facebook like buttons.
Now I've got all the OpenGraph metatags added on the pages and it's all working perfectly except for one thing.
Site visitors can share a page URL or like a page URL.
When a new article is added and the first person who presses the like button will not see the image added in the og:image tag.
If another person afterwards presses the like button, the og:image however is visible so it seems to me Facebook needs to scrape the page first before the og:image is added in the 'Facebook Like window'.
The Facebook share doesn't seem to suffer from this problem and does it right from the first time.
Now whenever somebody adds a new article, I'd need the URL of the article to be scraped automatically by Facebook using some PHP code or some other fix...
Anyone who knows if autoscraping a URL is possible or does anyone have an idea for a workaround?
You can use the graph API with scrape=true to force Facebook to scrape you right when you create your contents
https://developers.facebook.com/docs/beta/opengraph/objects/