Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mediaelementjs marker plugins not working with youtube link or embed #183

Open
furqanwasi opened this issue Sep 17, 2020 · 1 comment
Open

Comments

@furqanwasi
Copy link

mediaelementjs marker plugins not working with youtube link or embed it creates markers elements but does not apply for width/left or expected inline style to the element something like this width: 3px; left: 19.6549%; background: rgb(51, 96, 117);
using this page files as example

http://formacionsmart.com/aulavirtual/docs/prototipos/front/js/plugins/mediaelement-4.2.8/mediaelement-plugins-2.5.0/demo/markers.html

Thanks

<video width="640" height="360" id="player1" preload="none">
    <source type="video/youtube" src="http://www.youtube.com/watch?v=nOEw9iiopwI"/>
  </video>

`<script>
var mediaElements = document.querySelectorAll('video, audio');

  for (var i = 0, total = mediaElements.length; i < total; i++) {
      new MediaElementPlayer(mediaElements[i], {
          markers: [3, 45, 360],
          markerColor: '#00FF00',
          markerWidth: 3,
          markerCallback: function (media, time) {
              alert('You reached ' + Math.round(time) + ' seconds');
          },
          features: ['playpause', 'current', 'progress', 'duration', 'volume', 'fullscreen', 'markers'],
      });
  }

</script>`
Screenshot 2020-09-17 at 1 41 25 PM

@UdayDevikar
Copy link

@furqanwasi did you got the ans. i am also facing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants