vsjakhar / django-webrtc Goto Github PK
View Code? Open in Web Editor NEWVideo and Audio Calling with WebRtc in Django
License: GNU General Public License v3.0
Video and Audio Calling with WebRtc in Django
License: GNU General Public License v3.0
How to call another party
def clean(self, *args, **kwargs):
print(self.users.count())
if self.users.count() < 2:
raise ValidationError("You can't assign less than two Users")
super(Room, self).clean(*args, **kwargs)
def __str__(self):
users = ""
for usr in self.users.all():
users = users+usr.username+", "
return str(users)
//error :Instance of 'ManyToManyField' has no 'count' member
//Instance of 'ManyToManyField' has no 'all' member
//below custper.py
@database_sync_to_async
def save_chat(self, message):
if 'AnonymousUser' != str(self.scope["user"]):
room = Room.objects.last()
msg = ChatMessage.objects.create(room=room, user=self.scope["user"], message=message)
return True
//error :Class 'Room' has no 'objects' member
//Class 'ChatMessage' has no 'objects' member
//Unused variable 'msg'
Thank you
Hi,
I will read frame from a web camera, and then do some image processing. I then send the processed image to browser in real time.
Here are the steps I take:
step 1: read frame(image) from camera step 2: process the image step 3: send the processed image to browser step 4: repeat step 1
my questions are:
I could send each image as xxx.jpg to browser. but image is not encoded, the size of the image might be much big. is this the best solution?
If I use FFMPEG or webrtc to encode the image but not continuous images(all images are separate image but not video stream), how to do this? is the encoding effective?
do you have good solution for my case? Do you have the example code based on your code to solve my case?
I tried to read the source code, I found that this is a chat app using djang-channles.. Where is the web-RTC code?
Video stream shows only current user. How can it shown to another remote user
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.