Giter VIP home page Giter VIP logo

play-videos-in-hdfs's Introduction

Play-Videos-In-HDFS

This project realizes playing videos storing in HDFS(Hadoop) in the web page online.
这个工程实现了在网页中在线播放存储在HDFS(Hadoop)中的视频文件的功能。

Introduce 介绍

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.

在已有的一些方式中:
使用WebHDFS/streamFile方式必须将HDFS集群暴露在公网,其中WebHDFS无法快进。
使用HTTPFS GateWay方式无法快进。
本工程使用web服务器作为网关,无需将HDFS集群暴露在公网中,同时实现视频快进。

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?fpath=/test.mp4 in MyStream.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/MyStream.html in a browser.

1、将com.constants.Constans.java中的ip地址和端口号改为您Hadoop集群中主节点的IP地址以及端口号(默认为9000)。
2、将MyStream.html中video标签中的url:http://localhost:8080/HDFSVideoDemo/stream?fpath=/test.mp4 中的fpath参数改为您Hadoop集群中视频文件的路径。
3、将工程部署在web服务器并启动。
4、访问http://localhost:8080/HDFSVideoDemo/MyStream.html即可。

Notice 注意事项

1、This project use the new label

Screenshot 截图

截图

play-videos-in-hdfs's People

Contributors

yeleaveszi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.