{"id":4663,"date":"2019-10-07T19:37:09","date_gmt":"2019-10-07T19:37:09","guid":{"rendered":"https:\/\/www.vdocipher.com\/blog\/?page_id=4663"},"modified":"2023-05-24T19:22:36","modified_gmt":"2023-05-24T19:22:36","slug":"time-playback-calculation-restriction","status":"publish","type":"page","link":"https:\/\/www-uat.vdocipher.com\/blog\/time-playback-calculation-restriction\/","title":{"rendered":"Time playback calculation with code &#038; restriction on watch time"},"content":{"rendered":"<p><a href=\"https:\/\/www.vdocipher.com\/docs\/player\/v2\/examples\/time-track\/\" target=\"_blank\" rel=\"noopener noreferrer\">Reference link for time playback calculation<\/a> &#8211; Please watch video for detailed explanation.<br \/>\n<a href=\"https:\/\/www.vdocipher.com\/docs\/player\/v2\/api-reference\/vdocipher-custom-api\" target=\"_blank\" rel=\"noopener noreferrer\">All player callbacks included totalPlayed &amp; totalCovered for Website Integration<\/a><br \/>\n<a href=\"https:\/\/www.vdocipher.com\/page\/api\" target=\"_blank\" rel=\"noopener noreferrer\">Complete API page<\/a><\/p>\n<div style=\"padding-top: 56.25%; position: relative;\"><iframe style=\"border: 0; height: 100%; width: 100%; max-width: 100%; position: absolute; top: 0px; left: 0px;\" src=\"https:\/\/player.vdocipher.com\/v2\/?otp=20160313versUSE313XhMgDwuuryyGbgQ1bqHbq9p0dC2w1biiUJcedwKsJWya4E&amp;playbackInfo=eyJ2aWRlb0lkIjoiNmNiOGQ0NjExMzQ0NDVlYjk5MjE1MTIyNTAxMzE4YjYifQ==\" allowfullscreen=\"allowfullscreen\" allow=\"encrypted-media\"><\/iframe><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Reference link for time playback calculation &#8211; Please watch video for detailed explanation. All player callbacks included totalPlayed &amp; totalCovered for Website Integration Complete API page &nbsp;<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":{"0":"post-4663","1":"page","2":"type-page","3":"status-publish","5":"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>Time playback calculation with code &amp; restriction on watch time - 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\/time-playback-calculation-restriction\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Time playback calculation with code &amp; restriction on watch time\" \/>\n<meta property=\"og:description\" content=\"Reference link for time playback calculation &#8211; Please watch video for detailed explanation. All player callbacks included totalPlayed &amp; totalCovered for Website Integration Complete API page &nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vdocipher.com\/blog\/time-playback-calculation-restriction\/\" \/>\n<meta property=\"og:site_name\" content=\"VdoCipher Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vdociphertech\/\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-24T19:22:36+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@vdocipher\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vdocipher.com\/blog\/time-playback-calculation-restriction\/\",\"url\":\"https:\/\/www.vdocipher.com\/blog\/time-playback-calculation-restriction\/\",\"name\":\"Time playback calculation with code & restriction on watch time - VdoCipher Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.vdocipher.com\/blog\/#website\"},\"datePublished\":\"2019-10-07T19:37:09+00:00\",\"dateModified\":\"2023-05-24T19:22:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vdocipher.com\/blog\/time-playback-calculation-restriction\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vdocipher.com\/blog\/time-playback-calculation-restriction\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vdocipher.com\/blog\/time-playback-calculation-restriction\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vdocipher.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Time playback calculation with code &#038; restriction on watch time\"}]},{\"@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\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Time playback calculation with code & restriction on watch time - 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\/time-playback-calculation-restriction\/","og_locale":"en_US","og_type":"article","og_title":"Time playback calculation with code & restriction on watch time","og_description":"Reference link for time playback calculation &#8211; Please watch video for detailed explanation. All player callbacks included totalPlayed &amp; totalCovered for Website Integration Complete API page &nbsp;","og_url":"https:\/\/www.vdocipher.com\/blog\/time-playback-calculation-restriction\/","og_site_name":"VdoCipher Blog","article_publisher":"https:\/\/www.facebook.com\/vdociphertech\/","article_modified_time":"2023-05-24T19:22:36+00:00","twitter_card":"summary_large_image","twitter_site":"@vdocipher","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vdocipher.com\/blog\/time-playback-calculation-restriction\/","url":"https:\/\/www.vdocipher.com\/blog\/time-playback-calculation-restriction\/","name":"Time playback calculation with code & restriction on watch time - VdoCipher Blog","isPartOf":{"@id":"https:\/\/www.vdocipher.com\/blog\/#website"},"datePublished":"2019-10-07T19:37:09+00:00","dateModified":"2023-05-24T19:22:36+00:00","breadcrumb":{"@id":"https:\/\/www.vdocipher.com\/blog\/time-playback-calculation-restriction\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vdocipher.com\/blog\/time-playback-calculation-restriction\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.vdocipher.com\/blog\/time-playback-calculation-restriction\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vdocipher.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Time playback calculation with code &#038; restriction on watch time"}]},{"@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"]}]}},"yoast":{"focuskw":"","title":"","metadesc":"","linkdex":"","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\/pages\/4663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/comments?post=4663"}],"version-history":[{"count":4,"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/pages\/4663\/revisions"}],"predecessor-version":[{"id":13973,"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/pages\/4663\/revisions\/13973"}],"wp:attachment":[{"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/media?parent=4663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/categories?post=4663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www-uat.vdocipher.com\/blog\/wp-json\/wp\/v2\/tags?post=4663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}