{"id":321,"date":"2015-05-18T13:15:03","date_gmt":"2015-05-18T07:45:03","guid":{"rendered":"https:\/\/www.vdocipher.com\/blog\/?p=321"},"modified":"2022-08-30T09:11:56","modified_gmt":"2022-08-30T09:11:56","slug":"asynchronous-video-embed","status":"publish","type":"post","link":"https:\/\/www-uat.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/","title":{"rendered":"Asynchronous video embed"},"content":{"rendered":"<p>We have released a new embed script to be used for VdoCipher videos which is faster than the earlier embed code.\u00a0The earlier embed code used to wait for the player script to load before rendering the page after\u00a0video player. This was a\u00a0serious\u00a0delay in\u00a0page load time and affected the user experience. We have changed to asynchronous code which does not affect the page load time while making player loading even faster.<\/p>\n<p>Asynchronous\u00a0scripts are much\u00a0faster in situations where the rest of the\u00a0web page does not depend on\u00a0a single widget. This is the situation in\u00a0most cases of video players. Hence, we have created this new player.<\/p>\n<p><strong>How to update to the new player (not for plugin users):<\/strong><\/p>\n<p>Look out for your page loading when you have inserted embed script in your webpage. It should look\u00a0something with a span element and a script tag. Replace\u00a0your complete embed script with the\u00a0below script:<\/p>\n<p>https:\/\/gist.github.com\/vibhavsinha\/e4a2c5f3235aafb4b2fd<\/p>\n<p>Note: Replace the $OTP at two places in the above code with the token generated from \/otp API call.<\/p>\n<p>Note: Using the variable generated in the back-end might involve some\u00a0appropriate tags to be used. For example, you need to use <!--?php echo $OTP ?--> in case of PHP.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>For WordPress\u00a0and Joomla plugin users:<\/strong> \u00a0You shall soon see an update to the plugin for using asynchronous code in about 3-4 days. Upgrading will change all embed codes to the new asynchronous version.\u00a0There is no need to\u00a0update anything on each post or take any other action.<\/p>\n<p>In case\u00a0you are clueless where to use this code, please contact your web developer or IT provider to update to the\u00a0asynchronous version.<\/p>\n<p>An asynchronous video embed code delegates the player loading\u00a0process to background.\u00a0This way the page continues loading while video is being loaded in the background.<\/p>\n<p>In case of any questions or problems, please tell us at <em>info [at] vdocipher [dot] com<\/em> or use the site chat in the bottom right of the website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have released a new embed script to be used for VdoCipher videos which is faster than the earlier embed code.\u00a0The earlier embed code used to wait for the player script to load before rendering the page after\u00a0video player. This was a\u00a0serious\u00a0delay in\u00a0page load time and affected the user experience. We have changed to asynchronous [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46,14],"tags":[64],"class_list":{"0":"post-321","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-api","7":"category-using-vdocipher","8":"tag-asynchronous-video-embed","9":"entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.0 (Yoast SEO v26.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Asynchronous video embed - VdoCipher Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Asynchronous video embed\" \/>\n<meta property=\"og:description\" content=\"We have released a new embed script to be used for VdoCipher videos which is faster than the earlier embed code.\u00a0The earlier embed code used to wait for the player script to load before rendering the page after\u00a0video player. This was a\u00a0serious\u00a0delay in\u00a0page load time and affected the user experience. We have changed to asynchronous [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/\" \/>\n<meta property=\"og:site_name\" content=\"VdoCipher Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vdociphertech\/\" \/>\n<meta property=\"article:published_time\" content=\"2015-05-18T07:45:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-30T09:11:56+00:00\" \/>\n<meta name=\"author\" content=\"Vibhav Sinha\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vdocipher\" \/>\n<meta name=\"twitter:site\" content=\"@vdocipher\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vibhav Sinha\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/\"},\"author\":{\"name\":\"Vibhav Sinha\",\"@id\":\"https:\/\/www.vdocipher.com\/blog\/#\/schema\/person\/44b7d612191edc5560c5cb64184d379c\"},\"headline\":\"Asynchronous video embed\",\"datePublished\":\"2015-05-18T07:45:03+00:00\",\"dateModified\":\"2022-08-30T09:11:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/\"},\"wordCount\":348,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.vdocipher.com\/blog\/#organization\"},\"keywords\":[\"asynchronous video embed\"],\"articleSection\":[\"APIs and Sample Codes\",\"Using VdoCipher\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/\",\"url\":\"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/\",\"name\":\"Asynchronous video embed - VdoCipher Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.vdocipher.com\/blog\/#website\"},\"datePublished\":\"2015-05-18T07:45:03+00:00\",\"dateModified\":\"2022-08-30T09:11:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vdocipher.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Asynchronous video embed\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vdocipher.com\/blog\/#website\",\"url\":\"https:\/\/www.vdocipher.com\/blog\/\",\"name\":\"VdoCipher Blog\",\"description\":\"Secure Video Streaming\",\"publisher\":{\"@id\":\"https:\/\/www.vdocipher.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vdocipher.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vdocipher.com\/blog\/#organization\",\"name\":\"VdoCipher\",\"url\":\"https:\/\/www.vdocipher.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vdocipher.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vdocipher.com\/blog\/wp-content\/uploads\/2016\/11\/VdoCipher-logo2.png\",\"contentUrl\":\"https:\/\/www.vdocipher.com\/blog\/wp-content\/uploads\/2016\/11\/VdoCipher-logo2.png\",\"width\":1625,\"height\":1925,\"caption\":\"VdoCipher\"},\"image\":{\"@id\":\"https:\/\/www.vdocipher.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vdociphertech\/\",\"https:\/\/x.com\/vdocipher\",\"https:\/\/www.linkedin.com\/company\/vdocipher\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.vdocipher.com\/blog\/#\/schema\/person\/44b7d612191edc5560c5cb64184d379c\",\"name\":\"Vibhav Sinha\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vdocipher.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/21359ad936924de4c06b12ee192755a4337f15761710afc5877a6f943f1c8a47?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/21359ad936924de4c06b12ee192755a4337f15761710afc5877a6f943f1c8a47?s=96&r=g\",\"caption\":\"Vibhav Sinha\"},\"description\":\"(Co-Founder &amp; CTO) Brain behind all VdoCipher innovations, Vibhav eats and sleeps code. A physics and astronomy enthusiast; Vibhav actively works on video delivery technology, security and high volume data transfer using cloud.\",\"url\":\"https:\/\/www-uat.vdocipher.com\/blog\/author\/vibhavsinha\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Asynchronous video embed - VdoCipher Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/","og_locale":"en_US","og_type":"article","og_title":"Asynchronous video embed","og_description":"We have released a new embed script to be used for VdoCipher videos which is faster than the earlier embed code.\u00a0The earlier embed code used to wait for the player script to load before rendering the page after\u00a0video player. This was a\u00a0serious\u00a0delay in\u00a0page load time and affected the user experience. We have changed to asynchronous [&hellip;]","og_url":"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/","og_site_name":"VdoCipher Blog","article_publisher":"https:\/\/www.facebook.com\/vdociphertech\/","article_published_time":"2015-05-18T07:45:03+00:00","article_modified_time":"2022-08-30T09:11:56+00:00","author":"Vibhav Sinha","twitter_card":"summary_large_image","twitter_creator":"@vdocipher","twitter_site":"@vdocipher","twitter_misc":{"Written by":"Vibhav Sinha","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/#article","isPartOf":{"@id":"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/"},"author":{"name":"Vibhav Sinha","@id":"https:\/\/www.vdocipher.com\/blog\/#\/schema\/person\/44b7d612191edc5560c5cb64184d379c"},"headline":"Asynchronous video embed","datePublished":"2015-05-18T07:45:03+00:00","dateModified":"2022-08-30T09:11:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/"},"wordCount":348,"commentCount":0,"publisher":{"@id":"https:\/\/www.vdocipher.com\/blog\/#organization"},"keywords":["asynchronous video embed"],"articleSection":["APIs and Sample Codes","Using VdoCipher"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/","url":"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/","name":"Asynchronous video embed - VdoCipher Blog","isPartOf":{"@id":"https:\/\/www.vdocipher.com\/blog\/#website"},"datePublished":"2015-05-18T07:45:03+00:00","dateModified":"2022-08-30T09:11:56+00:00","breadcrumb":{"@id":"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.vdocipher.com\/blog\/2015\/05\/asynchronous-video-embed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vdocipher.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Asynchronous video embed"}]},{"@type":"WebSite","@id":"https:\/\/www.vdocipher.com\/blog\/#website","url":"https:\/\/www.vdocipher.com\/blog\/","name":"VdoCipher Blog","description":"Secure Video Streaming","publisher":{"@id":"https:\/\/www.vdocipher.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vdocipher.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vdocipher.com\/blog\/#organization","name":"VdoCipher","url":"https:\/\/www.vdocipher.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vdocipher.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.vdocipher.com\/blog\/wp-content\/uploads\/2016\/11\/VdoCipher-logo2.png","contentUrl":"https:\/\/www.vdocipher.com\/blog\/wp-content\/uploads\/2016\/11\/VdoCipher-logo2.png","width":1625,"height":1925,"caption":"VdoCipher"},"image":{"@id":"https:\/\/www.vdocipher.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vdociphertech\/","https:\/\/x.com\/vdocipher","https:\/\/www.linkedin.com\/company\/vdocipher"]},{"@type":"Person","@id":"https:\/\/www.vdocipher.com\/blog\/#\/schema\/person\/44b7d612191edc5560c5cb64184d379c","name":"Vibhav Sinha","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vdocipher.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/21359ad936924de4c06b12ee192755a4337f15761710afc5877a6f943f1c8a47?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21359ad936924de4c06b12ee192755a4337f15761710afc5877a6f943f1c8a47?s=96&r=g","caption":"Vibhav Sinha"},"description":"(Co-Founder &amp; CTO) Brain behind all VdoCipher innovations, Vibhav eats and sleeps code. A physics and astronomy enthusiast; Vibhav actively works on video delivery technology, security and high volume data transfer using cloud.","url":"https:\/\/www-uat.vdocipher.com\/blog\/author\/vibhavsinha\/"}]}},"yoast":{"focuskw":"asynchronous video embed","title":"","metadesc":"","linkdex":"66","metakeywords":"","meta-robots-noindex":"","meta-robots-nofollow":"","meta-robots-adv":"","canonical":"","redirect":"","opengraph-title":"","opengraph-description":"","opengraph-image":"","twitter-title":"","twitter-description":"","twitter-image":""},"_links":{"self":[{"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/posts\/321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/comments?post=321"}],"version-history":[{"count":1,"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/posts\/321\/revisions"}],"predecessor-version":[{"id":11906,"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/posts\/321\/revisions\/11906"}],"wp:attachment":[{"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/media?parent=321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/categories?post=321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/tags?post=321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}