summaryrefslogtreecommitdiff
path: root/p2pvr/webfe
diff options
context:
space:
mode:
Diffstat (limited to 'p2pvr/webfe')
-rw-r--r--p2pvr/webfe/.htaccess12
-rw-r--r--p2pvr/webfe/.p2config1
l---------p2pvr/webfe/p2fcgi1
-rw-r--r--p2pvr/webfe/present/stream/recording.xml8
-rw-r--r--p2pvr/webfe/present/stream/service.xml8
5 files changed, 30 insertions, 0 deletions
diff --git a/p2pvr/webfe/.htaccess b/p2pvr/webfe/.htaccess
new file mode 100644
index 0000000..1588083
--- /dev/null
+++ b/p2pvr/webfe/.htaccess
@@ -0,0 +1,12 @@
+<Files "p2fcgi">
+ sethandler fcgid-script
+</Files>
+
+RewriteEngine on
+RewriteCond %{REQUEST_URI} !^/css/
+RewriteCond %{REQUEST_URI} !^/js/
+RewriteCond %{REQUEST_URI} !^/img/
+RewriteCond %{REQUEST_URI} !^/[^/]+\.[^/]+$
+RewriteCond %{REQUEST_URI} !^/p2fcgi
+RewriteRule ^(.*) /p2fcgi/\1 [L]
+
diff --git a/p2pvr/webfe/.p2config b/p2pvr/webfe/.p2config
index f5ea06f..db4692d 100644
--- a/p2pvr/webfe/.p2config
+++ b/p2pvr/webfe/.p2config
@@ -1,5 +1,6 @@
ice.client.sliceclient = ice/common.ice
library = libp2pvrice.so
+library = libp2pvrp2comp.so
ice.client.sliceclient = ice/dvbsi.ice
ice.client.sliceclient = ice/dvb.ice
ice.client.sliceclient = ice/p2pvr.ice
diff --git a/p2pvr/webfe/p2fcgi b/p2pvr/webfe/p2fcgi
new file mode 120000
index 0000000..b0e5628
--- /dev/null
+++ b/p2pvr/webfe/p2fcgi
@@ -0,0 +1 @@
+/usr/bin/p2fcgi \ No newline at end of file
diff --git a/p2pvr/webfe/present/stream/recording.xml b/p2pvr/webfe/present/stream/recording.xml
new file mode 100644
index 0000000..fc7a1b0
--- /dev/null
+++ b/p2pvr/webfe/present/stream/recording.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<view xmlns:project2="http://project2.randomdan.homeip.net">
+ <project2:stream contenttype="video/mpeg">
+ <project2:p2pvrrecordingstream datasource="p2pvr">
+ <recording source="uri" index="2" />
+ </project2:p2pvrrecordingstream>
+ </project2:stream>
+</view>
diff --git a/p2pvr/webfe/present/stream/service.xml b/p2pvr/webfe/present/stream/service.xml
new file mode 100644
index 0000000..8587636
--- /dev/null
+++ b/p2pvr/webfe/present/stream/service.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<view xmlns:project2="http://project2.randomdan.homeip.net">
+ <project2:stream contenttype="video/mpeg">
+ <project2:p2pvrservicestream datasource="p2pvr">
+ <serviceId source="uri" index="2" />
+ </project2:p2pvrservicestream>
+ </project2:stream>
+</view>