I need to track when a user clicks play on a wistia embedded video. Basically I just need to write to a SQL DB the name of the video and the logged in user. I have everything built but I need to call the server side function from the javascript. Here is the script code:
<script>
wistiaEmbed = Wistia.embed("zt4tf4py2t");
wistiaEmbed.bind("play", function () {
alert("Play"); // CALL C# FUNCTION HERE
return this.unbind;
});
</script>
Thanks, Sam