# Calling a c# method at the end of a flash video

**URL:** <https://forum.kirupa.com/t/calling-a-c-method-at-the-end-of-a-flash-video/302687>\
**Category:** Uncategorized\
**Created:** [January 5, 2010, 10:50pm UTC](https://forum.kirupa.com/t/calling-a-c-method-at-the-end-of-a-flash-video/302687 "2010-01-05T22:50:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkvenu](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@pkvenu](https://forum.kirupa.com/u/pkvenu)\
**Post date:** [January 5, 2010, 10:50pm UTC](https://forum.kirupa.com/t/calling-a-c-method-at-the-end-of-a-flash-video/302687/1 "2010-01-05T22:50:55Z")

</div>

Hi,

```
   I am currently building a application in silverlight 3 where i do a search for a you tube video and it returns me with a set of videos. I then play the video by embedding the flash player with a HTML-Placeholder in silverlight 3. 

```

Problem:  
I want to determine the end of the flash file and call a c# function (which will play the next video). I don’t know how to archive this.

Any Help with this is greatly appreciated.

Regards,  
Pawan
