Implementing video chat and message chat at once android - android

I have done a lot of research, but couldn't find the answer. Currently I'm using agora.io.
What I mean :
I want to add into my android app voice call, but on the same screen.
It has to be possible write some messages during a call without ending it, like at this screen
Is it even possible to do it with agora.io or should I change the lib to another one?

Agora video sdk can achieve that. You can use RTM sdk for messaging functionality and RTC sdk for video call. To put them in the same screen, you need to put the video ui on top of the messaging ui.

Related

TOK BOX Screen sharing is not working outside my app

I did screen sharing (tokbox) for my application.
It works fine inside my app.
But I cannot share screen outside my app...
Can anyone plz help?
https://tokbox.com/developer/guides/screen-sharing/android/
I had also faced the same issue and had mailed to tokbox support.
This was their response:
The way our screen capture code works is that it recursively traverses the view hierarchy and copies those images to a buffer and then send that buffer over on the webrtc data pipe. Hence once the app is pushed to the background, we could not traverse the view hierarchy and copy the image, so screen sharing works until we are in the application (Android or iOS native app). If you want to share the screen view of Opentok app only, it will work but outside the app won't work. It's just to take care of the privacy and security aspects of the mobile app users.
So according to them you cannot share screen outside the application. It will only work when app is in foreground.
Update
After constantly asking the tokbox support team I got the following reply from them:
To screenshare the content outside of your application on Android and iOS can be achieved.
For Android, you need to use the Media Projection API together with Vonage/Tokbox Custom Capturer.
For iOS, you need to use the iOS ReplayKit together with Vonage/Tokbox Custom Capturer.
Basically, the implementation is to get a frame from Media Project API or Replaykit and then pass it via a custom capturer.
Following their response, I found Accelerator Core Android repo which showed how to integrate Media Projection API with tokbox.
More specifically these two files: ScreenSharingFragment.java and ScreenSharingCapturer.java
Using these two files I am now able to share screen outside my application.
Note:
Apps that target Android 9 (API level 28) or higher should use Foreground services or else your app will crash due to security reasons.
According to Tokbox, we can't share the screen outside the application.
Manik here from the Video API team.
To screenshare the contents outside of your application on the Android platform, you need to use the Media Projection API. In combination with the Media Projection API, you need to use a Custom Capturer.
We're working on a sample application that will allow you to accomplish this - please stay tuned!

Recieving Notifications

So I have this idea of an app that would get all youtube's notifications for the day and puts them all in one page and give you some functionality over them like adding to watch later and maybe not interested and some others all in one click, in addition to that i would be able to make better notification tiles you know the default one isn't that good and i've seen better, I thought about it for a while and I think i am going to go about it this way:
1- stop youtube itself from sending the notifications.
2- making the app get this day's uploads and listing them.
3- making the app send the noti... in a better looking tile.
4- adding the "Other functionalities".
But..., i've looked around for notification support on the youtube api page and found nothing useful.
Is there any api or anything that would help me in this, i am using android studio BTW.

Agora's Video Call Layout

SDK: Agora Video Call
Platform: TV
OS: Android
Problem: I recently integrated Agora's video call service into our app, whenever I launch a video call, the layout seems to be unorganized, new entries were added vertically. Can someone help me with this? Thank you!
Reference: https://drive.google.com/file/d/1Nq5d5PK4HyMZ6-XdXvhTOGeJFeOxuvmp/view?usp=sharing
I'm not sure you are building app with Agora RTC SDK(Video + Interactive Broadcasting SDK) or just launch Agora Video Call(https://play.google.com/store/apps/details?id=io.agora.vcall) in your app?
If the former case, you can totally control the UI by your code logic. If the latter one, can you help to take a picture for us, we can check if need some enhancements for UI on TV.
Thanks

subcribe to channel and like/dislike youtube video programmatically android

How to achieve from an android application which can subscribe, like or dislike a particular youtube video from android application side. And yes this is not so far, i also want callback for all of them like once user has like video then i want callback of that, too. I have searched and got some idea about YouTube Data API,but how to integrate it in my own app that is what i am confused. And is there any else way to achieve this, if someone have then kindly let me know.
To get ratings (like or dislike) you have to to take the video_ID and make a separate API request to get the details you want for the video.
Here are some of the Listener, you may use this specially for loading, playing and controlling video callback: https://developers.google.com/youtube/android/player/reference/com/google/android/youtube/player/YouTubePlayer#Overview
You may use the 'Get Started', The document will help you to set up your development environment and use the Youtube Android Player API.

How to stream screen content to Chromecast

I have an Android app that I would like to add the ability for the user to "cast" what is displayed on the app to a Chromecast. It could just be a local JPG but I would prefer the user to actually see actual "live" content of the app. Does anyone know if this is possible? I know there are apps like AllCast but wasn't sure if they were using supported features of the SDK or if it was a hack. I found some mention of the Default Media Receiver but could not find any documentation on how to use it with local content. Any advice or direction would be appreciated.
There is no Cast api to do that directly; you can look into WebRTC or something of that nature.
The way I do it is to use the Presentation class. The only problem is that you do need to use the ChromeCast app to start screen mirroring before you start your app.
I have not yet found a way to start mirroring my app (or, to be more precise, to show the contents of your Presentation class) from a ChromeCast UIButton within my app, even though I have been able to get that cast button working and connecting ... just not to start app-mirroring when using only my in-app chromecast button.

Categories

Resources