John David

John David

1547994530

Is there a way to embed a facebook video and have sound start on play on non mobile devices?

This may sound simple but I'm just trying to embed a facebook video (preferrably via iframe but can use SDK method) and have it so when the visitor hits play the video plays with sound. Every video I've played on laptops the video is muted (tried chromebook and Windows computer, various browsers, none has sound unless visitor unmutes it).

However if I play on a iphone the sound plays as one would expect.

I've tried both the SDK and Iframe method and don't know how to get the sound on when someone hits play.

Here's a jsfiddle: https://jsfiddle.net/8vgoqf2k/

<iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2FPretty52Official%2Fvideos%2Fvb.217293018312810%2F468824230316244%2F&width=500&show_text=false&appId=115391488481724&height=500" width="500" height="500" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media" allowFullScreen="true"></iframe>

On other platforms youtube, soundcloud, etc, the default behavior is for sound to be on when someone hits play. But not facebook (unless it's a phone).

#html #facebook #video

What is GEEK

Buddha Community

Zak Dyer

1547998097

Add &mute=0 to the iframe url.

<iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2FPretty52Official%2Fvideos%2Fvb.217293018312810%2F468824230316244%2F&width=500&mute=0&show_text=false&appId=115391488481724&height=500" width="500" height="500" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media" allowFullScreen="true"></iframe>

How To Embed YouTube Video In WordPress

This is image title

Everyone knows that video is now becoming an essential tool for digital marketing strategy. According to the statistics, over 500 million hours are watched on YouTube every day. YouTube is the 2nd largest search engine in the world. Embedding a video on WordPress helps to enhance the SEO too.

Embedding YouTube Videos is a fantastic way to increase the engagement of website visitors. Adding a video on WordPress has several ways. This blog will explain the most effective and easiest methods to embed YouTube videos on your WordPress website.

Let’s take a quick tour now & embed the videos.

1. Using The OEmbed Method
It is the easiest method to embed the videos, texts, and many more by entering just the source URL of it that you want to embed.

Here are some basic steps to embed the YouTube video:

A) Open a YouTube & Find the Video that you want to add to your website.
B) Copy Video URL.
C) Now, Just Go to WordPress Visual Editor and Paste the URL.
D) After that WordPress embed the video automatically.

This is image title

Note: Make sure that you mentioned the video or playlist URL. Do not insert the URL of any YouTube channel.

2. Using An Iframe Method
Iframe Method is mostly used when a user wants more flexibility while embedding a video on the WordPress website. It requires some technical knowledge, but not difficult.

The oEmbed method doesn’t allow any customizations nor you can disable the video’s player controls. For that, the Iframe method is used. It gives many options of customization such as autoplay, captions, privacy settings, full screen, player controls, and so on.

This is image title

You can embed the video in the succeeding ways:
A) Click the Share button.
B) From the popup box, click on the Embed.
C) Here, you’ll get the various options to customize the video like from where you start your video, player controls, privacy enabled mode, etc.
D) After customizing, just copy the code & go to the visual editor.
E) Change Visual Editor to Text Editor and paste the code to add the video.

3. Adding YouTube Videos To WordPress Pages & Posts
The above-mentioned methods are quite common for every online website. Adding YouTube Videos on WordPress pages or posts is quite easy on the WordPress block editor.

WordPress comes with the auto-embed feature. You just need to copy the URL and edit the page and paste the URL where you want to showcase it. Moreover, WordPress comes with certain media settings such as alignment, full-width, aspect ratio, captions, and many other things. But WordPress supports certain white-listed platforms which are YouTube, Vimeo, Giphy, Twitter, and so on. You can get a detailed list of white-listed platforms here.

4. Embedding Videos With Classic Editor
If you use a classic editor for a WordPress website, then embedding the video is just the same as a block editor. Just paste the URL and you’ll get the video on your page or post. But, the point is classic editor doesn’t support the additional setting options that you get on the block editor.

5. Add Videos In Sidebar

  • After the WordPress 4.8 version, there’s a new video widget that makes it easier to embed the video in the sidebar.
  • To add the video, just need to navigate Appearance >> Customize. And, click on Widgets.
  • If you’ve multiple sidebar areas then just find out the sidebar where you want to showcase the video and click on the Add Widget.
  • From the search box, search for the video widget and click on it. Click on the Add Video button and paste the Video URL into the box. And after that, you’ll be able to see the preview of the video.
  • Click on the Add to Widget button and don’t forget to click to save. And publish it.

Read More

#best way to embed video in wordpress #embed video in wordpress #embed youtube video in wordpress #embedding videos in wordpress #how to embed video in wordpress #how to embed video in wordpress website

John David

John David

1547994530

Is there a way to embed a facebook video and have sound start on play on non mobile devices?

This may sound simple but I'm just trying to embed a facebook video (preferrably via iframe but can use SDK method) and have it so when the visitor hits play the video plays with sound. Every video I've played on laptops the video is muted (tried chromebook and Windows computer, various browsers, none has sound unless visitor unmutes it).

