title: How to make marker mark any where on progress dynamically
body: <p>I have a problem with marker, I want the marker to be stretchable to mark anywhere on the progress bar</p>
  
  <p>As shown in below GIF</p>
  
  <p><a href="https://i.stack.imgur.com/FIzvH.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/FIzvH.gif" alt=""></a></p>
  
  <p><strong>Question:</strong> I want to select any point on the progress bar and be able to stretch the marker, which can be multiple marker points.</p>
  
  <p><strong>I don't know how to do it with below code:</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var player = videojs('demo');
  
  player.markers({
     markerStyle: {
        'width':'9px',
        'border-radius': '40%',
        'background-color': 'orange'
     },
     markerTip:{
        display: true,
        text: function(marker) {
           return "I am a marker tip: "+ marker.text;
        }
     },
     breakOverlay:{
        display: true,
        displayTime: 4,
        style:{
           'width':'100%',
           'height': '30%',
           'background-color': 'rgba(10,10,10,0.6)',
           'color': 'white',
           'font-size': '16px'
        },
        text: function(marker) {
           return "This is a break overlay: " + marker.overlayText;
        },
     },
     markers: [
        {time: 9.5, text: "this", overlayText: "1", class: "special-blue"},
        {time: 16,  text: "is", overlayText: "2"},
        {time: 23.6,text: "so", overlayText: "3"},
        {time: 28,  text: "cool", overlayText: "4"}
     ]
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://vjs.zencdn.net/4.2/video.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/videojs-markers/0.7.0/videojs-markers.js"&gt;&lt;/script&gt;
  &lt;link href="http://vjs.zencdn.net/4.2/video-js.css" rel="stylesheet"/&gt;
  &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/videojs-markers/0.7.0/videojs.markers.min.css" rel="stylesheet"/&gt;
  &lt;video id="demo" width="400" height="210" controls class="video-js vjs-default-skin"&gt;
     &lt;source src="http://vjs.zencdn.net/v/oceans.mp4" type="video/mp4"&gt;
     &lt;source src="http://vjs.zencdn.net/v/oceans.webm" type="video/webm"&gt;
  &lt;/video&gt;</code></pre>
  </div>
  </div>
  </p>