{"id":27896,"date":"2022-05-05T08:28:05","date_gmt":"2022-05-05T08:28:05","guid":{"rendered":"http:\/\/create-a-youtube-like-click-to-unmute-feature-in-nuxt.js."},"modified":"2022-05-05T08:28:05","modified_gmt":"2022-05-05T08:28:05","slug":"create-a-youtube-like-click-to-unmute-feature-in-nuxt-js","status":"publish","type":"post","link":"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/","title":{"rendered":"YouTube-Like Unmute Button in NuxtJS"},"content":{"rendered":"<div class=\"wp-block-cloudinary-markdown \"><p>The representation of content in video format has grown substantially. It\u2019s arguably the primary means of sharing moments with the rest of the world.<\/p>\n<p>YouTube is one of the many platforms online that accepts the streaming and upload of videos, making it easy to watch on any device.<\/p>\n<p>This article highlights how to build a YouTube-like application using Cloudinary in Nuxt.js. A video plays muted on mobile and allows the user to listen to the audio by clicking the unmute button.<\/p>\n<h2>Sandbox<\/h2>\n<p>The working demo is in a <a href=\"https:\/\/codesandbox.io\/s\/youtube-unmute-sound-c8bpdn\">CodeSandbox<\/a>. Fork and run it to quickly get started.<\/p>\n<pre class=\"js-syntax-highlighted\"><code>    \n<\/code><\/pre>\n<\/div>\n  \n  <div class=\"wp-block-cloudinary-code-sandbox \">\n    <iframe\n      src=\"https:\/\/codesandbox.io\/embed\/youtube-unmute-sound-c8bpdn?theme=dark&amp;codemirror=1&amp;highlights=&amp;editorsize=50&amp;fontsize=14&amp;expanddevtools=0&amp;hidedevtools=0&amp;eslint=0&amp;forcerefresh=0&amp;hidenavigation=0&amp;initialpath=%2F&amp;module=&amp;moduleview=0&amp;previewwindow=&amp;view=&amp;runonclick=1\"\n      height=\"500\"\n      style=\"width: 100%;\"\n      title=\"YouTube unmute sound\"\n      loading=\"lazy\"\n      allow=\"accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking\"\n      sandbox=\"allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts\"\n    ><\/iframe>\n  <\/div>\n\n  <div class=\"wp-block-cloudinary-markdown \"><pre class=\"js-syntax-highlighted\"><code>\nCheck out the complete [source code](https:\/\/github.com\/Terieyenike\/nuxt-youtube-like) for reference.\n\n\n## Prerequisites\n\nWe need to have the following for this post:\n\n- A Cloudinary account \u2014 sign up [here](https:\/\/cloudinary.com\/users\/register\/free) for free!\n- Familiarity with Vue.\n- Basic knowledge of JavaScript.\n\n\n## Getting started\n\nTo begin, run the following command to create a new Nuxt.js app. \n\n<\/code><\/pre>\n<pre><code>npx create-nuxt-app unmute-feature\n<\/code><\/pre>\n<pre class=\"js-syntax-highlighted\"><code>\nThe process above presents a series of prompts that should look like this:\n\n<\/code><\/pre>\n<pre><code>create-nuxt-app v4.0.0\n\u2728  Generating Nuxt.js project in unmute-feature\nProject name: accept the default, press Enter\nProgramming language: JAVASCRIPT\nPackage manager: Npm\nUI framework: Tailwind CSS\nNuxt.js modules: N\/A\nLinting tools: N\/A\nTesting framework: None\nRendering mode: Universal (SSR \/ SSG)\nDeployment target: Static (Static\/Jamstack hosting)\nDevelopment tools: jsconfig.json\nWhat is your GitHub username? &lt;your-github-username&gt;\nVersion control system: GIT\n<\/code><\/pre>\n<pre class=\"js-syntax-highlighted\"><code>\nWith the boilerplate files and folders in place, run the command to start the development environment accessible on `http:\/\/localhost:3000`.\n\n<\/code><\/pre>\n<pre><code># change directory to project folder\ncd unmute-feature\n\n# start the development environment\nnpm run dev\n<\/code><\/pre>\n<pre class=\"js-syntax-highlighted\"><code>\n## Creating the YouTube-like video\n\nBefore building the YouTube unmute video feature, we'll use the Cloudinary Video Player, a JavaScript-based HTML5 video player. Navigate to the `nuxt.config.js` file and include the video player package files from the Unpkg CDN in the head object section.\n\n<\/code><\/pre>\n<pre><code>export default {\n...\n  head: {\n    link: [\n    {\n      href:&quot;https:\/\/unpkg.com\/cloudinary-video-player@1.9.0\/dist\/cld-video-player.min.css&quot;, rel:&quot;stylesheet&quot;\n    }\n  ],\n  script: [\n    {\n      src:&quot;https:\/\/unpkg.com\/cloudinary-video-player@1.9.0\/dist\/cld-video-player.min.js&quot;,\n      type:&quot;text\/javascript&quot;\n    }\n  ]\n}\n<\/code><\/pre>\n<pre class=\"js-syntax-highlighted\"><code>\nNext, in the `pages\/index.vue` file, remove the component `&lt;Tutorial \/&gt;` and add the following code.\n\n<\/code><\/pre>\n<pre><code>&lt;template&gt;\n  &lt;div&gt;\n    &lt;div class=&quot;relative&quot;&gt;\n      &lt;video id=&quot;doc-player&quot; muted class=&quot;cld-video-player cld-fluid&quot;&gt;&lt;\/video&gt;\n      &lt;button class=&quot;absolute bg-blue-700 text-white top-0 left-0 px-3 py-2&quot;&gt;Unmute&lt;\/button&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n&lt;\/template&gt;\n\n\n&lt;script&gt;\nexport default {\n  name: 'IndexPage',\n  data() {\n    return {\n      player: null,\n      videoId: 'video-player\/early_morning'\n    }\n  },\n  mounted() {\n    this.player = cloudinary.videoPlayer('doc-player', {\n      cloud_name: 'terieyenike',\n      autoplay: true,\n      controls: true\n    })\n    this.player.source(this.videoId)\n  }\n}\n&lt;\/script&gt;\n<\/code><\/pre>\n<pre class=\"js-syntax-highlighted\"><code>\nIn the code block above, we rendered the Cloudinary Video Player with the `video` tag and a `button` that allows for the unmute\/mute click event. The muted attribute on the video tag mutes the video.\n\nFor the `data` object property, we pass a set of reactive data such as the `player` variable set to null and the `videoId` set to the uploaded video asset with a public ID, `early_morning`, placed in a folder called `video-player`.\n\n\n![](https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/media_jams\/s_2B0EA4A142DAF12DFE0E8AFB3D899FDEB1B25A9FC1D0BB366C50B89CE0BC072C_1650478093827_image.png &quot;thumb:c_limit,w_2000\/f_auto\/q_auto, with_code:false, popup:false&quot;)\n\n\nFinally, we call the lifecycle hook `mounted` function after the app is mounted on the document object model (DOM). Also included within the `mounted` function is our Cloudinary cloud name and the video features such as autoplay and the player controls set to true.\n\nOur app should look like the image below.\n\n\n![](https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/media_jams\/s_2B0EA4A142DAF12DFE0E8AFB3D899FDEB1B25A9FC1D0BB366C50B89CE0BC072C_1650486036765_image.png &quot;thumb:c_limit,w_2000\/f_auto\/q_auto, with_code:false, popup:false&quot;)\n\n\n\n## Adding Button to Listen to Audio\n\nNow that we have successfully set up the video on our browser, we need to create a function that conditionally changes the text from unmute to mute on the `button` tag based on the user interaction. Doing this will allow us to hear the video.\n\nLet's update our code and include the `ref` parameter to the `video` and `button` tags, which will allow us to reference the HTML element attributes.\n\n<\/code><\/pre>\n<pre><code>&lt;template&gt;\n  &lt;div&gt;\n    &lt;div class=&quot;relative&quot;&gt;\n    &lt;video @click.prevent=&quot;unmuteVideo&quot; id=&quot;doc-player&quot; ref=&quot;video&quot; muted class=&quot;cld-video-player cld-fluid&quot;&gt;&lt;\/video&gt;\n    &lt;button @click.prevent=&quot;unmuteVideo&quot; ref=&quot;text&quot; class=&quot;absolute bg-blue-700 text-white top-0 left-0 px-3 py-2&quot;&gt;Unmute&lt;\/button&gt;\n\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n&lt;\/template&gt;\n\n&lt;script&gt;\nexport default {\n  name: 'IndexPage',\n  ...\n  methods: {\n    unmuteVideo() {\n      const vid = this.$refs.video\n      if (!vid.muted) {\n        this.$refs.text.textContent = &quot;Unmute&quot;\n      } else {\n        this.$refs.text.textContent = &quot;Mute&quot;\n      }\n      vid.muted = !vid.muted\n    }\n  },\n}\n&lt;\/script&gt;\n<\/code><\/pre>\n<pre class=\"js-syntax-highlighted\"><code>\nFrom the code above, we have: \n\n- `@click.prevent`: a `v-on` that listens to DOM events and prevents the reloading of the page\n- The `unmuteVideo` function defined on the Vue instance triggers the `muted` attribute on the video tag, enabling us to toggle between listening to the audio or not using the refs and changing the button text on each click\n- `refs`: an object that contains a property for each element pointed by the `ref` attribute defined in the `template`\n\nWith the YouTube-like video app completed, here's how it should look:\n\n\n![](https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/media_jams\/s_2B0EA4A142DAF12DFE0E8AFB3D899FDEB1B25A9FC1D0BB366C50B89CE0BC072C_1650490357475_ezgif.com-gif-maker+1.gif &quot;thumb:c_limit,w_2000\/f_auto\/q_auto, with_code:false, popup:false&quot;)\n\n\n\n## Conclusion\n\nThis post showed us the implementation of a YouTube-like app with the &quot;click to unmute&quot; feature on videos, giving users control over whether to listen to the audio.\n\n\n## Resources\n- [Video player studio](https:\/\/studio.cloudinary.com\/)\n- [JavaScript video embed element](https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Element\/video)\n[](https:\/\/cloudinary.com\/documentation\/vue_video_manipulation#referencing_the_html_video_element)- [Referencing the HTML video element](https:\/\/cloudinary.com\/documentation\/vue_video_manipulation#referencing_the_html_video_element)\n- [Setup video player](https:\/\/cloudinary.com\/documentation\/cloudinary_video_player#installation_and_setup)\n<\/code><\/pre>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":41,"featured_media":27897,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_cloudinary_featured_overwrite":false,"footnotes":""},"categories":[1],"tags":[134,177,372,371,303],"class_list":["post-27896","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-guest-post","tag-javascript","tag-nuxtjs","tag-under-review","tag-video"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.6 (Yoast SEO v26.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>YouTube-Like Unmute Button in NuxtJS<\/title>\n<meta name=\"description\" content=\"A YouTube-Like video plays a muted video when the video first loads and subsequently allows you to unmute the sound with the click of a button giving the user control.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YouTube-Like Unmute Button in NuxtJS\" \/>\n<meta property=\"og:description\" content=\"A YouTube-Like video plays a muted video when the video first loads and subsequently allows you to unmute the sound with the click of a button giving the user control.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudinary Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-05T08:28:05+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681939143\/Web_Assets\/blog\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3.jpg?_i=AA\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"NewsArticle\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"YouTube-Like Unmute Button in NuxtJS\",\"datePublished\":\"2022-05-05T08:28:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/\"},\"wordCount\":5,\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681939143\/Web_Assets\/blog\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3.jpg?_i=AA\",\"keywords\":[\"Guest Post\",\"Javascript\",\"NuxtJS\",\"Under Review\",\"Video\"],\"inLanguage\":\"en-US\",\"copyrightYear\":\"2022\",\"copyrightHolder\":{\"@id\":\"https:\/\/cloudinary.com\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/\",\"url\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/\",\"name\":\"YouTube-Like Unmute Button in NuxtJS\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681939143\/Web_Assets\/blog\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3.jpg?_i=AA\",\"datePublished\":\"2022-05-05T08:28:05+00:00\",\"description\":\"A YouTube-Like video plays a muted video when the video first loads and subsequently allows you to unmute the sound with the click of a button giving the user control.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/#primaryimage\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681939143\/Web_Assets\/blog\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3.jpg?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681939143\/Web_Assets\/blog\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3.jpg?_i=AA\",\"width\":6000,\"height\":4000},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudinary.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"YouTube-Like Unmute Button in NuxtJS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\",\"url\":\"https:\/\/cloudinary.com\/blog\/\",\"name\":\"Cloudinary Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudinary.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\",\"name\":\"Cloudinary Blog\",\"url\":\"https:\/\/cloudinary.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA\",\"width\":312,\"height\":60,\"caption\":\"Cloudinary Blog\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"YouTube-Like Unmute Button in NuxtJS","description":"A YouTube-Like video plays a muted video when the video first loads and subsequently allows you to unmute the sound with the click of a button giving the user control.","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:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/","og_locale":"en_US","og_type":"article","og_title":"YouTube-Like Unmute Button in NuxtJS","og_description":"A YouTube-Like video plays a muted video when the video first loads and subsequently allows you to unmute the sound with the click of a button giving the user control.","og_url":"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/","og_site_name":"Cloudinary Blog","article_published_time":"2022-05-05T08:28:05+00:00","twitter_card":"summary_large_image","twitter_image":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681939143\/Web_Assets\/blog\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3.jpg?_i=AA","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/#article","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/"},"author":{"name":"","@id":""},"headline":"YouTube-Like Unmute Button in NuxtJS","datePublished":"2022-05-05T08:28:05+00:00","mainEntityOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/"},"wordCount":5,"publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681939143\/Web_Assets\/blog\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3.jpg?_i=AA","keywords":["Guest Post","Javascript","NuxtJS","Under Review","Video"],"inLanguage":"en-US","copyrightYear":"2022","copyrightHolder":{"@id":"https:\/\/cloudinary.com\/#organization"}},{"@type":"WebPage","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/","url":"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/","name":"YouTube-Like Unmute Button in NuxtJS","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/#primaryimage"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681939143\/Web_Assets\/blog\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3.jpg?_i=AA","datePublished":"2022-05-05T08:28:05+00:00","description":"A YouTube-Like video plays a muted video when the video first loads and subsequently allows you to unmute the sound with the click of a button giving the user control.","breadcrumb":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/#primaryimage","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681939143\/Web_Assets\/blog\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3.jpg?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681939143\/Web_Assets\/blog\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3.jpg?_i=AA","width":6000,"height":4000},{"@type":"BreadcrumbList","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/create-a-youtube-like-click-to-unmute-feature-in-nuxt-js\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudinary.com\/blog\/"},{"@type":"ListItem","position":2,"name":"YouTube-Like Unmute Button in NuxtJS"}]},{"@type":"WebSite","@id":"https:\/\/cloudinary.com\/blog\/#website","url":"https:\/\/cloudinary.com\/blog\/","name":"Cloudinary Blog","description":"","publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudinary.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/cloudinary.com\/blog\/#organization","name":"Cloudinary Blog","url":"https:\/\/cloudinary.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA","width":312,"height":60,"caption":"Cloudinary Blog"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":""}]}},"jetpack_featured_media_url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681939143\/Web_Assets\/blog\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3\/cb6c9ed87cf29502d829babd6bd00edb492f2f1e-6000x4000-1_278977a2f3.jpg?_i=AA","_links":{"self":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/27896","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/comments?post=27896"}],"version-history":[{"count":0,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/27896\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media\/27897"}],"wp:attachment":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media?parent=27896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/categories?post=27896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/tags?post=27896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}