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

How to custom Video tag like this #185

Open
zhouzhuo810 opened this issue Aug 23, 2024 · 2 comments
Open

How to custom Video tag like this #185

zhouzhuo810 opened this issue Aug 23, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@zhouzhuo810
Copy link

my video tag format is:

<video width="320" height="240" controls>
  <source src="xxx/movie.mp4" type="video/mp4">
</video>

This code does not work:
https://github.com/asjqkkkk/markdown_widget/blob/dev/example/lib/markdown_custom/video.dart

please tell me how to get src of source ,thank you~

@zhouzhuo810 zhouzhuo810 added the enhancement New feature or request label Aug 23, 2024
@zhouzhuo810
Copy link
Author

@asjqkkkk help

@asjqkkkk
Copy link
Owner

Hi @zhouzhuo810 , you need change the html like this:

<video width="320" height="240" src="xxx/movie.mp4">

then you can get the src.

Or you need custom your own html parser with : https://github.com/asjqkkkk/markdown_widget/blob/dev/example/lib/markdown_custom/html_support.dart

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

No branches or pull requests

2 participants