GithubHelp home page GithubHelp 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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

forkplayer's Issues

Пропали иконки папок/фильмов

В папке с моими фильмами раньше слева от названия были иконки и можно было легко отличить где папка а где фильм. Сейчас везде пустые квадраты слева от названий. Подскажите как починить...

error ForkPlayer

После сегодняшнего обновления форкплеера , начал писать ошибку что установите версию выше 1.2,
пробовал изменения с репозитория последние брать , но не помогло , error log чистый, телевизор LG

acestream

Было бы очень шикарно, реализовать поддержку в remotefork_php acestream engine на linux-подобных системах.

499

настраиваю на raspberry pi (Linux pi 4.14.56+)
php5.6
nginx 1.6.2

in nginx logs I see

192.168.88.250 - - [25/Jul/2018:20:16:55 +0000] "GET /parserlink?curl%20-i%20%22https%3A%2F%2Ffex.net%2Fget%2F841569794365%2F327826100%22%20-H
%20%22DNT%3A%201%22%20-H%20%22Accept-Encoding%3A%20identity%3Bq%3D1%2C%20*%3Bq%3D0%22%20-H%20%22Accept-Language%3A%20ru-RU%2Cru%3Bq%3D0.9%2Cen
-US%3Bq%3D0.8%2Cen%3Bq%3D0.7%2Cuk%3Bq%3D0.6%22%20-H%20%22User-Agent%3A%20Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64)%20AppleWebK
it%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F62.0.3202.94%20Safari%2F537.36%22%20-H%20%22Accept%3A%20*%2F*%22%20-H%20%22Referer%3A%20htt
ps%3A%2F%2Ffex.net%2F%22%20-H%20%22Connection%3A%20keep-alive%22%20-H%20%22Range%3A%20bytes%3D0-%22 HTTP/1.1" 499 0 "-" "Mozilla/5.0 (SmartHub
; SMART-TV; U; Linux/SmartTV+2014; Maple2012) AppleWebKit/537.42+ (KHTML, like Gecko) SmartTV Safari/537.42+"

and I add to parserlink.php

function curl_request($options)
{
...
    curl_setopt($ch, CURLOPT_VERBOSE, true);
    $verbose = fopen('/tmp/curl.txt', 'w+');
    curl_setopt($ch, CURLOPT_STDERR, $verbose);

and see

* Ignoring the response-body
* Connection #0 to host fex.net left intact
* Issue another request to this URL: 'http://fs14.fex.net/get/841569794365/327826100/49ce4ee3/Downsizing.2017.P.HDTVRip.avi'
* Hostname was NOT found in DNS cache
*   Trying 194.106.216.72...
* Connected to fs14.fex.net (194.106.216.72) port 80 (#1)
> GET /get/841569794365/327826100/49ce4ee3/Downsizing.2017.P.HDTVRip.avi HTTP/1.1
Host: fs14.fex.net
Accept-Encoding: deflate, gzip
DNT: 1
Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7,uk;q=0.6
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
Accept: */*
Referer: https://fex.net/
Connection: keep-alive
Range: bytes=0-

< HTTP/1.1 206 Partial Content
* Server nginx/1.13.5 is not blacklisted
< Server: nginx/1.13.5
< Date: Wed, 25 Jul 2018 20:16:26 GMT
< Content-Length: 1467678720
< Connection: keep-alive
< Last-Modified: Sun, 04 Mar 2018 08:47:44 GMT
< ETag: "5a9bb2b0-577b0000"
< Content-Type: video/x-msvideo
< X-Upload-ID: 327826100
< Content-Range: bytes 0-1467678719/1467678720
<

но в nginx код 499 - что єто значит? куда еще поставить дебаг?

Настройка php.

Здравствуйте. Не могли бы вы, пожалуйста, добавить в Readme настройку php и всё что с ним связано?

Docker container

Не думали ли вы выпустить Docker контейнер??
Это был бы лучший вариант для развертывания этого проекта на NAS. чтоб не компилить под каждого вендора.

Exclude files\dirs

Please advise how to exclude some files and\or directories from listing?
For example, Synology DSM generates "@eadir" directory which I don't want to see in list.
Thank you.

Сортировка

Подскажите, есть ли возможность сделать кнопку "sort by ->[date || name || ...]" в стандартном контекстном меню для файлов которые отдает remotefork?
Или подскажите, пожалуйста, что изменить в коде чтобы плейлист генерироваться по умолчанию сортированый по дате. Большое спасибо.

Плагины

Вопрос разработчику планируется ли реализации плагинов, хотябы того-же seasonvar?

Не все файлы проигрывает

Не все файлы проигрывает плеер. Не могу понять почему такое происходит.
Файл виден, он запускается, но после некоторого времени выдает попытка соединения 2 ... 3 и т.д.
В логах апача запросы отображаются примерно одинаково как к работающему файлу так и к не работающему.

Работающий:
"GET /localvideo/Downloads/Beyond.Skyline.2017.BDRip.1080p%20%5BNG%5D%20iTunes.mkv HTTP/1.1" 206 4676523548 "-" "Lavf52.34.0"

Не работающий:
"GET /localvideo/Downloads/Geostorm.2017.BDRip.%281080p%29.mkv HTTP/1.1" 206 8528182572 "-" "Lavf52.34.0"

Не подскажите куда копать и что можно сделать?

nginx support

Под nginx не пробовали запускать? Пока что колупаюсь, но безрезультатно)

tree.tv не работает

Перестал работать tree.tv.
При выборе любого файла пишет needremotefork.
С remotefork для других платформ все работает.

404

Не работает переадресация:
Если заходить с браузера на /test
192.168.100.4 - - [21/Nov/2018:13:21:00 +0300] "GET /test?c3490d2350fa85f3|c3490d2350fa85f3|MX%20MAX%20sdk%2022 HTTP/1.1" 404 499 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"

В ForkPlayer также 404

/test.php работает

Serializer.php

Fatal error: Call to undefined function ForkPlayer\Utils\json_encode() in /opt/share/nginx/html/ForkPlayer/Utils/Serializer.php on line 165

Remotefork PHP не поддерживает DLNA

по урлу /treeview получаю

<?xml version="1.0" encoding="UTF-8"?>
<items><channel><title><![CDATA[RemoteFork PHP]]></title><description><![CDATA[RemoteFork PHP не поддерживает DLNA]]></description></channel></items>

Хотя по урлу /localvideo вываливает список файлов.
ЧЯДНТ?

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.