Flutter webrtc for simulcast - flutter

I am trying to create an application like Unacademey.It is a learning-platform for the preparation of really tough exams which are conducted in India. like IIT or NEET.So I need to create a UI where the teacher will broadcast himself and Students can see the lecture. also if the student has any confusion then he can ask on the same screen.
So basically, as far as I researched I want to share my screen, so that teacher can show the questions. and also he is able to draw the solution and explanation. And also share his video and audio. and also on the same screen, a Q&A will be there for any type of communication. 
I have created an end to end peer connection.
One user can transmit audio and video to another user.
But this is not my requirement. I want to broadcast my live screen and also record them.
and I didn't find any solution over the internet. and also, the Full document is also not provided in the pub.dev.
Please help me if you can.
I also looked at the concept of WebSockets.
But I am still stuck.
If I ask my question in one line then."HOW CAN I GO ONLINE WITH WEBRTC"
Please reply. I am eagerly waiting for your reply.
Thank you.

Related

Connecting a device to an account

So the title sounds stupid. I'm not really sure how to really word it, but I want someone to help guide me on what to look for. Little back story first so I'm working on a Raspberry Pi project that involves using an LTE service currently I have a dashboard running on a AWS EC2 web server with a simple user working user login.
I have a raspberry pi that is directly pointed to the dashboard/account via an IP address. I want to know how to do something like giving a device an ID and having it connect to an account. So for example with Nest products you have the QR code on the camera you take a photo and that devices get applied to your account.
Is this even possible with Raspberry Pi(I'm sure anything possible, but is it feasible? If so what should I look into or learn how to do such thing. I know its not something that can be answered in a short paragraph just looking for some guidance.
Right, thanks. Well, I think you need to program this into the pi server app. So currently your Pi is reading a sensor and sending this data to the web server, right? I suppose you have a daemon running, taking readings, and doing an API REST call to the server backend, correct? So what you want is to have a unique code for each pi, sent with the API call, and then on your DB server side,you store all readings related to their unique code.
You don't need to pre-validate this code, there are GUID generators that will create a number for you, guaranteed to be unique for all eternity, so on the PI, you set it up once, to create the PI's code, and use it from then on. Now, server side, then associating a device with a user is a matter of choosing the data associated with a given gui. And I think that covers it.
You can improve on this basic idea by giving it more thought, but I think it's a good starting point! Do let me know if I can help you with anything else!

Develop a decision based game on Amazon alexa

I had an idea tonight. Its about developing a game on Alexa where she is telling you a Story and you are the Player who is able to direct the Story in any way he wants to with the decisions he can make.
So an example would be:
[Some Story] .. where do you want to Go:
Pub for 50$
Hotel for 100$
Stay outside for freue
And the User can now decide where He wants to stay and then the Story continous and for example if you stay Out you get robbed and if you Go to the Pub you wake up with headache the next day.
So my question is how am I able to realise this in a smart way so the decisions can affect the Story Line.
My First thought was to Store the complete Story in a 2d String Array to Jump around different Stories but if this becomes a bigger there must be another way.
And I need to be able to Store the Point where I Stopped. Yet I have no idea of how to die this.
You can store the story and the user's progress in a database, either by writing an Alexa skill which sends requests to an Amazon Lambda function you would write or a custom web service you would write. Check out this documentation for how to get started writing Alexa skills.

Facebook Insights - Event Data Missing

I'm having a problem with the events I'm sending to Facebook Insights. I've got about 15 custom events I'm sending, and they all carry a data object that is pretty consistent between all the events. 10 of the events show up with the data object working fine (see graphic User Logged In/Out events), and for the rest, I'm getting "No data is available for the current selection." (see graphic Story Played/Selected events).
I believe with one event I shortened the Event Type, and the data started displaying properly. I tried this with other events, and that didn't fix the problem. Has anyone had this sort of problem before, and could you please comment about your solution?
I'm using Adobe AIR for mobile, running on Android, using the Milkman Games GoViral ANE. Another important factor here is that I'm sending these exact same events to a different analytics service - Mixpanel. All the events look correct on Mixpanel, so I'm pretty sure I'm sending them out properly. My assumption at the moment is that Facebook doesn't like something specific about some of my events.
I'm interested in any comments about this general kind of issue, regardless of platform or implementation, to see if I can figure out what's going wrong. I know my app setup is not so common, so for the sake of this question I'd like to ignore that for the time being.
Thanks in advance for any help you might provide.
I answered my own question. It turns out Facebook Insights events have a limit of 10 properties per event. Once I reduced the data being sent, the other events started tracking properly.

Track online users in real time in order to play a two-player quiz

I am willing to create a two-player quiz game, in real time. For this I need to track when users are on my quiz's page and when they leave it. Basically, I need some kind of lobby, where players gather and from where my script picks two random players who should face each other in the game.
As many players would switch from online to offline in a very short time, I prefer not to use the classic 'update player status to database and then retrieve at a given interval the list of online players'. Currently, I am toying with the idea of using Comet Push, and have studied a little bit PubNub.
The actual quiz game I believe it is pretty easy to solve: use of classic Comet publish() to send answers and subscribe() to check the other user's status. But the thing that bothers me is how do I get that specific list with online users?
I tried to publish() a user_id when a user goes to the lobby, but how do I notify all the other users when this user goes offline? How do I display in the lobby the total number of connected users together with their names?
It's the first time I face Comet and its logic isn't entirely clear to me.
Thank you for your help!
You might want to try out Pusher and our (I work for Pusher) presence functionality. The presence channels let you easily implement room/lobby-style functionality and should meet your criteria.
You get an initial list of users subscribed to the channel when you subscribed
You are informed whenever a user subscribes (enters) and unsubscribes (leaves) the channel (room/lobby)
This way you don't need to implement this functionality yourself. It's part of the solution Pusher provides.

how can i update my avtar in xmpp using iphone SDK?

how can i update my avtar - login user avtar (photo) in xmpp using iphone SDK (XMPPStream) ?
i have XMPPvCardAvatarModule (but not having method description) so not able to get how to use its methods to update avtar(image) ?? Can any one post sample code & links to understand that, i am stuck with this problem !! Thanks.
Most folks use XEP-153 for avatars. But please be careful implementing this. If you get your hash logic wrong, and you don't do negative caching, it wreaks havoc on the network as your client constantly re-queries for vcards that will never match the hash they're given. Please do NOT set your client to send vcard queries to everyone on your roster every time you log in -- please heed the MUST in the XEP for caching avatars, or do NOT implement this feature.
Also, please be aware the community hopes to one day move to XEP-84, which has the potential to be more efficient in certain cases.