Participant video rooms - twilio

I recently tried to find a solution to fetch all active video rooms for a participant.
Server-side API does not provide any useful filters, best I could do is fetch all the rooms that are in the status of in-progress and then filter them by the participant's unique name.
I also checked the JS SDK on the client side and could not find any viable solution to this problem.
I recently saw that an option to get a list of participant conversations has been added to the admin SDK, are there any plans to add such an option for participant video rooms?
Thanks in advance!

Twilio Developer Evangelist here. I passed this question to the video team who recommended the workaround you have found (fetch all in-progress rooms and filter by participant name) as the best option at the moment.

Related

Twillio programable video how to notify from client 1 to client 2

I use Video WebRTC Go to build a peer to peer video chat app with Twilio.
Client 1 creates a room and gets access to that room. So how do we make client 2 aware of that this.
How do I pass the signal there is a call for him (Client 2).
Do I need to handle it my self? or Does Twillio provide a service to achieve that use case?
Hope my question is clear.
Any help!
Thanks in advance! =)
Twilio developer evangelist here.
When you create a room for the users to meet in you will need to make your users aware. There is nothing within Twilio Video specifically to do that.
There are service that Twilio provides that could be used for this, for example, you could SMS or email your user with a link to a page on your site where they can join the room. It depends on the user experience you want to create though.

Twilio Programmable Chat User Channel Limit - best practice?

We are using Twilio Programmable Chat in our product and we're running into the issue of having too many channels per user. (Every once in a while, I increase the limit in our app, but there is an absolute maximum of 1,000) so we're going to hit that limit in a few months I beliee
I'm wondering if there are any best practices to manage this? SHould we remove the user from a channel after a period of time? What happens if the user wants to participate in the channel again in the future? If we re-add the user to the channel, will the profile be linked? (assuming our unique identifier for the user is the same?)
Unfortunately, I was unable to find specifics about this in the help documentation - so apologies if it does exist!
Thanks very much!
Chris
Twilio's suggestion here is to add/remove users from/to channels on demand, for example when new message is posted to the channel. They could use Chat webhooks to handle new message events (onMessageSent) and add the user back.

Twilio chat : Can I get a channel's message history without joining the channel?

I'm using Twilio chat SDK for iOS, and I've run into a problem. I can get the list of channels, get an individual channel, and get the message count for that channel successfully. The next thing I want to do is grab the last message from that channel using getLastWithCount. However, that method's completion is never called.
I need to do this without actually joining the channel, because I'm just trying to get the last message to display in a summary screen with many others. I don't want to join, because the other party may be online on the other end, and it would falsely display the user as online (even if briefly)- when it is simply an automated function at work. (They haven't entered the "chat room" yet.)
I've set client synchronization strategy to .all, and even tried synchronizing the specific channel before attempting getLastWithCount.
How would you get the last message in a Twilio chat channel without joining the channel?
Twilio developer evangelist here.
You can do this, but your users need to have a new permission to do so. The documentation on Users' Roles and Permissions is worth reading to learn more.
Default user permissions are:
createChannel
editOwnUserInfo
joinChannel
But you need one more that allows viewing channels and their messages without joining the channel. One that does this is editChannelName (not obvious, sorry about that).
To do this, you'll want to create a new role and give it those 4 permissions in total. You can then either assign that role to your users or set it as the default role for your Chat service. Once your users have this role and permissions they will be able to view the messages.
Let me know if this helps.

How to get user's subscriptions uploads

I'm currently developing a chrome extension that notifies you when one of your subscribed channels uploads a new video.
Now I'm having trouble finding the correct API method to aquire a list of recent uploads from the users subscribed channels, for example the list the user sees when he visits: https://www.youtube.com/feed/subscriptions
I maybe know about a workaround, but that would be overkill: list all subscribed channels, and for each one of them list the latest videos of the uploads playlist (would be 2 requests per channel i think)
Can anyone help me out here? Thanks in advance!
There is not an exact equivalent but you can get close with
youtube.activities.list(part=”snippet”, home=true)
then filter the one with snippet.type = upload
Was already answered here.

Tracking subs referral

Is it possible using the current APIs to track where one's subscribers are subscribing from?
For example perhaps I want to see how many subscribers an annotation on a certain video (that any user uploaded) generated for my channel.
The closest thing to what you're describing is running a YouTube Analytics API report with
ids=channel==UC...
dimensions=video
metrics=subscribersGained,subscribersLost
sort=-subscribersGained
This will return the top ten videos that led to subscriptions to your channel. But I don't think that videos uploaded in third-party channels that have annotations prompting people to subscribe to your channel will show up on that list. My understanding is that only videos in your own channel will show up on the list, and it might be that only subscriptions made via the Subscribe link on the web page (not via an annotation) would trigger inclusion on that report.
Sorry that I don't have more specific details.

Resources