# Playing videos

**URL:** <https://www.ruby-forum.com/t/playing-videos/162243>\
**Category:** Rails\
**Created:** [March 7, 2009, 12:52pm UTC](https://www.ruby-forum.com/t/playing-videos/162243 "2009-03-07T12:52:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![himdel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/c67d28/32.png) [@himdel](https://www.ruby-forum.com/u/himdel)\
**Post date:** [March 7, 2009, 12:52pm UTC](https://www.ruby-forum.com/t/playing-videos/162243/1 "2009-03-07T12:52:13Z")

</div>

I’m working on a project that involves the playing of .avi files from  
a huge source library. Meta data about the files is stored in a  
database and the files are stored elsewhere in a file structure that  
is easy to access.

I’m new to video playback and what I have tried so far is  
unsatisfactory. If I use send\_file, the file downloads, opens a new  
window and plays back. What the client is going to end up with is a  
new window for each video.  
I want to play the file back in the same window. I’m not really clear  
how to proceed with do this, so if anybody can point me at any  
resource (tutorial, book, whatever) that explains this I’d appreciate  
it.  
Thanks  
Martin
