<?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: Changing Video Player Style in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Changing-Video-Player-Style/m-p/992543#M39521</link>
    <description>&lt;P&gt;and here's the link:&lt;BR /&gt;&lt;A href="https://collegenet.com/scheduling-3" target="_blank"&gt;https://collegenet.com/scheduling-3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2024 17:30:35 GMT</pubDate>
    <dc:creator>JAxtell7</dc:creator>
    <dc:date>2024-06-14T17:30:35Z</dc:date>
    <item>
      <title>Changing Video Player Style</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Changing-Video-Player-Style/m-p/992163#M39510</link>
      <description>&lt;P&gt;I'm writing a custom module that plays a video. I'd like to change the style of the controller to get rid of the black gradient under the player controls and change the controls to black instead of white.&lt;/P&gt;&lt;P&gt;I tried changing these styles in CSS but the changes are not showing up.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 00:16:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Changing-Video-Player-Style/m-p/992163#M39510</guid>
      <dc:creator>JAxtell7</dc:creator>
      <dc:date>2024-06-14T00:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Video Player Style</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Changing-Video-Player-Style/m-p/992365#M39512</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/777895"&gt;@JAxtell7&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;are you using a player-framework like &lt;A href="https://plyr.io/" target="_blank" rel="noopener"&gt;plyr.io&lt;/A&gt; or a "plain" &amp;lt;video&amp;gt;-tag?&lt;/P&gt;
