/Interactive-Movies-CS237

Primary LanguageJavaApache License 2.0Apache-2.0

Interactive Movie

An interactive film, also known as an interactive movie or movie game, is a video game that presents its gameplay in a cinematic, scripted manner, often through the use of full-motion video of either animated or live-action footage. In modern times,[when?] the term also refers to games that have a larger emphasis on story/presentation than on gameplay.

Introducction

This project is for UCI CS237 Middleware and Distributed System, which implements an interactive movie framework based on hadoop and hdfs. We use layered-cache to accelerate the the speed to handle movie clips.
In some existing methods:
WebHDFS/streamFile require that HDFS Clusters be exposed in public network and WebHDFS can't fast forward.
HTTPFS Gateway can't fast forward too.
This Project use web server as a gateway.HDFS Clusters don't need to be exposed in public network and it supports fast forward.

The default folder of Video

/video

Usage

1、Modify the ip address and port in com.constants.Constants.java into the namenode's IP and port.
2、Modify the fpath parameter in http://localhost:8080/HDFSVideoDemo/stream?id=trailer in movie.html into the HDFS path of the video file you want to play.
3、Deploy the web project in a web server and start it.
4、Visit http://localhost:8080/HDFSVideoDemo/movie.html in a browser.

Notice

1、This project use the new label

Demo

demo1

demo2