[mythtv-users] Updating mythweb broke my php
Trey Thompson
treythompson at gmail.com
Mon Nov 27 18:09:48 UTC 2006
> I have this code in the default recorded.php file so that if there's a
> corresponding flash video (.flv) file, it will create links to a
> streamer.
>
> After updating mythweb, which has several fixes in it, and I put the
> code back in where it goes, I just get "error on page" for the
> javascript...
>
> Any thoughts?
>
> =============
> <?php
>
> if(file_exists('/var/video/recordings/' . basename($show->filename) . '.flv')){
> echo '<p align="center"><b>Stream Flash: ';
> echo '<a
> href="javascript:launch(\'../data/streamer.php?width=300&height=200&file=/video/recordings/'
> . basename($show->filename) . '.flv&title=' . $show->title .
> '\',\'_blank\',325,225);">S </a>';
> echo '<a
> href="javascript:launch(\'../data/streamer.php?width=600&height=400&file=/video/recordings/'
> . basename($show->filename) . '.flv&title=' . $show->title .
> '\',\'_blank\',625,425);">M </a>';
> echo '<a
> href="javascript:launch(\'../data/streamer.php?width=900&height=600&file=/video/recordings/'
> . basename($show->filename) . '.flv&title=' . $show->title .
> '\',\'_blank\',925,625);">L </a>';
> echo "</b></p>";
> } else {
> echo '<p align="center"><b>Streaming not available</b></p>';
> }
> ?>
> =============
Stupid error on my part, I forgot to add back in the launch function.
More information about the mythtv-users
mailing list