Update of /cvsroot/freevo/freevo/WIP/Ruelle
In directory sc8-pr-cvs1:/tmp/cvs-serv11820
Added Files:
mplayer.rpy
Log Message:
a mplayer plugin page to view videos.
--- NEW FILE: mplayer.rpy ---
#!/usr/bin/python
#if 0 /*
# -----------------------------------------------------------------------
# mplayer.rpy - test mplayer plugin
# -----------------------------------------------------------------------
# $Id: mplayer.rpy,v 1.1 2003/09/01 02:20:57 mikeruelle Exp $
#
# Notes:
# Todo:
#
# -----------------------------------------------------------------------
# $Log: mplayer.rpy,v $
# Revision 1.1 2003/09/01 02:20:57 mikeruelle
# a mplayer plugin page to view videos.
#
#
# -----------------------------------------------------------------------
# Freevo - A Home Theater PC framework
# Copyright (C) 2002 Krister Lagerstrom, et al.
# Please see the file freevo/Docs/CREDITS for a complete list of authors.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MER-
# CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# ----------------------------------------------------------------------- */
#endif
import os, string
from web_types import HTMLResource, FreevoResource
import config
TRUE = 1
FALSE = 0
class MplayerResource(FreevoResource):
isLeaf=1
def _render(self, request):
fv = HTMLResource()
form = request.args
file_loc = fv.formValue(form, 'file')
myurl = ''
if file_loc > 0:
username = config.WWW_USERS.keys()[0]
password = config.WWW_USERS[username]
_, host, port = request.getHost()
myurl = 'http://%s:[EMAIL PROTECTED]:%s/library.rpy%s' % (username,
password, host, port, file_loc)
fv.printHeader('mplayer embed test', 'styles/main.css')
if file_loc:
fv.res += '<EMBED CONTROLLER="TRUE" TARGET="myself" SRC="%s"
BGCOLOR="#000000" BORDER="0"></EMBED>' % myurl
else:
fv.res += '<a
href="/mplayer.rpy?file=/usr/local/freevo_data/RecordedTV/Extreme_Engineering--2003-08-03-2300.avi">TEST
ME</a>'
fv.printLinks()
fv.printFooter()
return fv.res
resource = MplayerResource()
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog