HTML video seek problem in django

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

HTML video seek problem in django

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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTML video seek problem in django

Julio Biason-3
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 <[hidden email]> 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 [hidden email].
To post to this group, send email to [hidden email].
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: <a href="callto:+555130838101" value="+555130838101" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:12.8px" target="_blank">+55 51 3083 8101  |  Mobile: <a href="callto:+5551996209291" style="color:rgb(17,85,204)" target="_blank">+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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTML video seek problem in django

Manjunatha L Naik
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 <video> 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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ifQw1hpSAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mlnai...@...> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ifQw1hpSAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">django-users...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ifQw1hpSAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">django...@....
Visit this group at <a href="https://groups.google.com/group/django-users" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/django-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/django-users&#39;;return true;">https://groups.google.com/group/django-users.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/django-users/57db425c-e1fc-406d-85df-570a512751a4%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/django-users/57db425c-e1fc-406d-85df-570a512751a4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/django-users/57db425c-e1fc-406d-85df-570a512751a4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/django-users/57db425c-e1fc-406d-85df-570a512751a4%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTML video seek problem in django

Manjunatha L Naik
Hi Julio Biason,

I have attached one image please go through that, actually in my case status code returns 200. Please help me out.

Thanks,
Manjunatha


On Thursday, 11 January 2018 08:27:35 UTC+5:30, Manjunatha wrote:
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 <video> 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 <[hidden email]> 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 [hidden email].
Visit this group at <a href="https://groups.google.com/group/django-users" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/group/django-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/django-users&#39;;return true;">https://groups.google.com/group/django-users.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/django-users/57db425c-e1fc-406d-85df-570a512751a4%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/django-users/57db425c-e1fc-406d-85df-570a512751a4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/django-users/57db425c-e1fc-406d-85df-570a512751a4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/django-users/57db425c-e1fc-406d-85df-570a512751a4%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
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/9a7a6077-83f4-43c9-9a6c-3c4146e12ce0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

video_problem.JPG (174K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: HTML video seek problem in django

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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTML video seek problem in django

Manjunatha L Naik
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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTML video seek problem in django

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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTML video seek problem in django

Manjunatha L Naik
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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTML video seek problem in django

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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTML video seek problem in django

Manjunatha L Naik
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 <a href="http://127.0.0.1:8000" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A8000\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGUWabkZokbohWsJ2ubyjR4rXmEMQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A8000\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGUWabkZokbohWsJ2ubyjR4rXmEMQ&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTML video seek problem in django

Jason-6
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 [hidden email].
To post to this group, send email to [hidden email].
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.