You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: Not able to StartScreenShare from the android phone(ios not yet implemented) but able to see the Shared Screen( shared from Browser) from the attendee and was visible on the videoTile(in the android phone). The app crashes by showing a black screen on the receiver's end(in this case the browser).
val audioVideo: AudioVideoFacade = meetingSession!!.audioVideo
audioVideo.startContentShare(source)
// after reaching this line of code the black screen is seen on the recievers end and the android app crashes
Here is the code that generated the problem:
for permission// in android
val mediaProjectionManager = currentActivity?.getSystemService(Context.MEDIA_PROJECTION_SERVICE) as MediaProjectionManager
currentActivity?.startActivityForResult(
mediaProjectionManager.createScreenCaptureIntent(),
SCREEN_CAPTURE_REQUEST_CODE//1 in this case )
private val mActivityEventListener: ActivityEventListener =
object : BaseActivityEventListener() {
override fun onActivityResult(activity: Activity?, requestCode: Int, resultCode: Int, data: Intent?) {
if (SCREEN_CAPTURE_REQUEST_CODE == requestCode) {
if (resultCode != Activity.RESULT_OK) {
Toast.makeText(currentActivity!!.applicationContext, "Screen share cannot work without
permissions",Toast.LENGTH_LONG).show()
} else {
Toast.makeText(currentActivity!!.applicationContext, "ALL OK", Toast.LENGTH_LONG).show() //able to see the toast on the phone and after accepting the permission
currentActivity?.startService(Intent(currentActivity, ScreenCaptureService::class.java)
data?.let { startScreenShare(resultCode, it, currentActivity!!) }
i was implementing the amazon chime sdk in react native by following this https://github.com/aws-samples/amazon-chime-react-native-demo#2-add-sdk-binaries-to-the-project. and https://github.com/aws/amazon-chime-sdk-android#screen-and-content-share We were able to implement the sdk in android and was able to integrate video calling by joining the meeting session and following the steps mentioned in the shared link.
Problem: Not able to StartScreenShare from the android phone(ios not yet implemented) but able to see the Shared Screen( shared from Browser) from the attendee and was visible on the videoTile(in the android phone). The app crashes by showing a black screen on the receiver's end(in this case the browser).
val audioVideo: AudioVideoFacade = meetingSession!!.audioVideo
audioVideo.startContentShare(source)
// after reaching this line of code the black screen is seen on the recievers end and the android app crashes
Here is the code that generated the problem:
for permission// in android
val mediaProjectionManager = currentActivity?.getSystemService(Context.MEDIA_PROJECTION_SERVICE) as MediaProjectionManager
currentActivity?.startActivityForResult(
mediaProjectionManager.createScreenCaptureIntent(),
SCREEN_CAPTURE_REQUEST_CODE//1 in this case )
private val mActivityEventListener: ActivityEventListener =
object : BaseActivityEventListener() {
override fun onActivityResult(activity: Activity?, requestCode: Int, resultCode: Int, data: Intent?) {
permissions",Toast.LENGTH_LONG).show()
} else {
Toast.makeText(currentActivity!!.applicationContext, "ALL OK", Toast.LENGTH_LONG).show()
//able to see the toast on the phone and after accepting the permission
currentActivity?.startService(Intent(currentActivity, ScreenCaptureService::class.java)
data?.let { startScreenShare(resultCode, it, currentActivity!!) }
init {
reContext?.addActivityEventListener(mActivityEventListener)
}
ScreenCaptureService and ScreenShareManager be downloaded from amazon chime git
val eglCoreFactory: EglCoreFactory = DefaultEglCoreFactory()
private fun startScreenShare(resultCode: Int, data: Intent, context: Context) {
currentActivity!!.startService(Intent(currentActivity, ScreenCaptureService::class.java))
screenshareServiceConnection = object : ServiceConnection {
override fun onServiceConnected(className: ComponentName, service: IBinder) {
// notifyHandler("Screen capture stopped")
}
// notifyHandler("Screen capture failed with error $error")
meetingSession?.audioVideo?.stopContentShare()
}
}
// currentActivity?.setScreenShareManager(screenShareManager)
}
Expected behaviour :
After accepting Screen Share permission the screen should be visible to the receiver's end
Logs
If applicable, add logs from logcat to help explain your problem.
Screenshots
If applicable, add screenshots to help explain your problem.
Test environment Info (please complete the following information):
Device: MI
OS: Android pie(9)
Version amazon-chime-sdk:0.17.5
Version amazon-chime-sdk-media: 0.17.6
Can you reproduce this in the demo app . Demo app does not have screen share
LOGS SCREENSHOT
here is a video of the same in android app.
https://user-images.githubusercontent.com/14231815/219036255-13c15866-7ba7-4346-9f0a-12bf5e1e53a1.mp4
kindly guide me through if am missing anything.thanks is advance
The text was updated successfully, but these errors were encountered: