Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
1.44/5 (3 votes)
See more:
I put this code in the page to run videos :

XML
<video id="asd" style="max-height: 500px; width: 600px;" controls="controls">
<source src="UploadedVideos/<%#Eval("VideoID")%>" type="video/mp4" /> 
</video>


and the user run the video no problem, but i need to know if the user watch it or not
how to know if the user play the video and watched it.
Posted
Updated 6-Jun-22 4:13am

1 solution

1. Create a variable called "watched" set to false
2. Check for when you click on it, then when you do set the value of "watched" to true

(there's is probably a better way of doing this, but this is what I'd do)
 
Share this answer
 
Comments
Keerat Singh _ 9H 5-Nov-21 8:14am    
YEs this way you can do

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900