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

Customize autoplay attribute in video tag ? #53

Closed
honggaruy opened this issue Apr 15, 2021 · 5 comments
Closed

Customize autoplay attribute in video tag ? #53

honggaruy opened this issue Apr 15, 2021 · 5 comments
Assignees
Labels
bug Something isn't working verified This issue was already verified

Comments

@honggaruy
Copy link

For the media processor, it looks like the autoplay attribute is added with the default configuration. (general video usage)
But, I don't want autoplay sometimes.

According to the answers of this quesition , the presence of autoplay attribute is a shorthand for true.

How can i customize the autoplay attribute in video tag ?

@jeffreytse
Copy link
Owner

Hi @honggaruy ,

Could you provide me your code? Actually, the media-processor will not set autoplay attribute automatically.

Thanks and regards

@honggaruy
Copy link
Author

Here is my code.

in Markdown

![ellystand](https://ksr-video.imgix.net/projects/2693324/video-741087-h264_high.mp4)

in Html , I copied this from Chrome Debug Tool

<p>
  <iframe id="media-video-741087-h264_high.mp4" class="media" src="https://ksr-video.imgix.net/projects/2693324/video-741087-h264_high.mp4" title="" width="100%" height="350" style="max-width: 600px;outline: none" allow="encrypted-media; picture-in-picture" frameborder="0" allowfullscreen="">
  #document
    <html>
      <head><meta name="viewport" content="width=device-width"><style id="holderjs-style" type="text/css"></style></head> 
      <body class=" __plain_text_READY__">
        <video controls="" autoplay="" name="media">
          <source src="https://ksr-video.imgix.net/projects/2693324/video-741087-h264_high.mp4" type="video/mp4">
        </video> 
      </body>
    </html>
  </iframe>
</p>

@jeffreytse jeffreytse self-assigned this Apr 15, 2021
@jeffreytse jeffreytse added bug Something isn't working verified This issue was already verified and removed bug Something isn't working verified This issue was already verified labels Apr 15, 2021
@jeffreytse
Copy link
Owner

Hi @honggaruy,

This issue has been addressed and fixed. Please update the plugin to the latest version and try again.

Thanks and regards

@honggaruy
Copy link
Author

It worked !!
I can customize autoplay attribute now. Thanks !!

@jeffreytse
Copy link
Owner

jeffreytse commented Apr 15, 2021

Hi @honggaruy ,

You're welcome! And If you like my works, welcome to take a consideration to be my sponsor, your sponsorship will help me sustain my open-source projects and make my new ideas come true. Also, you will get a badge on your profile page, I will tweet your sponsorship and add you to my BACKERS.md list. : )

Thanks and regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working verified This issue was already verified
Projects
None yet
Development

No branches or pull requests

2 participants