Giter Site home page Giter Site logo

forkplayer's Introduction

##RemoteFork that can be run with PHP on Linux/router/NAS.

  • Configure webserver with examples below
  • Configure RemoteFork on TV to your router/NAS IP and port
  • Open RemoteFork Player DLNA or you can also, click on "Перейти по адресу" and enter your http://IP:port then add address to start page

Apache config example:

Listen 89

<VirtualHost *:89>
	Define FP_LOCAL_VIDEO_PATH /Path/to/Folder/with/videos
    Define FP_DOCUMENT_ROOT /Path/to/forkplayer/script
    
	DocumentRoot ${FP_DOCUMENT_ROOT}
	Alias "/localvideo" ${FP_LOCAL_VIDEO_PATH}
	
	ErrorLog /Path/to/error/log/forkplayer.error.log
	CustomLog /Path/to/access/logs/forkplayer.access.log combined
	
	<Directory ${FP_DOCUMENT_ROOT}>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
	</Directory>

	<Directory ${FP_LOCAL_VIDEO_PATH}>
		Options Indexes FollowSymLinks
		IndexOptions Charset=UTF-8
		AllowOverride None
		Require all granted
	</Directory>

</VirtualHost>

FP_LOCAL_VIDEO_PATH - Path to folder with videos

FP_DOCUMENT_ROOT - Path to ForkPlayer script

Change FP_LOCAL_VIDEO_PATH, FP_DOCUMENT_ROOT, Path to logs - accordintg to your router config.

nginx config example:

server {
	listen 89;
	charset utf-8;

	root /Path/to/forkplayer/script;
	index index.php;
	server_name localhost;

	add_header Access-Control-Allow-Origin *;

	location /localvideo {
		alias /Path/to/Folder/with/videos;
		autoindex on;
	}
	location / {
		rewrite ^/$ /index.php;
	}
	location /test {
		rewrite ^/test/?$ /test.php;
	}
	location /parserlink {
		rewrite ^/parserlink/?$ /parserlink.php;
	}
    location /proxym3u8 {
        rewrite ^/proxym3u8.*$ /proxym3u8.php;
    }
	location /treeview {
		rewrite ^/treeview/?$ /index.php;
	}
	location /plugin {
		rewrite ^/plugin/([^/]+)/?$ /index.php?plugin=$1;
	}
	location ~ .php$ {
		fastcgi_pass   127.0.0.1:9123;
		fastcgi_index  index.php;
		fastcgi_param FP_LOCAL_VIDEO_PATH /Path/to/Folder/with/videos;
		include fastcgi.conf;
		include fastcgi_params;			
	}
}	

output format:

to set default output format to json

for apache just add in .htaccess file followng code

<IfModule env_module>
    SetEnv OUTPUT_FORMAT json
</IfModule>

for nginx add

fastcgi_param OUTPUT_FORMAT json

forkplayer's People

Contributors

bobi avatar peter23 avatar ruslanonyshchenko 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.