How to send toast message from SFB web SDK to UCMA Bot - javascript

I am using latest SFB web SDK for connecting audio call with UCMA Bot. I want to send toast message from SFB web SDK to UCMA Bot. I tried with IM call that working fine, but not working in audio call scenario. I search about it, but I haven't found any relevant resources. All blog talks about only how to connect call, not about with toast message. Thanks in advance.

In your UCMA application that correctly handles your IM scenario you would have registered for incoming IM calls using localEndpoint.RegisterForIncomingCall<InstantMessage>(IMCallDelegate).
To handle incoming audio instead of registering <InstanceMessage> you need to register for <AudioVideoCall> and within that delegate set up event handlers on call.audioVideoFlowConfigurationRequested and call.Flow.StateChanged events as appropriate.
For example:-
localEndpoint.RegisterForIncomingCall<AudioVideoCall>(AVCallDelegate);
See the MSDN article of call.AudioVideoFlowConfirgationRequested for more details. https://msdn.microsoft.com/EN-US/library/office/microsoft.rtc.collaboration.audiovideo.audiovideocall.audiovideoflowconfigurationrequested_di_3_uc_ocs14mreflyncuc3cr.aspx

Related

Laravel and Flutter Notifications System

I Want to Build a Web App with Mobile App in one platform. So, Both of Them will use the Same Database which is MySQL.
I want to use Laravel as backend and flutter for mobile app
Also, I want to build notifications system "when the user does something he will get pop up notification"
and that is the problem.
I searched a lot about this but I found nothing.
for Laravel, I can use Pusher and it's pretty easy.
but I didn't found anything to integrate it to flutter.
NOTE:
I'm beginner at flutter. But i'm good at laravel.
UPDATE
it's okey if there is any other method to do this
For flutter there is package called flutter_local_notifications,
link: https://pub.dev/packages/flutter_local_notifications
also there is pusher package
https://pub.dev/packages/pusher
so you can use these 2 together, so when a user trigger an event with API, a listener will send notification to pusher, so the other user would listen to it using pusher package.
At this moment you got the notification on your mobile using pusher package, only then you can trigger local notification using the other package instantly.

Azure Media Services Job status webhook notifications

I have a nodejs based application that I'm running on azure. It's basically a CRUD app for video files. I'm currently able to upload and create jobs with Azure Media Services via the REST api (https://app-name.restv2.westus2-2.media.azure.net/api/Jobs). However I am unable to get any job status or resulting metadata. Ideally I will create a thumbnail and then send the assetID back to my servers along with the sources metadata and from there I can determine which other output types I'd like to create.
I've attempted setting up an Event Subscription via a webhook endpoint in the "Events" blade of my instance of media services on the azure portal website. The way I understand it I should be getting https POST requests whenever there is a status update?
I know that I need to validate the endpoint as per the instructions here: https://learn.microsoft.com/en-us/azure/event-grid/security-authentication#validation-details
And have done so successfully.
Am I missing something? I can see and successfully log the initial validation query from Events but never get another event of any type.
Any info you can toss my way is MUCH appreciated.
If you want to use webhooks, please follow the steps in this document. The Event (Grid) notifications work only with our v3 APIs which are currently in preview. And in v3, we have not completed the work to return Job details - you would only get notified of the final state of the Job.

Is there a way to get notifications from YouTube API when broadcaster is live

I'm creating a app that has a database of users who stream there computer game play from YouTube, is there a way to get a notification from YouTube API that will tell me when the gamer is live so I can randomly broadcast each live video for 2 minutes each?
I think it requires a websocket connection with your api endpoint by using ws:// protocole at some point. Websocket listen to a server, and enable your browser to handle it's changes like events. So it's exacly what u need for notifications.
In RoR 5 you can do it using ActionCable.
I've used Rails 5's ActionCable to handle notifications. But sinds I've only used it to listening to changes inside the server of my own Rails app's and not an API endpoint so I won't be able to give you a step by step guide.
You should checkout how to make an action cable connection with an API end point.
Here is a documentaion that might help u out:
RoR doc on ActionCable
MDN docs on Websocket
The way you looking for is YouTube Live Streaming API.
the documentation of the API can be read from this link
It appears the GET https://www.googleapis.com/youtube/v3/liveBroadcasts endpoint is what you want.
Returns a list of YouTube broadcasts that match the API request parameters.
However, getting a notification will require some work. It will probably require polling the endpoint for changes to determine if a new broadcast has been started. I'm not aware of a PUSH API from YouTube to send a request to an endpoint of your choice to create a notification.
More info in the Youtube docs.

Meteor - Facebook Graph Api

I am creating a meteor app. I successfully implemented the facebook login but now the last feature I should implement is to create a chat (involving facebook messenger) between the page(admin) and the user. It should happen through the app. Could I do that with meteor or I should use javascript. The second question, if it is not possible with meteor is how to initialize the messenger conversation, if I by using the facebook user Id which I already know from the registration. I know that there are a lot of discussions about the graph-api but I could not find anything which includes meteor.
You can utilize in app deep linking to direct a user to the messenger.
fb-messenger://user/%s
the %s represents the user-id of the user who will receive the message!
Android as well as iOS will handle these requests properly.

google hangouts api unable to fire events

I'm quite in confusion in using Google Hangouts API.
I've gone through the API here and have created the project and followed the steps given in the second step.
I've a requirement where user will initiate a hangout and send the link to some of the people and people can join in it.
Let's consider the sample app here.
How can I make use of the Gadget XML and Source Code in my MVC application and start a Hangout?
They have given a sample XML file which contains some html code also.
How can I call that XML file in my application and be able to fire some of the events of hangouts like getHangoutUrl()?
Initiate a hangout : Hangout Button is what you are looking for, you just need to add required javascript files to your page and use 'gapi.hangout.render' to render the button on your page.
Send out hangout link to others : you can use the invite option where you can add invites(email, gplus profile_id, phone no.) while rendering the hangout button, more info and examples here.
Gadget XML file : This file should to be hosted on your server on some public url which doesn't need any kind of authentication.
You can add your scripts, styles and html to be rendered on hangout app server more info here.
Handling events in hangout app : Well you can use ajax to post changes in hangout app to your server. But it would be better if you use Pusher to take care of hangout triggered events(onYouTubeLiveIdReady, onParticipantsAdded etc.) asynchronously and push changes to clients.
You can also use it to add chat messages feature to your app using it, so that viewers can also interact with the hangout participants incase of Hoa broadcast.

Categories

Resources