&lt;P&gt;Could you please provide your code/link to a demo page?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 11:59:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Changing-Video-Player-Style/m-p/992365#M39512</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2024-06-14T11:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Video Player Style</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Changing-Video-Player-Style/m-p/992418#M39515</link>
      <description>&lt;P&gt;I'm using a plain video tag but I'm open to suggestions. Here's my code:&lt;BR /&gt;&lt;BR /&gt;html:&lt;BR /&gt;&amp;lt;div class="video-container"&amp;gt;&lt;BR /&gt;&amp;lt;div class="video"&amp;gt;&lt;BR /&gt;&amp;lt;video id="videoPlayer" class="video" autoplay muted&amp;gt;&lt;BR /&gt;&amp;lt;source src="&lt;A href="https://www.collegenet.com/hubfs/videos/series25-video-obs-1.mp4" target="_blank" rel="noopener"&gt;https://www.collegenet.com/hubfs/videos/series25-video-obs-1.mp4&lt;/A&gt;" type="video/mp4"&amp;gt;&lt;BR /&gt;&amp;lt;/video&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;BR /&gt;css:&lt;/P&gt;&lt;P&gt;@import url('&lt;A href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700&amp;amp;display=swap" target="_blank" rel="noopener"&gt;https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700&amp;amp;display=swap&lt;/A&gt;');&lt;/P&gt;&lt;P&gt;body {&lt;BR /&gt;margin: 0;&lt;BR /&gt;font-family: 'Plus Jakarta Sans', sans-serif;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.video-container {&lt;BR /&gt;position: relative;&lt;BR /&gt;width: 100%;&lt;BR /&gt;height: auto;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.video {&lt;BR /&gt;width: 100%;&lt;BR /&gt;height: auto;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.text-overlay {&lt;BR /&gt;position: absolute;&lt;BR /&gt;top: 50%;&lt;BR /&gt;left: 50%;&lt;BR /&gt;transform: translate(-50%, -50%);&lt;BR /&gt;text-align: center;&lt;BR /&gt;font-family: 'Plus Jakarta Sans', sans-serif;&lt;BR /&gt;font-size: 52px;&lt;BR /&gt;font-weight: 800;&lt;BR /&gt;color: black;&lt;BR /&gt;width: 80%;&lt;BR /&gt;height: auto;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#muteButton {&lt;BR /&gt;position: absolute;&lt;BR /&gt;bottom: 10px;&lt;BR /&gt;left: 10px;&lt;BR /&gt;background-color: black;&lt;BR /&gt;border: 1px solid black;&lt;BR /&gt;border-radius: 5px;&lt;BR /&gt;padding: 5px 10px;&lt;BR /&gt;margin: 5px;&lt;BR /&gt;font-size: 14px;&lt;BR /&gt;color: white;&lt;BR /&gt;cursor: pointer;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Updated video control styles */&lt;BR /&gt;.video-controls {&lt;BR /&gt;position: absolute;&lt;BR /&gt;bottom: 0;&lt;BR /&gt;left: 0;&lt;BR /&gt;width: 100%;&lt;BR /&gt;background: none!important; /* Set background to transparent */&lt;BR /&gt;color: black; /* Changed text color to white */&lt;BR /&gt;padding: 5px; /* Adjust padding as needed */&lt;BR /&gt;font-family: Arial, sans-serif; /* Adjust font family as needed */&lt;BR /&gt;display: none; /* Initially hide controls */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Show controls when hovering over video */&lt;BR /&gt;video:hover .video-controls {&lt;BR /&gt;display: flex;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#volumeControl {&lt;BR /&gt;margin-right: 10px; /* Added margin to separate from the mute button */&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;javascript&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;window.onload = () =&amp;gt; {&lt;BR /&gt;const videoPlayer = document.getElementById('videoPlayer');&lt;BR /&gt;let isSecondVideo = false;&lt;/P&gt;&lt;P&gt;// Function to change video source based on screen width&lt;BR /&gt;function changeVideoSource() {&lt;BR /&gt;const newsrc='&lt;A href="https://www.collegenet.com/hubfs/videos/series25-video-obs-1.mp4" target="_blank" rel="noopener"&gt;https://www.collegenet.com/hubfs/videos/series25-video-obs-1.mp4&lt;/A&gt;';&lt;BR /&gt;videoPlayer.src=newSrc;&lt;BR /&gt;videoPlayer.load();&lt;BR /&gt;videoPlayer.muted = true; // Mute the video initially&lt;BR /&gt;videoPlayer.volume = 0.2; // Set initial volume to a low level&lt;BR /&gt;videoPlayer.play(); // Attempt to autoplay&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Function to handle video click&lt;BR /&gt;function handleVideoClick() {&lt;BR /&gt;const currentsrc=videoPlayer.currentSrc;&lt;BR /&gt;const newsrc=currentSrc.includes('obs-1.mp4') ? '&lt;A href="https://www.collegenet.com/hubfs/videos/series25-video-vis-1.mp4" target="_blank" rel="noopener"&gt;https://www.collegenet.com/hubfs/videos/series25-video-vis-1.mp4&lt;/A&gt;' : '&lt;A href="https://www.collegenet.com/hubfs/videos/series25-video-obs-1.mp4" target="_blank" rel="noopener"&gt;https://www.collegenet.com/hubfs/videos/series25-video-obs-1.mp4&lt;/A&gt;';&lt;BR /&gt;videoPlayer.src=newSrc;&lt;BR /&gt;videoPlayer.load();&lt;BR /&gt;videoPlayer.muted = false; // Unmute the video&lt;BR /&gt;videoPlayer.play();&lt;/P&gt;&lt;P&gt;// Check if it's the second video and toggle controls accordingly&lt;BR /&gt;if (isSecondVideo) {&lt;BR /&gt;videoPlayer.setAttribute('controls', '');&lt;BR /&gt;} else {&lt;BR /&gt;videoPlayer.removeAttribute('controls');&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Call function to set the initial video source&lt;BR /&gt;changeVideoSource();&lt;/P&gt;&lt;P&gt;// Event listener to change video source when the video is clicked&lt;BR /&gt;videoPlayer.addEventListener('click', () =&amp;gt; {&lt;BR /&gt;isSecondVideo = !isSecondVideo;&lt;BR /&gt;handleVideoClick();&lt;BR /&gt;});&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 15:04:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Changing-Video-Player-Style/m-p/992418#M39515</guid>
      <dc:creator>JAxtell7</dc:creator>
      <dc:date>2024-06-14T15:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Video Player Style</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Changing-Video-Player-Style/m-p/992446#M39517</link>
      <description>&lt;P&gt;Here's the link:&lt;BR /&gt;&lt;A href="https://collegenet.com/scheduling-3" target="_blank"&gt;https://collegenet.com/scheduling-3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 14:23:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Changing-Video-Player-Style/m-p/992446#M39517</guid>
      <dc:creator>JAxtell7</dc:creator>
      <dc:date>2024-06-14T14:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Video Player Style</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Changing-Video-Player-Style/m-p/992448#M39518</link>
      <description>&lt;P&gt;video is at the top left, click on it and another video plays with the black gradient that I wan to remove.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 14:23:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Changing-Video-Player-Style/m-p/992448#M39518</guid>
      <dc:creator>JAxtell7</dc:creator>
      <dc:date>2024-06-14T14:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Video Player Style</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Changing-Video-Player-Style/m-p/992543#M39521</link>
      <description>&lt;P&gt;and here's the link:&lt;BR /&gt;&lt;A href="https://collegenet.com/scheduling-3" target="_blank"&gt;https://collegenet.com/scheduling-3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 17:30:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Changing-Video-Player-Style/m-p/992543#M39521</guid>
      <dc:creator>JAxtell7</dc:creator>
      <dc:date>2024-06-14T17:30:35Z</dc:date>
    </item>
  </channel>
</rss>