However if I play on a iphone the sound plays as one would expect.

I've tried both the SDK and Iframe method and don't know how to get the sound on when someone hits play.

Here's a jsfiddle: https://jsfiddle.net/8vgoqf2k/

<iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2FPretty52Official%2Fvideos%2Fvb.217293018312810%2F468824230316244%2F&width=500&show_text=false&appId=115391488481724&height=500" width="500" height="500" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media" allowFullScreen="true"></iframe>

On other platforms youtube, soundcloud, etc, the default behavior is for sound to be on when someone hits play. But not facebook (unless it's a phone).

#html #facebook #video

Seamus  Quitzon

Seamus Quitzon

1594682206

Laravel detect mobile device and redirect mobile website htaccess

In this article, i will let you know laravel detect mobile device and redirect mobile website. So let’s see how can we detect mobile device and redirect website to the mobile website.

A web application can be open on desktops, laptops, tablets and mobiles. But a large application should be optimized for all devices means if we open it on desktop, there might be heavy resources used that would be not compatible for mobile devices. So we can redirect this website to mobile website or mobile freindly website. We generally see that if we open a website on mobile device, it redirects to like http://m.domain.com.

Here, in this article we will see two seperate example to implement this. First one would be using .htaccess file and second one is using laravel route.

Example 1: Using .htaccess file

For detacting mobile device and redirect to the mobile website, we will need to create a .htaccess file on root directory of application. So create this .htaccess file and update the following lines of code.

RewriteEngine On
RewriteCond %{QUERY_STRING} !^desktop
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|googlebot-mobile|iemobile|iphone|ipod|#opera mobile|palmos|webos" [NC]
RewriteCond %{HTTP_USER_AGENT} "acs|alav|alca|amoi|audi|aste|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-" [NC,OR]
RewriteCond %{HTTP_USER_AGENT}  "maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|opwv" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "palm|pana|pant|pdxg|phil|play|pluc|port|prox|qtek|qwap|sage|sams|sany" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|w3cs|wap-|wapa|wapi" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "wapp|wapr|webc|winw|winw|xda|xda-" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "up.browser|up.link|windowssce|iemobile|mini|mmp" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "symbian|midp|wap|phone|pocket|mobile|pda|psp" [NC]
RewriteRule ^$ http://m.domain.com [L,R=302]

Example 2: Using Laravel Routes

After doing this through .htaccess, we can also detect mobile device and redirect to mobile site using laravel routes.

For doing this, we will need to create laravel routes and will need to add some lines of code to do this as written below.

function isMobile() {
    if(isset($_SERVER['HTTP_USER_AGENT'])) {
    $useragent=$_SERVER['HTTP_USER_AGENT'];
    if(preg_match('/(tablet|ipad|amazon|playbook)|(android(?!.*(mobi|opera mini)))/i', strtolower($useragent))) {
        return true ;
    } ;

    if(preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i',substr($useragent,0,4))){
            return true ;
        }
    }
    return 0 ;
}
if(isMobile()) {
    include_once(app_path().'/routes/mobile_routes.php');
} else {
    require_once(app_path().'/routes/website_routes.php');
}

From both of the above methods, we can detect mobile device and redirect to their specific version of website. You can choose any of these two methods.

#laravel #detect devices in laravel #how to detect mobile device in laravel #how to redirect to a mobile device #laravel detect mobile device and redirect mobile website htaccess #laravel mobile redirection

Rahim Makhani

Rahim Makhani

1616669264

On-Demand Mobile App Development Services in USA

Mobile apps are developing day-by-day and the usage of mobile apps is also increasing. There are many mobile app development company that are providing services for on-demand mobile app development services.

One of the leading mobile app development company in the USA is Nevina Infotech. It is the best known for providing on-demand app development services till now.

Our On-Demand Mobile App Development Services:-

iPhone App Development
Android App Development
iPad App Development
Game App Development
ionic App Development
Wearable App Development
Flutter App Development

#mobile app development company #mobile app development services #mobile application development services #mobile application development company #mobile app development company usa

The  NineHertz

The NineHertz

1630909606

How to Hire Video Game Developers For Video Game Development Company?

The gaming industry has taken a boom in the last few years. If we talk about numbers, according to NewZoo, the worth of the video gaming industry was $159.3 Billion in 2020. Video games are not just something for fun now, players and users expect much more from video game developers. Creating such products that just do not satisfy the player’s needs and exceed their expectations is what video game development company are thriving for.

Though kickstarting a new game-making studio is not an easy task. This business requires a team with a huge passion to create games and earn money from these video games. The idea of the approach is to create such unique games that will reach millions of people in the world and gain popularity. This growth demands more professionals in this field.

This just can not be obtained by finding someone with a good CV, the whole process includes a deep dig down to grab the right talent. Read on to learn more about Mobile game developers and the process of hiring video game developers.

Read Complete Blog Here -  https://theninehertz.com/blog/how-to-hire-video-game-developers-video-game-development


#Video Game Development

#Video Game developers

#Video game development studio

#Video game development services