{"id":440,"date":"2016-02-11T00:02:47","date_gmt":"2016-02-11T00:02:47","guid":{"rendered":"https:\/\/www.vdocipher.com\/blog\/?p=440"},"modified":"2020-09-03T08:07:46","modified_gmt":"2020-09-03T08:07:46","slug":"drupal-module-to-embed-vdocipher-videos","status":"publish","type":"post","link":"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/","title":{"rendered":"Drupal module to embed VdoCipher videos"},"content":{"rendered":"<p>Your videos on VdoCipher are protected and can only be\u00a0played by an access token for each video view. This access token needs to be generated securely\u00a0in your website backend. VdoCipher&#8217;s Drupal module handles this, making sure that you need only a single-line shortcode to add videos to your Drupal site. <\/p>\n<p>Behind the scenes the module uses a shortcode-like syntax to parse and display videos. Videos can be displayed inside any node such as an article or a page or a custom content type. The markup of the content body is processed and the shortcode syntax is replaced with the player code.<\/p>\n<p style=\"text-align: left;\"><a href=\"https:\/\/github.com\/VdoCipher\/drupal-module\/archive\/7.x-1.x.tar.gz\">Download here<\/a><\/p>\n<ol>\n<li>Download the module file\u00a0from the link above.<\/li>\n<li>Upload the module file from the install new module page in your Drupal &#8220;install new module&#8221; page.<\/li>\n<li>Enable the uploaded module.<\/li>\n<li>Click on the configure link in the module page to complete your setup.<\/li>\n<li>Copy your API secret key from VdoCipher Dashboard &gt; Config &gt; General.<\/li>\n<li>Enter the API key in Drupal and save your settings.<\/li>\n<li>Save the configuration.<\/li>\n<li>Copy a\u00a0video id from your VdoCipher dashboard. Edit an existing node\u00a0in Drupal\u00a0and\u00a0add this code in any text field (replace 123456789 with\u00a0id of a video).\n<pre>[vdo id=123456789]<\/pre>\n<\/li>\n<li>Open the article on a page. You should see the video player in your\u00a0Drupal website.<\/li>\n<\/ol>\n<h4>Note on watermark\u00a0adding.<\/h4>\n<p>The watermark can be added to your videos to imprint info about the logged in user or an image for branding. You can configure the watermark from the module configuration page. Check <a href=\"https:\/\/www.vdocipher.com\/blog\/2014\/12\/add-text-to-videos-with-watermark\/\">this article<\/a> for more information on the structure and format required to add watermark text or image in the video.\u00a0Please note that Drupal-7.x does not provide any APIs to get current user, for which reason the user name, user ID and user email cannot be configured in watermark. Our license server can identify the IP requesting the video with the date. A sample request using both IP address and date in the watermark is as follows<\/p>\n<pre>[{'type':'rtext','text':'[ip] [date.h:i:s A]','alpha':'0.8', 'color':'0xFF0000', 'size':'15', 'interval':'5000', 'skip':'2000'}]\r\n<\/pre>\n<h4>A note about caching<\/h4>\n<p>OTP generated here is temporary. You can not cache this OTP and send it to multiple users as it might cause trouble. The OTP once used gets expired and can no longer be used to\u00a0play video. Some extensions might try to automate the page rendering and especially when\u00a0on pages which do not need login. The configuration must be set to make sure\u00a0pages with\u00a0embedded videos are not cached and cause error while playback.<\/p>\n<p>For reference about how everything works, please check <a href=\"https:\/\/www.vdocipher.com\/page\/api\" target=\"_blank\" rel=\"noopener noreferrer\">API reference<\/a>.<\/p>\n<h4>Drupal FAQ<\/h4>\n<p>Q. I am seeing the message: <em>Unauthorized<\/em><br \/>\nA. Most probably, you have extra spaces in the API key configuration. Go to the module configuration for VdoCipher and make sure the API key is correct.<\/p>\n<p>Q. I am seeing message: <em>Video not found<\/em><br \/>\nA. This would probably mean that the video id is not correct. The rich-text editor you are using to add the shortcode\u00a0might have added extra characters.\u00a0Content saved in the database is HTML while you are shown rendered HTML in the editor. Click on one of the &#8220;view source&#8221; option in your editor and try re-pasting the shortcode. Also, make sure there are no spaces before or after the equality sign.<\/p>\n<p>Q. How to set this up for selling video as PPV or subscription?<br \/>\nA. The video can only be viewed by the person who has purchased a membership or a\u00a0video. You need to set up Drupal permissions such as only those persons can view the assigned content-type which has video.<\/p>\n<p>Q. The height and width are not what I want<br \/>\nA. The height and width are taken from the\u00a0module configuration and overridden\u00a0from the shortcode. Did I tell you, you can also add the height and width info like the following. In case the provided width is greater than the available width, the width is set to 100% of available width and height is adjusted to keep the same aspect ratio as provided by the settings.<\/p>\n<p>Q. Why is this not integrated with the media module<br \/>\nA. That what was the\u00a0idea when we started working on it. But turns out there are certain permission concerns that we need to understand to make sure that using the media module is alright\u00a0for your video accessibility.<\/p>\n<p>Q. How to manage permission on\u00a0creating video playable contents<br \/>\nA. The shortcode for video can be added to any node and thus anybody who has the permission\u00a0to create node(any content type) can add a shortcode to play the video. Note that comment is not a node. We understand this might be a problem for your set-up in a multi-user environment. We plan to solve this problem in the next version\u00a0with either\u00a0a custom content type or using the media\u00a0module to make it easy to control permissions.\u00a0At the very least, we can add a white-list of content-types which can only have a video embedded in it but it might not work in all cases.<\/p>\n<p>Do let us know\u00a0about your experiences\u00a0setting up your secure video in Drupal\u00a0to create your own PPV or subscription-based video portal.\u00a0and how we can make the integration simpler.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Your videos on VdoCipher are protected and can only be\u00a0played by an access token for each video view. This access token needs to be generated securely\u00a0in your website backend. VdoCipher&#8217;s Drupal module handles this, making sure that you need only a single-line shortcode to add videos to your Drupal site. Behind the scenes the module [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46,86],"tags":[87],"class_list":{"0":"post-440","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-api","7":"category-drupal","8":"tag-drupal-video-module","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>Drupal module to embed VdoCipher videos - 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\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Drupal module to embed VdoCipher videos\" \/>\n<meta property=\"og:description\" content=\"Your videos on VdoCipher are protected and can only be\u00a0played by an access token for each video view. This access token needs to be generated securely\u00a0in your website backend. VdoCipher&#8217;s Drupal module handles this, making sure that you need only a single-line shortcode to add videos to your Drupal site. Behind the scenes the module [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/\" \/>\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=\"2016-02-11T00:02:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-03T08:07:46+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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/\"},\"author\":{\"name\":\"Vibhav Sinha\",\"@id\":\"https:\/\/www.vdocipher.com\/blog\/#\/schema\/person\/44b7d612191edc5560c5cb64184d379c\"},\"headline\":\"Drupal module to embed VdoCipher videos\",\"datePublished\":\"2016-02-11T00:02:47+00:00\",\"dateModified\":\"2020-09-03T08:07:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/\"},\"wordCount\":870,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.vdocipher.com\/blog\/#organization\"},\"keywords\":[\"drupal video module\"],\"articleSection\":[\"APIs and Sample Codes\",\"Drupal\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/\",\"url\":\"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/\",\"name\":\"Drupal module to embed VdoCipher videos - VdoCipher Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.vdocipher.com\/blog\/#website\"},\"datePublished\":\"2016-02-11T00:02:47+00:00\",\"dateModified\":\"2020-09-03T08:07:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vdocipher.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Drupal module to embed VdoCipher videos\"}]},{\"@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":"Drupal module to embed VdoCipher videos - 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\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/","og_locale":"en_US","og_type":"article","og_title":"Drupal module to embed VdoCipher videos","og_description":"Your videos on VdoCipher are protected and can only be\u00a0played by an access token for each video view. This access token needs to be generated securely\u00a0in your website backend. VdoCipher&#8217;s Drupal module handles this, making sure that you need only a single-line shortcode to add videos to your Drupal site. Behind the scenes the module [&hellip;]","og_url":"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/","og_site_name":"VdoCipher Blog","article_publisher":"https:\/\/www.facebook.com\/vdociphertech\/","article_published_time":"2016-02-11T00:02:47+00:00","article_modified_time":"2020-09-03T08:07:46+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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/#article","isPartOf":{"@id":"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/"},"author":{"name":"Vibhav Sinha","@id":"https:\/\/www.vdocipher.com\/blog\/#\/schema\/person\/44b7d612191edc5560c5cb64184d379c"},"headline":"Drupal module to embed VdoCipher videos","datePublished":"2016-02-11T00:02:47+00:00","dateModified":"2020-09-03T08:07:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/"},"wordCount":870,"commentCount":0,"publisher":{"@id":"https:\/\/www.vdocipher.com\/blog\/#organization"},"keywords":["drupal video module"],"articleSection":["APIs and Sample Codes","Drupal"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/","url":"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/","name":"Drupal module to embed VdoCipher videos - VdoCipher Blog","isPartOf":{"@id":"https:\/\/www.vdocipher.com\/blog\/#website"},"datePublished":"2016-02-11T00:02:47+00:00","dateModified":"2020-09-03T08:07:46+00:00","breadcrumb":{"@id":"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www-uat.vdocipher.com\/blog\/2016\/02\/drupal-module-to-embed-vdocipher-videos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vdocipher.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Drupal module to embed VdoCipher videos"}]},{"@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":"drupal module","title":"","metadesc":"","linkdex":"75","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\/440","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=440"}],"version-history":[{"count":0,"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/posts\/440\/revisions"}],"wp:attachment":[{"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/media?parent=440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/categories?post=440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/tags?post=440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}