Question: I have a simple rails application written for **scraping** a web page. The controller calls the **scraper** utility in which I am using firefox in headless mode using watir-webdriver. The application works and returns the results properly. The way I would call the application is something like this:

<http://somedomain.com:3000/scrapers.json?session=1349426645_562&l=test>

and it returns a json string.

It takes about 15 seconds for the **scraper** to complete. While one request is in progress, when I try to launch an other request, the request is queued until the previous one completes. I am not sure if its a limitation on the rails application side or on watir-webdriver or headless gem using Xvfb.

Any pointers would help.

Thanks,
Sridhar

Answer: 
You have two options:

* HTML5 video

> 
> 
> ```
>   <video src="movie.avi" controls>
>      <!-- The msg if browser doesn't have HTML5 video support -->
>   </video>
> 
> ```
> 
>
* `<object>` for Windows Media player/QuickTime etc.

The first option will let you embed nicely the video, but will limit the user base(less than a half of browsers have HTML 5 support). Second option force the user to download the app.
This is what you want : [Play video in asp.net using C#](http://lesson8.blogspot.com/2012/03/html5-video-player-aspnet-c.html)