Re: HTML video seek problem in django

2018-01-19 Thread Jason
After a bit more digging, there's a thread on the django-developers google 
group:

https://groups.google.com/forum/#!searchin/django-developers/http$20range$20header%7Csort:date/django-developers/NZ1qTkZ6vok/0T7YXSdrizgJ

Apparently that patch developer never followed up.  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cb589b60-fa35-4c4a-97a1-b855650e5e9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: HTML video seek problem in django

2018-01-19 Thread Jason
Nice find!  Wonder why that author never made a PR to the django project?  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3c482d75-69e9-40d9-b9df-ff990e6bebaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: HTML video seek problem in django

2018-01-18 Thread Manjunatha
Hi Jason,

Thanks for your suggestion. I found a solution for the Video seek problem 
in django.
Make some changes in *django/views/static.py. *
*follow this link* : 
https://github.com/satchamo/django/commit/2ce75c5c4bee2a858c0214d136bfcd351fcde11d#diff-272f1bbef1bc0bce0b959da83acb366d

Regards,
Manjunatha


On Thursday, 11 January 2018 18:43:16 UTC+5:30, Jason wrote:
>
> An alternative is to use the django extensions runserverplus 
>  which 
> uses the Werkzeug debugger.  As you can see in this post on 
> django-developers 
> ,
>  
> this is used as an alternative.
>
> Regardless, I think the primary issue is you're serving the content in an 
> inappropriate manner.  Django should be used for dynamic requests, and 
> static files should be handled by an Apache or Nginx webserver that serves 
> up the static files and passes the dynamic requests to Django via mod_wsgi 
> or Gunicorn.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/304d6edc-32ac-4669-8098-f29d30f182af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: HTML video seek problem in django

2018-01-11 Thread Jason
An alternative is to use the django extensions runserverplus 
 which 
uses the Werkzeug debugger.  As you can see in this post on 
django-developers 
,
 
this is used as an alternative.

Regardless, I think the primary issue is you're serving the content in an 
inappropriate manner.  Django should be used for dynamic requests, and 
static files should be handled by an Apache or Nginx webserver that serves 
up the static files and passes the dynamic requests to Django via mod_wsgi 
or Gunicorn.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/49d91b5d-0ce2-4b01-aa2a-230969372641%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: HTML video seek problem in django

2018-01-11 Thread Manjunatha
Hi Kasper Laudrup,

Thank you very much for your advice.

Regards,
Manjunatha


On Thursday, 11 January 2018 16:19:19 UTC+5:30, Kasper Laudrup wrote:
>
> Hi Manjunatha, 
>
> On 2018-01-11 12:33, Manjunatha wrote: 
> > I am using *django python* framework. Currently I am working on 
> > localhost 127.0.0.1:8000. There is no forum for django. Is there any 
> > suggestion from your side to solve this problem. 
> > 
>
> So the problem is only showing up during development? 
>
> I would personally think it's a minor issue then, as long as it works on 
> Chrome in production you can just use other browsers during development 
> (or simply ignore the issue). 
>
> Could very well be that the simple web server Django uses doesn't 
> support all the features of HTTP. I would suggest writing a very simple 
> test case showing the problem and then open an issue with the Django 
> maintainers to see if they want to do something about it or, even 
> better, write a patch to fix it yourself and see if it gets accepted. 
>
> I'm not a Django maintainer and don't know much about the internals of 
> Django so I'm afraid I cannot help you any further. 
>
> Kind regards, 
>
> Kasper Laudrup 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6d6564f2-9743-47c9-b573-85191ecf5569%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: HTML video seek problem in django

2018-01-11 Thread Kasper Laudrup

Hi Manjunatha,

On 2018-01-11 12:33, Manjunatha wrote:
I am using *django python* framework. Currently I am working on 
localhost 127.0.0.1:8000. There is no forum for django. Is there any 
suggestion from your side to solve this problem.




So the problem is only showing up during development?

I would personally think it's a minor issue then, as long as it works on 
Chrome in production you can just use other browsers during development 
(or simply ignore the issue).


Could very well be that the simple web server Django uses doesn't 
support all the features of HTTP. I would suggest writing a very simple 
test case showing the problem and then open an issue with the Django 
maintainers to see if they want to do something about it or, even 
better, write a patch to fix it yourself and see if it gets accepted.


I'm not a Django maintainer and don't know much about the internals of 
Django so I'm afraid I cannot help you any further.


Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ac994be1-b53e-694c-e3f3-e1573f512280%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


Re: HTML video seek problem in django

2018-01-11 Thread Manjunatha
Hi Kasper,

I am using *django python* framework. Currently I am working on localhost 
127.0.0.1:8000. There is no forum for django. Is there any suggestion from 
your side to solve this problem.

Thanks,
Manjunatha

On Thursday, 11 January 2018 15:52:15 UTC+5:30, Kasper Laudrup wrote:
>
> Hi Manjunatha, 
>
> On 2018-01-11 11:47, Manjunatha wrote: 
> > Hi Kasper, 
> > 
> > No. The server gives *200 OK *status code. But I can't see partial 
> > content server. Please help me to change status code 200 to 206. 
> > 
>
> You should look into the documentation for the web server you are using. 
>
> If the web server gives the wrong status code (200 instead of 206) you 
> should probably open an issue with the maintainers of the web server. 
>
> Kind regards, 
>
> Kasper Laudrup 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6dedd8a1-1fd7-4498-9c3c-6ebbd5e48adb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: HTML video seek problem in django

2018-01-11 Thread Kasper Laudrup

Hi Manjunatha,

On 2018-01-11 11:47, Manjunatha wrote:

Hi Kasper,

No. The server gives *200 OK *status code. But I can't see partial 
content server. Please help me to change status code 200 to 206.




You should look into the documentation for the web server you are using.

If the web server gives the wrong status code (200 instead of 206) you 
should probably open an issue with the maintainers of the web server.


Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/46451226-bf6e-7a28-0fc0-6280fb82bf76%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


Re: HTML video seek problem in django

2018-01-11 Thread Manjunatha
Hi Kasper,

No. The server gives *200 OK *status code. But I can't see partial content 
server. Please help me to change status code 200 to 206.

Thanks, 
Manjunatha 

On Thursday, 11 January 2018 15:02:16 UTC+5:30, Kasper Laudrup wrote:
>
> Hi Manjunatha, 
>
> On 2018-01-11 05:34, Manjunatha wrote: 
> > I have attached one image please go through that, actually in my case 
> > status code returns 200. Please help me out. 
> > 
>
> Does your server understand "partial content requests" as descriped in 
> the Stackoverflow post you posted a screenshot of? 
>
> Kind regards, 
>
> Kasper Laudrup 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/405918d3-32de-4173-bc03-82f3db8e16b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: HTML video seek problem in django

2018-01-11 Thread Kasper Laudrup

Hi Manjunatha,

On 2018-01-11 05:34, Manjunatha wrote:
I have attached one image please go through that, actually in my case 
status code returns 200. Please help me out.




Does your server understand "partial content requests" as descriped in 
the Stackoverflow post you posted a screenshot of?


Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fc40091f-0f91-0f39-91af-02f4ba1119bb%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


Re: HTML video seek problem in django

2018-01-10 Thread Manjunatha
Hi Julio  Biason*,*

I have not added any javascript, I downloaded the video from youtube and 
put it in inside Django folder. In the HTML  tag I gave the path of 
the link. The video is playing but not forward and backward feature. It's 
only in *Chrome* browser.

*Regards,*
*Manjunatha,*


On Wednesday, 10 January 2018 19:00:42 UTC+5:30, Julio Biason wrote:
>
> Hi Manjunatha,
>
> Django just serves the content, it doesn't handle how it will be played. 
> It could be a problem with your player, or some JS error -- in other words, 
> nothing to do with Django itself.
>
> On Wed, Jan 10, 2018 at 8:03 AM, Manjunatha L Naik  > wrote:
>
>> Hii,
>>
>>  
>>
>> When load video from Django app, the video seeking(forward and backward) 
>> is not possible with chrome browser. It works fine with IE and Mozilla 
>> Firefox.. Please help me out.
>>
>>  
>>
>> Thanks,
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/57db425c-e1fc-406d-85df-570a512751a4%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> *Julio Biason*, Sofware Engineer
> *AZION*  |  Deliver. Accelerate. Protect.
> Office: +55 51 3083 8101  |  Mobile: +55 51 *99907 0554*
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/495e0348-c5ee-4cfa-a0f6-4e7dfebcac09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: HTML video seek problem in django

2018-01-10 Thread Julio Biason
Hi Manjunatha,

Django just serves the content, it doesn't handle how it will be played. It
could be a problem with your player, or some JS error -- in other words,
nothing to do with Django itself.

On Wed, Jan 10, 2018 at 8:03 AM, Manjunatha L Naik 
wrote:

> Hii,
>
>
>
> When load video from Django app, the video seeking(forward and backward)
> is not possible with chrome browser. It works fine with IE and Mozilla
> Firefox.. Please help me out.
>
>
>
> Thanks,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/57db425c-e1fc-406d-85df-570a512751a4%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Julio Biason*, Sofware Engineer
*AZION*  |  Deliver. Accelerate. Protect.
Office: +55 51 3083 8101   |  Mobile: +55 51
*99907 0554*

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEM7gE3Zeh99%3D2GtweTEJr_xmOH50Vo3_BpPuR2EopZuKPwJFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


HTML video seek problem in django

2018-01-10 Thread Manjunatha L Naik


Hii,

 

When load video from Django app, the video seeking(forward and backward) is 
not possible with chrome browser. It works fine with IE and Mozilla 
Firefox.. Please help me out.

 

Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/57db425c-e1fc-406d-85df-570a512751a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.