How does WeChat Mini Programs realize the function that users can watch the full video only after paying for 5 seconds to watch the video?

two videos are returned without relying on the backend, and the frontend makes its own restrictions. How to determine the video playback length by whether to pay for it or not?



suggest learning how to read the document


get the context object through the wx.createVideoContext () method, then set a setTimeout, 5s after the video starts playing, pause the video through the context object, then overwrite a view above the video tag, or turn off the control

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf2e9e-31e2a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf2e9e-31e2a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?