#didn't even realize that npf videos play automatically rip
Explore tagged Tumblr posts
ricecodes · 2 years ago
Note
hi, first of all i want to mention how helpful your codes have been, i have used them here and there for fun and i enjoyed them a lot 🥺❤️
i'm going to need some help since my new blog is dedicated to fancams. i'm using the theme rose wood. i hope how i describe it makes sense haha. my video played automatically but i want it to play on click. when i exit the video (after i click it) the sound still plays when i want it to stop. the "thumbnail" should go back to the first frame of the video after i exit. sorry if this is too demanding... i hope what i said makes sense and you can help me out... thank you <3
Hello!
If the videos are playing automatically without clicking, they're likely to be NPF videos. NPF videos play automatically since the autoplay boolean is enabled for them.
You can just add this line of jQuery before {block:ifInfiniteScroll}
$("video").removeAttr("autoplay"); It's best if you copy and paste this code from the dashboard!
You'll also need to add it again before tippy("[title]", { so it should look like this:
Tumblr media Tumblr media
As for the poster/thumbnail issue, I don't think it's possible, but then again my JS knowledge is very limited. If anyone knows a way using jQuery, please feel free to reply underneath!
Please let me know if you're still experiencing the autoplay issue! ^^
1 note · View note