Closed
Description
Current Behavior:
When the MediaPlayer
has not been made part of the viewport (such as when it is rendered below the "fold" of the page) it does not have a valid src
attribute.
Expected Behavior:
The src
attribute should always be valid.
Steps To Reproduce:
- See this CodeSandbox
- Without scrolling, inspect the page source and find the
video
element - Notice that it does not have a
src
property
- Scroll the page so that the video element comes into view
- Notice how the
video
element now has a validsrc
property
Reproduction Link:
Environment:
- Framework: React v19.0.0
- Device: MacBook Pro 16-inch, 2021
- OS: MacOS Sonoma v14.7.1
- Browser: Chrome v131
Anything Else?
This issue was originally reported as MatthewHerbst/react-to-print#772
I am the maintainer of react-to-print
the library this issue was initially reported against.