{"id":28213,"date":"2021-05-18T21:48:13","date_gmt":"2021-05-18T21:48:13","guid":{"rendered":"http:\/\/Utilizing-Product-Videos-in-Gatsby.js-Commerce"},"modified":"2021-05-18T21:48:13","modified_gmt":"2021-05-18T21:48:13","slug":"utilizing-product-videos-in-gatsby-js-commerce","status":"publish","type":"post","link":"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/","title":{"rendered":"Utilizing Product Videos in Gatsby.js Commerce"},"content":{"rendered":"<div class=\"wp-block-cloudinary-markdown \"><p><a href=\"https:\/\/www.gatsbyjs.com\/\">Gatsby.js<\/a> is a front-end web technology that helps streamline making fast, search-engine friendly and secure websites. It does that using modern technologies like React and GraphQL.<\/p>\n<p>This post explores using product videos on an e-commerce store to engage and convert users.<\/p>\n<blockquote>\n<p>Care should be taken as videos not optimized can affect the performance and speed of the website.<\/p>\n<\/blockquote>\n<p>We\u2019ll utilize the Cloudinary video player, which helps us render an optimized video.<\/p>\n<p>At the end of this tutorial, we\u2019ll gain a solid understanding of how to render a product video using the URL of a video stored on Cloudinary. A user should be able to carry out video transformations on the video player if they choose.<\/p>\n<h2>Sandbox<\/h2>\n<p>We completed the entire project on <a href=\"https:\/\/codesandbox.io\/s\/gatsby-commerce-video-main-8ybgq\">Codesandbox<\/a>, and you can fork it to run the code.<\/p>\n<\/div>\n  \n  <div class=\"wp-block-cloudinary-code-sandbox \">\n    <iframe\n      src=\"https:\/\/codesandbox.io\/embed\/gatsby-commerce-video-main-8ybgq?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=%2Fsrc%2Fcomponents%2FVideoPlayer%2Findex.js&amp;moduleview=0&amp;previewwindow=&amp;view=&amp;runonclick=1\"\n      height=\"500\"\n      style=\"width: 100%;\"\n      title=\"Using product videos in Gatsby commerce\"\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 \"><h2>Prerequisites and Installation<\/h2>\n<p>This article assumes that you have a basic knowledge of JavaScript, and React.js is required. However, understanding Gatsby.js is not a necessity.<\/p>\n<p>We\u2019ll use the <a href=\"https:\/\/www.gatsbyjs.com\/starters\/parmsang\/gatsby-starter-ecommerce\">gatsby-starter-ecommerce<\/a> starter to scaffold the front-end of an e-commerce site from the command line. First, we install Gatsby globally and create a new project in our desired directory with the URL of the starter template. Gatsby ships starters to help scaffold projects quickly.<\/p>\n<p>The Gatsby CLI is available via npm, and we install it using the command:<\/p>\n<pre class=\"js-syntax-highlighted\"><span><code class=\"hljs shcb-wrap-lines\">    npm install -g gatsby-cli\n<\/code><\/span><\/pre>\n<p>We create a new project titled \u201cgatsby-starter-ecommerce\u201d from an e-commerce starter using the command:<\/p>\n<pre class=\"js-syntax-highlighted\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">    gatsby <span class=\"hljs-keyword\">new<\/span> gatsby-starter-ecommerce https:<span class=\"hljs-comment\">\/\/github.com\/parmsang\/gatsby-starter-ecommerce<\/span>\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n<p>The above command installs Gatsby and creates a new project titled \u201cgatsby-starter-ecommerce\u201d.<\/p>\n<p>Cloudinary is a cloud-based media management service that handles all digital media stored, transformed, and optimized for a great media experience. We\u2019ll use the Video component shipped with Cloudinary\u2019s React.js library, <a href=\"https:\/\/www.npmjs.com\/package\/cloudinary-react\">cloudinary-react<\/a>, to render and display the video.<\/p>\n<p>We need to install the dependencies in our project using the CLI command.<\/p>\n<pre class=\"js-syntax-highlighted\"><span><code class=\"hljs shcb-wrap-lines\">    npm install cloudinary-react\n<\/code><\/span><\/pre>\n<p>To start the development server on localhost:8000, we run the app using the command:<\/p>\n<pre class=\"js-syntax-highlighted\"><span><code class=\"hljs shcb-wrap-lines\">    npm run develop\n<\/code><\/span><\/pre>\n<h2>Product video creation<\/h2>\n<p>We create a new directory in the src\/components directory called VideoPlayer, and in there, we create a file called index.js that would contain all the components and styles we need to run our video player.<\/p>\n<pre class=\"js-syntax-highlighted\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">    <span class=\"hljs-comment\">\/\/ src\/components\/VideoPlayer\/index.js<\/span>\n    <span class=\"hljs-keyword\">import<\/span> React, {useState, useEffect, memo} <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-string\">'react'<\/span>\n    <span class=\"hljs-keyword\">import<\/span> {Video, CloudinaryContext} <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-string\">'cloudinary-react'<\/span>\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n<p>We create a function component for the video player. The component will return a Cloudinary video wrapped around a Cloudinary Context component. Cloudinary Context provides a container with shared data accessible by all child Cloudinary components.<\/p>\n<pre class=\"js-syntax-highlighted\"><code>    const ProductVideo = ({video = 'video-ecommerce\/tomato'}) =&gt; {\n      return (\n        &lt;CloudinaryContext cloudName=&quot;codeg0d&quot;&gt;\n          &lt;Video\n            publicId={video}\n            controls\n            width=&quot;100%&quot;\n          \/&gt;\n        &lt;\/CloudinaryContext&gt;\n      )\n    }\n    \n    export default ProductVideo\n<\/code><\/pre>\n<p>From the Cloudinary Context, we provided a cloud name. To obtain a cloud name, you need to register a <a href=\"https:\/\/cloudinary.com\/users\/register\/free\">new account on Cloudinary<\/a> to get the cloud name value from your dashboard.<\/p>\n<h2>Rendering the video player<\/h2>\n<p>With the completed steps above, we render a <code>ProductVideo<\/code> component into the <code>ProductAttributes<\/code> component, in src\/components\/index.js. Next, we update the code component to include the video player.<\/p>\n<pre class=\"js-syntax-highlighted\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">    <span class=\"hljs-keyword\">import<\/span> React <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-string\">'react'<\/span>\n    <span class=\"hljs-keyword\">import<\/span> {Header, Divider, Table} <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-string\">'semantic-ui-react'<\/span>\n    <span class=\"hljs-keyword\">import<\/span> ProductVideo <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-string\">'..\/VideoPlayer\/index'<\/span>\n    \n    <span class=\"hljs-keyword\">export<\/span> <span class=\"hljs-keyword\">default<\/span> ({description, material, max_watt, bulb_qty, finish, bulb}) =&gt; (\n     <span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div<\/span>&gt;<\/span>\n      <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Header<\/span> <span class=\"hljs-attr\">as<\/span>=<span class=\"hljs-string\">\"h3\"<\/span>&gt;<\/span>About this product<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">Header<\/span>&gt;<\/span>\n      <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">p<\/span>&gt;<\/span>{description}<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">p<\/span>&gt;<\/span>\n      <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Divider<\/span> \/&gt;<\/span>\n      <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Table<\/span> <span class=\"hljs-attr\">celled<\/span>&gt;<\/span>\n       {\/*table information goes in here*\/}\n      <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">Table<\/span>&gt;<\/span>\n      <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Divider<\/span> \/&gt;<\/span>\n      <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">ProductVideo<\/span> \/&gt;<\/span>\n     <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">div<\/span>&gt;<\/span><\/span>\n    )\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n<h2>Video transformation<\/h2>\n<p>In this post, we stated that Cloudinary is cloud-based, and it offers the possibility for transformation of videos using the <a href=\"https:\/\/cloudinary.com\/documentation\/transformation_reference\">Transformation URL API Reference<\/a>, which include all transformation parameters.<\/p>\n<p>We can apply transformations to the video rendered in the <code>ProductVideo<\/code> component.<\/p>\n<pre class=\"js-syntax-highlighted\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript shcb-wrap-lines\">    <span class=\"hljs-keyword\">const<\/span> ProductVideo = <span class=\"hljs-function\">(<span class=\"hljs-params\">{video = <span class=\"hljs-string\">'video-ecommerce\/tomato'<\/span>}<\/span>) =&gt;<\/span> {\n      <span class=\"hljs-keyword\">return<\/span> (\n        <span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">CloudinaryContext<\/span> <span class=\"hljs-attr\">cloudName<\/span>=<span class=\"hljs-string\">\"codeg0d\"<\/span>&gt;<\/span>\n          <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Video<\/span>\n            <span class=\"hljs-attr\">publicId<\/span>=<span class=\"hljs-string\">{video}<\/span>\n            <span class=\"hljs-attr\">controls<\/span>\n            <span class=\"hljs-attr\">width<\/span>=<span class=\"hljs-string\">\"100%\"<\/span>\n            <span class=\"hljs-attr\">sourceTransformation<\/span>=<span class=\"hljs-string\">{{<\/span>\n              <span class=\"hljs-attr\">ogv:<\/span> {\n                <span class=\"hljs-attr\">aspect_ratio:<\/span> '<span class=\"hljs-attr\">3:2<\/span>',\n              },\n              <span class=\"hljs-attr\">webm:<\/span> {\n                <span class=\"hljs-attr\">aspectRatio:<\/span> '<span class=\"hljs-attr\">1:1<\/span>',\n              },\n            }}\n            <span class=\"hljs-attr\">sourceTypes<\/span>=<span class=\"hljs-string\">{&#91;<\/span>'<span class=\"hljs-attr\">webm<\/span>', '<span class=\"hljs-attr\">ogv<\/span>', '<span class=\"hljs-attr\">mp4<\/span>']}\n          \/&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">CloudinaryContext<\/span>&gt;<\/span><\/span>\n      )\n    }\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n<p>In the above code block, we defined the source types and source transformation parameters for our video.<\/p>\n<p>The <code>sourceTransformation<\/code> parameter specifies the aspect ratio for each video format and determines how the asset (video) is adjusted to new dimensions. Finally, the <a href=\"https:\/\/cloudinary.com\/documentation\/video_manipulation_and_delivery\">sourceTypes<\/a> parameter is an ordered array of the video source types to include in the HTML5 tag, where the type is mapped to the mime type.<\/p>\n<p>There are multiple other parameters we can include based on our preference and what we want to achieve.<\/p>\n<p>With these, we have the product page looking like this. Spot the video after the product attributes.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/c_limit,w_2000\/f_auto\/q_auto\/media_jams\/s_B1B2A1FC1246B6497237395C96AEF6138EE2A5B9B5B7814EE31D36CFAF22A05A_1620026826060_ecommerce.gif\" alt=\"Product video\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"640\" height=\"320\"\/><\/p>\n<h2>Summary<\/h2>\n<p>The use of product videos in your e-commerce store can improve customers\u2019 trust and boost sales. With Cloudinary, this is possible as we can optimize and transform product videos for the best user and media experience.<\/p>\n<h2>Resources<\/h2>\n<p>You may find these resources helpful.<\/p>\n<ul>\n<li>\n<a href=\"https:\/\/github.com\/thebuilder\/react-intersection-observer\">React Intersection Observer<\/a>\n<\/li>\n<li>\n<a href=\"https:\/\/cloudinary.github.io\/cloudinary-react\/docs\/\">Cloudinary React<\/a>\n<\/li>\n<li>\n<a href=\"https:\/\/www.gatsbyjs.com\/docs\/tutorial\/\">Gatsby Tutorial<\/a>\n<\/li>\n<\/ul>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":41,"featured_media":28214,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_cloudinary_featured_overwrite":false,"footnotes":""},"categories":[1],"tags":[378,134,371,303],"class_list":["post-28213","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-gatsbyjs","tag-guest-post","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>Utilizing Product Videos in Gatsby.js Commerce<\/title>\n<meta name=\"description\" content=\"Learn how to optimize and transform videos using the Cloudinary video player.\" \/>\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\/utilizing-product-videos-in-gatsby-js-commerce\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Utilizing Product Videos in Gatsby.js Commerce\" \/>\n<meta property=\"og:description\" content=\"Learn how to optimize and transform videos using the Cloudinary video player.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudinary Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-18T21:48:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925100\/Web_Assets\/blog\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c.jpg?_i=AA\" \/>\n\t<meta property=\"og:image:width\" content=\"4078\" \/>\n\t<meta property=\"og:image:height\" content=\"2719\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"NewsArticle\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"Utilizing Product Videos in Gatsby.js Commerce\",\"datePublished\":\"2021-05-18T21:48:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/\"},\"wordCount\":7,\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925100\/Web_Assets\/blog\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c.jpg?_i=AA\",\"keywords\":[\"GatsbyJS\",\"Guest Post\",\"Under Review\",\"Video\"],\"inLanguage\":\"en-US\",\"copyrightYear\":\"2021\",\"copyrightHolder\":{\"@id\":\"https:\/\/cloudinary.com\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/\",\"url\":\"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/\",\"name\":\"Utilizing Product Videos in Gatsby.js Commerce\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925100\/Web_Assets\/blog\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c.jpg?_i=AA\",\"datePublished\":\"2021-05-18T21:48:13+00:00\",\"description\":\"Learn how to optimize and transform videos using the Cloudinary video player.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/#primaryimage\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925100\/Web_Assets\/blog\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c.jpg?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925100\/Web_Assets\/blog\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c.jpg?_i=AA\",\"width\":4078,\"height\":2719},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudinary.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Utilizing Product Videos in Gatsby.js Commerce\"}]},{\"@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":"Utilizing Product Videos in Gatsby.js Commerce","description":"Learn how to optimize and transform videos using the Cloudinary video player.","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\/utilizing-product-videos-in-gatsby-js-commerce\/","og_locale":"en_US","og_type":"article","og_title":"Utilizing Product Videos in Gatsby.js Commerce","og_description":"Learn how to optimize and transform videos using the Cloudinary video player.","og_url":"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/","og_site_name":"Cloudinary Blog","article_published_time":"2021-05-18T21:48:13+00:00","og_image":[{"width":4078,"height":2719,"url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925100\/Web_Assets\/blog\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c.jpg?_i=AA","type":"image\/jpeg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/#article","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/"},"author":{"name":"","@id":""},"headline":"Utilizing Product Videos in Gatsby.js Commerce","datePublished":"2021-05-18T21:48:13+00:00","mainEntityOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/"},"wordCount":7,"publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925100\/Web_Assets\/blog\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c.jpg?_i=AA","keywords":["GatsbyJS","Guest Post","Under Review","Video"],"inLanguage":"en-US","copyrightYear":"2021","copyrightHolder":{"@id":"https:\/\/cloudinary.com\/#organization"}},{"@type":"WebPage","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/","url":"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/","name":"Utilizing Product Videos in Gatsby.js Commerce","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/#primaryimage"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925100\/Web_Assets\/blog\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c.jpg?_i=AA","datePublished":"2021-05-18T21:48:13+00:00","description":"Learn how to optimize and transform videos using the Cloudinary video player.","breadcrumb":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/#primaryimage","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925100\/Web_Assets\/blog\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c.jpg?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925100\/Web_Assets\/blog\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c.jpg?_i=AA","width":4078,"height":2719},{"@type":"BreadcrumbList","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/utilizing-product-videos-in-gatsby-js-commerce\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudinary.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Utilizing Product Videos in Gatsby.js Commerce"}]},{"@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\/v1681925100\/Web_Assets\/blog\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c\/a134284bd23493d5555eaa25da3368a077a9e7f4-4078x2719-1_28214ba27c.jpg?_i=AA","_links":{"self":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/28213","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=28213"}],"version-history":[{"count":0,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/28213\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media\/28214"}],"wp:attachment":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media?parent=28213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/categories?post=28213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/tags?post=28213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}