Monday, June 25, 2018

RE: How to handle Video/Audio streaming using Django Channels?

@Andrew – Thanks. I got the cue from your earlier remark on native WebRTC support in Channels and was checking with your current views on this. I have used Channels2 for audio-chat which works perfect locally but gets all messed up when hosted on Heroku. Taking this opportunity, kudos to you for a great Channels2 module. Thanks.

 

Regards/Tirthankar.

+91 98452 22977

_________________________

 

From: django-users@googlegroups.com <django-users@googlegroups.com> On Behalf Of Andrew Godwin
Sent: 25 June 2018 23:28
To: django-users@googlegroups.com
Subject: Re: How to handle Video/Audio streaming using Django Channels?

 

I mean, Channels isn't going to be some magical solution for that. A/V streaming still requires someone to sit down and write protocol code and a lot of real-time processing, and ultimately that's a lot more work than a WebSocket library.

 

Andrew

 

On Mon, Jun 25, 2018 at 10:49 AM <tirthankar.banerjee@sky-bits.com> wrote:

Hi Andrew - With Channels 2, can we have real-time audio/video streaming? 

Thanks/Tirthankar.

On Saturday, November 5, 2016 at 4:16:21 AM UTC+5:30, Andrew Godwin wrote:

Hi Sandro,

 

Real-time video streaming is pretty intensive, and WebRTC already has some part of this covered, though from what I recall it's in a peer-to-peer fashion. You certainly could marshal it into binary websocket frames, but WebSocket is a non-ideal protocol for video delivery due to the way it's designed.

 

Really, to do something like this properly would require native WebRTC support in Channels, and we don't have that (yet). I'd suggest looking into other software solutions to relay video streams instead.

 

Andrew

 

On Fri, Nov 4, 2016 at 6:09 PM, Sandro Salles <san...@snippet.com.br> wrote:

Hey Andrew,

 

In fact i'm trying to implement a real-time video chat application, using react native on a mobile app (iOS). 

 

The app will capture the users video using a module called react-native-webrtc, and send the live stream via websocket to a Django application (using Django Channels) that will then stream that video in real time to all clients that are connect to this video channel.

 

The problem is that i don't know how to handle the incoming video/audio stream. All the examples i found for Django Channels are for text based chats and things like that... but nothing about the ability to handle media streams...

 

I know i could use NodeJS on the server-side, socket.io and some others node modules, but i would really like to use Django to accomplish that.

 

Do you think this is even possibile?

 

Thanks again!


Sandro Salles

telefone. (11) 99203-9014 (cel/whatsapp)

 

On Fri, Nov 4, 2016 at 2:49 PM, Andrew Godwin <and...@aeracode.org> wrote:

Hi Sandro,

 

Could you highlight what the problems you're facing are? Channels is not particularly designed for streaming large files - you're better doing that using a CDN or dedicated file streaming software - so I'd be curious to know what the particular issues you're facing are.

 

Andrew

 

On Fri, Nov 4, 2016 at 5:31 PM, Sandro Salles <san...@snippet.com.br> wrote:

Hello Guys,

 

I can't find any documentation on how to handle video/audio streaming using Django Channels.

 

I've found an incomplete tutorial here:
https://artandlogic.com/2016/06/django-channels-ground-part-1/
https://artandlogic.com/2016/06/django-channels-ground-part-2/

 

But as i said, it's incomplete...

 

Can someone give-me a hand here? I really have absolutely no idea on how to implement this, although i think it's possible.

 

Thanks in advance!

 

--
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/44eb8328-836c-4e52-843f-5e7ba5533b46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

--
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/CAFwN1uozrjLW2eNFoRAZLzkhu_RLkWBfnVUmvhq9GcB69893HQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

 

--
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/CADJ0nrOOszYvvT40aZhYptMVqjrdd0yY-2T0ra-oNC%3DfuQwKgw%40mail.gmail.com.


For more options, visit https://groups.google.com/d/optout.

 

--
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+unsubscribe@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/7ea08ced-8b5a-428e-927b-aab86d63912a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@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/CAFwN1uok6WrxHh9BAz%2BjdD6yoUiA%3DgLGuR9VvWsACzFa3W248w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment