<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to extract the content URL from a Video File object. in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-to-extract-the-content-URL-from-a-Video-File-object/m-p/623986#M28517</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/345630"&gt;@DOctober&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out.&lt;/P&gt;
&lt;P&gt;Let's see what our community has to say.&amp;nbsp;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101257"&gt;@assi&lt;/a&gt;&amp;nbsp; and &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/61659"&gt;@Stephanie-OG&lt;/a&gt;&amp;nbsp;do you have any insight here?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you! – Jaycee&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 18:25:35 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2022-04-28T18:25:35Z</dc:date>
    <item>
      <title>How to extract the content URL from a Video File object.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-extract-the-content-URL-from-a-Video-File-object/m-p/622305#M28481</link>
      <description>&lt;P&gt;Hi! I have a question about the Video field: &lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/module-theme-fields#video" target="_blank"&gt;https://developers.hubspot.com/docs/cms/building-blocks/module-theme-fields#video&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You see I'm trying to set up a Schema data structure for our video posts, and one highly recommended property is the contentUrl or embedUrl. Is there any way to extract the content url from the Video File object?? Like this: &lt;A href="https://5638311.fs1.hubspotusercontent-na1.net/hubfs/5638311/Videos/Demos/ACA%20Demo.mp4" target="_blank"&gt;https://5638311.fs1.hubspotusercontent-na1.net/hubfs/5638311/Videos/Demos/ACA%20Demo.mp4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 15:14:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-extract-the-content-URL-from-a-Video-File-object/m-p/622305#M28481</guid>
      <dc:creator>DOctober</dc:creator>
      <dc:date>2022-04-26T15:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the content URL from a Video File object.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-extract-the-content-URL-from-a-Video-File-object/m-p/623986#M28517</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/345630"&gt;@DOctober&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out.&lt;/P&gt;
&lt;P&gt;Let's see what our community has to say.&amp;nbsp;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101257"&gt;@assi&lt;/a&gt;&amp;nbsp; and &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/61659"&gt;@Stephanie-OG&lt;/a&gt;&amp;nbsp;do you have any insight here?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you! – Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 18:25:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-extract-the-content-URL-from-a-Video-File-object/m-p/623986#M28517</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-04-28T18:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the content URL from a Video File object.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-extract-the-content-URL-from-a-Video-File-object/m-p/624224#M28524</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/345630"&gt;@DOctober&lt;/a&gt;&amp;nbsp;- as far as I can tell there's no way to extract the video file's URL from the Video field, probably because of the HubSpot Video functionalities.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when I'm doing something custom with videos, I usually use the &lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/module-theme-fields#file" target="_blank" rel="noopener"&gt;File field&lt;/A&gt; instead (it has a "Video" option), which outputs the video URL you can use for your schema.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Stephanie O'Gay Garcia&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A style="cursor: pointer; text-decoration: none; color: #000000;" href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Freelance HubSpot CMS Developer&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 01:55:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-extract-the-content-URL-from-a-Video-File-object/m-p/624224#M28524</guid>
      <dc:creator>Stephanie-OG</dc:creator>
      <dc:date>2022-04-29T01:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the content URL from a Video File object.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-extract-the-content-URL-from-a-Video-File-object/m-p/697078#M30534</link>
      <description>&lt;P&gt;I was having this issue trying to set a background video in a custom Hero module on a dynamic page template.&lt;/P&gt;
&lt;P&gt;In the database I set a video background column with the property of VIDEO.&lt;/P&gt;
&lt;P&gt;This gives a file ID number but like above I could not get the File URL from this ID. After some investigating and paying attention to various IDs and File IDs I found that the database ID I was getting was &lt;STRONG&gt;+1&lt;/STRONG&gt; from the video file ID. So I thought this may be workable. My code below allowed me to access the File ID URL from the database ID. I have tested it on 3 different videos and so far it works. Now I just have to get the custom thumbnail for the poster!&lt;/P&gt;
&lt;PRE&gt;{% if dynamic_page_hubdb_row &amp;amp;&amp;amp; dynamic_page_hubdb_row.hero_background_choice['name'] == 'Video' %}&lt;BR /&gt;  {% set videoID = dynamic_page_hubdb_row.hero_background_video %}&lt;BR /&gt;  {% set videoID = videoID|int - 1 %}&lt;BR /&gt;  {% set file = file_by_id( videoID ) %} &lt;BR /&gt;  {% set backgroundOptions = '{"loop": {{ module.background.loop }}, "source":{"mp4":" {{ file.url }}" ...etc..hero video stuff...etc..&lt;BR /&gt;{% endif %}&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 00:34:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-extract-the-content-URL-from-a-Video-File-object/m-p/697078#M30534</guid>
      <dc:creator>JohnLaprairie</dc:creator>
      <dc:date>2022-09-23T00:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the content URL from a Video File object.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-extract-the-content-URL-from-a-Video-File-object/m-p/802322#M34445</link>
      <description>&lt;P&gt;For those that see this, it's possible that it would be accurate, but that would just be a coincidence. It looks like the video player gets allocated an auto-sequenced ID after the file. These IDs are global, so if another file is uploaded at the same time then I think you'd lose the association.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Working through this myself now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 15:11:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-extract-the-content-URL-from-a-Video-File-object/m-p/802322#M34445</guid>
      <dc:creator>SBussey</dc:creator>
      <dc:date>2023-06-02T15:11:42Z</dc:date>
    </item>
  </channel>
</rss>

