![](https://secure.gravatar.com/avatar/da73099018b1cbd392faa658bc9e4c73?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
Play Local videos if certain user only
Hi,
I have a dvd store site that plays movie trailers from youtube embeds. For most of the posts I also have the trailer downloaded and saved locally as a .flv, called by a custom field
I am setting up a bunch of raspberry pi's around the store which people can use to quickly access my website to watch trailers - however as our internet connection can be slowish at times I want to serve local video files if they exist.
I am almost achieving this by doing a check to see who the user is (if dvd store) then use something like jwplayer to play the local file. Trouble with this is I have to have something like LAMP or Apache etc running which can be quite a resource hog on a small machine..
So any better way to embed local video files in the post based on the the user/machine if the post has a value in the local_video custom field, else revert to youtube??