LinHES Forums
http://forum.linhes.org/

R5C7, StreamTV in MythWeb doesn't work any more! [FIXED]
http://forum.linhes.org/viewtopic.php?f=17&t=10501
Page 1 of 1

Author:  zetoune [ Thu Jun 15, 2006 1:31 pm ]
Post subject:  R5C7, StreamTV in MythWeb doesn't work any more! [FIXED]

I've recently upgraded to R5C7 (from R5A30.2). Now, when I try to use StreamTV , I can select the show I want to stream but nothing happens after clicking on the button "Select a record and continue". Everything worked right out of the box with older versions of knoppmyth. I had nothing to install.

I'm using Firefox 1.5.

Any idea ?

I don't know if it can help but this is my config:
Sempron 2800+
1 GB RAM
R5C7
2*WinTV150 with IR receiver & blaster.
Maxtor 250 GB

Author:  zetoune [ Tue Jun 27, 2006 12:49 pm ]
Post subject: 

I found a fix. Actually it only works if I come from the main page of MythWeb.

But now , command buttons don't work. I can't make it go forward (or backward). The command is displayed on the page, but the streaming video still stays at the same position.

Author:  phlpittsny [ Mon Jul 03, 2006 1:39 pm ]
Post subject:  Making Controls Work

Controls don't work in R5C7 because of a couple of path errors in the scripts. To fix this, this is what I did:

1.
Code:
ln -s /myth/stream /usr/share/mythstreamtv

2. In the file
Code:
/var/www/mythweb/themes/default/streamtv/createfile.php

find the line
Code:
system("mythstreamtvctrl.sh $streamcommand");
(someplace near line 88, I think). Change this line to
Code:
system("/myth/stream/mythstreamtvctrl.sh $streamcommand");

ALSO ... if you wish you could skip forward or back by other than 30 sec or 1 min, try this. In the same file, include the code:
Code:
        <input type="submit" name="seek_value" value="-1min"/>
        <input type="submit" name="seek_value" value="+1min"/>
        <p>
        <input type="text" name="randomamount" value=""/>
        <input type="submit" name="seek_value" value="random_seek"/>
        <p>
        Enter the amount to seek as a relative or absolute amount.
        <br>
        Examples: &nbsp;&nbsp;-3min &nbsp;&nbsp;+00:45:00
        &nbsp;&nbsp;2:30:01
        <p>
        <p>
        <input type="submit" name="stopper" value="Stop Streaming" />

Actually, the first 2 lines of this, and the last 2, are already there. They are included in the above to provide a contextual reference point for finding where to add the new code. The result of this is the addition of a new text field in which you can add the amount you want to jump forward (with a leading '+') or backward (with a leading '-'). You can also simply type in a time in the movie you want to jump to (no leading '+' or '-').

To make this work, you also need to add a couple of lines of code elsewhere. These are
Code:
if ($seek_value == "+1min") {
        $seek_value = "%2B1min";}
if ($seek_value == "random_seek") {
        $seek_value = $randomamount; }
if ($seek_value != "") {
        $streamcommand = "\"control=seek&seek_value=$seek_value\"";


As with the above, the first and last two lines are already in the file and are for contextual reference.

Enjoy!

Author:  zetoune [ Tue Jul 04, 2006 1:19 pm ]
Post subject: 

yes, now it works perfectly.
I do love the "random seek" button.
I also added more video speed for LAN. Now it's very good.

Author:  ceenvee703 [ Wed Jul 05, 2006 2:06 pm ]
Post subject: 

I _just_ found this and it works perfectly... now I can get caught up on France v Portugal!

Author:  zetoune [ Wed Jul 05, 2006 3:32 pm ]
Post subject: 

ALLLEEEZZ LES BLEUS....

Author:  Martin1802 [ Sat Jul 08, 2006 3:04 am ]
Post subject:  THANKS

THX a lot for this little mod :-) I love it !!!

Martin

Author:  cesman [ Sat Jul 08, 2006 1:59 pm ]
Post subject: 

How about sending me a diff for inclusion in the next release?

Author:  esurfer [ Sun Jul 09, 2006 12:29 am ]
Post subject: 

I think you need to add the following lines as well to createfile.php

if (isset($_GET['randomamount'])) {
$randomamount=$_GET['randomamount']; }

place this above or below the following lines:

if (isset($_GET['seek_value'])) {
$seek_value=$_GET['seek_value']; }
if (isset($_GET['control'])) {
$control=$_GET['control']; }

Author:  modemboy [ Fri Nov 03, 2006 1:49 pm ]
Post subject: 

Just thought I'd point out that the path errors are still present in R5D1, just had to edit them to get the controls working.

Author:  director84 [ Thu May 31, 2007 9:11 am ]
Post subject:  Can't seek forward

The -30sec and -1min buttons work fine for me, but the +30sec and +1min buttons just cause the video to play from the beginning. I've tried using a seek_value of both "%2B30sec" and "+30sec" for the +30sec button, but neither solve the problem.

Any ideas? It seems like this is working fine for other people.

Thanks,
David

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/