[mythtv] Feature Request - MythWeb - Restore previous Video_URL funtionality
Mark Goldberg
marklgoldberg at gmail.com
Mon Mar 17 00:45:27 UTC 2008
I'd like to request that the previous functionality that allowed files
to be played by remote machines from samba shares be restored
so they may be played as described in the wiki page:
http://www.mythtv.org/wiki/index.php/Play_Recordings_On_Windows_From_MythWeb
Playing from a samba share seems to be much more efficient than using
.asx streaming or a direct download (which requires space on the
playing machine)
and allows seeking on the player. Using .asx streaming can't play a
single HD recording without stuttering. Using samba can play several
simultaneously over a gigabit
ethernet connection. I don't know if it is the backend or the playing
machine slowing things down.
I've done a quick change to
mythweb/modules/tv/tmpl/default/recorded.php as follows, but the
video_url should come from the database as in 0.20.
I only changed the link for the preview. You can still get to the
details from the program title and subtitle.
--- recorded.php.save 2008-03-16 12:56:37.000000000 -0700
+++ recorded.php 2008-03-16 16:55:31.000000000 -0700
@@ -25,6 +25,10 @@
// Global variables used here
global $All_Shows, $Total_Programs, $Total_Time, $Total_Used,
$Groups, $Program_Titles;
+// Hard coded, but really should come from database
+
+ $video_url = "myth:\\\\\\\\mybackend/video/";
+
// Show the recgroup?
if (count($Groups) > 1)
$recgroup_cols = 1;
@@ -307,7 +311,7 @@
?>
<td rowspan="2" class="x-pixmap<?php
if ($_SESSION['recorded_pixmaps']) { ?>">
- <a class="x-pixmap" href="<?php echo root ?>tv/detail/<?php
echo $show->chanid, '/', $show->recstartts ?>" title="<?php echo
t('Recording Details') ?>"
+ <a class="x-pixmap" href="<?php echo
preg_replace('/myth.*\//', $video_url, $show->filename) ?>"
title="<?php echo t('Play') ?>"
><img src="<?php echo $show->thumb_url(100,0) ?>"></a>
<?php }
else {
I don't know enough to add the variable back into the database and get
it from there, and not much of a php coder, but this works for me.
"mybackend/video" will change depending on the location of the samba
share with the recordings.
Mark
More information about the mythtv-dev
mailing list