Re: delivering streaming videos

2010-12-26 Thread 93-interactive
On Dec 26, 5:17 pm, "Cal Leeming [Simplicity Media Ltd]" wrote: > Dude, you have got to be kidding me?! I was telling you right at the start > to use the webserver to rely on streaming out the video, and you said no :S > > Fail. no dude, you told me to use nginx for my task which doesn't work a

Re: delivering streaming videos

2010-12-25 Thread 93-interactive
On Dec 26, 12:20 am, Christophe Pettus wrote: > On Dec 25, 2010, at 12:16 AM, 93-interactive wrote: > I'd strongly encourage you to look at mod_xsendfile (if you are using > Apache), or the equivalent functionality in lighttpd.  You can maintain full > control over who gets t

Re: delivering streaming videos

2010-12-25 Thread 93-interactive
On Dec 25, 1:23 am, "Cal Leeming [Simplicity Media Ltd]" wrote: > This really is *not* a good way of doing things. why? > Unless you have a specific need to be streaming out via Python (for example, > on the fly stream modification, in which case I'd argue those bits of code > should be written

Re: delivering streaming videos

2010-12-24 Thread 93-interactive
ok, i am a step closer, i now implemented range requests: def sendFileRange(req, contenttype, fname, delivername): try: fsize=os.path.getsize(fname) except: raise Http404 pos1=0 pos2=fsize-1 if req.META.has_key('HTTP_RANGE'):

delivering streaming videos

2010-12-24 Thread 93-interactive
Hi, i have currently started a new django project where i have to deliver html5 videos to a webbrowser but the videos are not allowed to remain in the web folder. so here is what i have: def download(req, video_id, video_type): ctype=''; if (video_type=='ogv'): ct