Giter Club home page Giter Club logo

django-webrtc's Issues

Errors in customer.py and chat/model.py .....

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

send continuous image(not video stream) read from camera

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:

  1. 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?

  2. 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?

  3. do you have good solution for my case? Do you have the example code based on your code to solve my case?

What is this project ?

I tried to read the source code, I found that this is a chat app using djang-channles.. Where is the web-RTC code?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.