GithubHelp home page GithubHelp logo

jitsi / jitsi-meet-sdk-samples Goto Github PK

View Code? Open in Web Editor NEW
268.0 26.0 230.0 111.91 MB

Jitsi Meet mobile SDK examples (Android, iOS and React Native)

License: Apache License 2.0

Java 19.37% Objective-C 10.70% Ruby 5.05% Swift 44.27% Kotlin 7.18% TypeScript 5.27% JavaScript 1.08% Objective-C++ 1.20% Dart 5.87%
jitsi rtc jitsi-meet real-time-communications android ios sdk react-native

jitsi-meet-sdk-samples's Introduction

Jitsi Meet SDK samples

This repository contains sample applications for Android and iOS which use the Jitsi Meet SDK. They are organized as follows:

Android

iOS

  • ios/objc: iOS examples, written in Objective-C
  • ios/swift: iOS example, written in Swift
  • ios/swift-pip: iOS example, written in Swift and showing how Picture-in-Picture can be implemented
  • ios/swift-screensharing: iOS example, written in Swift and showing how Screen Sharing can be implemented

NOTE: You must be using Xcode >= 14.2 for the iOS examples to run.

React Native

  • react-native: React Native example that also uses React Navigation.

Flutter

jitsi-meet-sdk-samples's People

Contributors

alexbumbu avatar bc-m avatar bgrozev avatar calinteodor avatar dependabot[bot] avatar gabiborlea avatar imcreative avatar saghul avatar tmoldovan8x8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jitsi-meet-sdk-samples's Issues

org.jitsi.react:jitsi-meet-sdk to 2.2.0

Because of com.facebook.react.bridge.NoSuchKeyException: lineNumber, When I update org.jitsi.react:jitsi-meet-sdk to 2.2.0, the program crashes.Mobile phone is Samsung Galaxy A9 pro, Andriod 7.0.

2019-07-15 18:23:50.735 5649-5649/net.jitsi.sdktest E/AndroidRuntime: FATAL EXCEPTION: main
Process: net.jitsi.sdktest, PID: 5649
java.lang.IllegalStateException: Could not execute method for android:onClick
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:390)
at android.view.View.performClick(View.java:6261)
at android.widget.TextView.performClick(TextView.java:11185)
at android.view.View$PerformClick.run(View.java:23752)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6776)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1518)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:385)
at android.view.View.performClick(View.java:6261) 
at android.widget.TextView.performClick(TextView.java:11185) 
at android.view.View$PerformClick.run(View.java:23752) 
at android.os.Handler.handleCallback(Handler.java:751) 
at android.os.Handler.dispatchMessage(Handler.java:95) 
at android.os.Looper.loop(Looper.java:154) 
at android.app.ActivityThread.main(ActivityThread.java:6776) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1518) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408) 
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Bundle org.jitsi.meet.sdk.JitsiMeetUserInfo.asBundle()' on a null object reference
at org.jitsi.meet.sdk.JitsiMeetConferenceOptions.writeToParcel(JitsiMeetConferenceOptions.java:344)
at android.os.Parcel.writeParcelable(Parcel.java:1505)
at android.os.Parcel.writeValue(Parcel.java:1411)
at android.os.Parcel.writeArrayMapInternal(Parcel.java:733)
at android.os.BaseBundle.writeToParcelInner(BaseBundle.java:1408)
at android.os.Bundle.writeToParcel(Bundle.java:1133)
at android.os.Parcel.writeBundle(Parcel.java:773)
at android.content.Intent.writeToParcel(Intent.java:9253)
at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:3545)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1526)
at android.app.Activity.startActivityForResult(Activity.java:4404)
at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:767)
at android.app.Activity.startActivityForResult(Activity.java:4363)
at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:754)
at android.app.Activity.startActivity(Activity.java:4687)
at android.app.Activity.startActivity(Activity.java:4655)
at org.jitsi.meet.sdk.JitsiMeetActivity.launch(JitsiMeetActivity.java:51)
at net.jitsi.sdktest.MainActivity.onButoonClick(MainActivity.java:51)
at java.lang.reflect.Method.invoke(Native Method) 
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:385) 
at android.view.View.performClick(View.java:6261) 
at android.widget.TextView.performClick(TextView.java:11185) 
at android.view.View$PerformClick.run(View.java:23752) 
at android.os.Handler.handleCallback(Handler.java:751) 
at android.os.Handler.dispatchMessage(Handler.java:95) 
at android.os.Looper.loop(Looper.java:154) 
at android.app.ActivityThread.main(ActivityThread.java:6776) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1518) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408) 

updated the SDK to 2.2.2

Sorry.When I updated the SDK to 2.2.2, I still couldn't succeed. I encountered a new problem.
How can I solve it?

2019-07-16 15:06:10.593 2843-3242/net.jitsi.sdktest E/ReactNativeJS: '[__filename]', ': ', 'Failed to load config from https://meet.jit.si/config.js?room=asdfghjklzxcvbnm', { [Error: timeout] line: 811, column: 188, sourceURL: 'index.android.bundle' }
2019-07-16 15:06:10.653 2843-3243/net.jitsi.sdktest E/unknown:ReactNative: console.error: "[__filename]", ": ", "Failed to load config from https://meet.jit.si/config.js?room=asdfghjklzxcvbnm", {"line":811,"column":188,"sourceURL":"index.android.bundle"}, stack:
@379:2405
@-1
l@602:840
l@-1
@917:1093
f@116:155
@116:882
y@121:657
C@121:1021
callImmediates@121:3216
callImmediates@-1
value@42:2873
@42:1264
value@42:2565
value@42:1234
value@-1
value@-1
2019-07-16 15:06:13.406 2843-3242/net.jitsi.sdktest E/ReactNativeJS: '[__filename]', ': ', 'Failed to load config from https://meet.jit.si/config.js', { [Error: timeout] line: 811, column: 188, sourceURL: 'index.android.bundle' }
2019-07-16 15:06:13.439 2843-3243/net.jitsi.sdktest E/unknown:ReactNative: console.error: "[__filename]", ": ", "Failed to load config from https://meet.jit.si/config.js", {"line":811,"column":188,"sourceURL":"index.android.bundle"}, stack:
@379:2405
@-1
l@602:840
l@-1
@917:1093
f@116:155
@116:882
y@121:657
C@121:1021
callImmediates@121:3216
callImmediates@-1
value@42:2873
@42:1264
value@42:2565
value@42:1234
value@-1
value@-1
2019-07-16 15:06:14.021 2843-3242/net.jitsi.sdktest E/ReactNativeJS: '[__filename]', ': ', 'Failed to load config from https://meet.jit.si/config.js', { [Error: timeout] line: 811, column: 188, sourceURL: 'index.android.bundle' }
2019-07-16 15:06:14.051 2843-3243/net.jitsi.sdktest E/unknown:ReactNative: console.error: "[__filename]", ": ", "Failed to load config from https://meet.jit.si/config.js", {"line":811,"column":188,"sourceURL":"index.android.bundle"}, stack:
@379:2405
@-1
l@602:840
l@-1
@917:1093
f@116:155
@116:882
y@121:657
C@121:1021
callImmediates@121:3216
callImmediates@-1
value@42:2873
@42:1264
value@42:2565
value@42:1234
value@-1
value@-1

Noise problem

When I use the Android version of the SDK, after creating a room on the web page, there will be very serious noise after joining the room.

A crash occurred while running the example (xcode 10.3 / xcode 11.3.1)


dyld: Library not loaded: @rpath/JitsiMeet.framework/JitsiMeet
Referenced from: /private/var/containers/Bundle/Application/F76FE576-1067-444F-894D-BCCA66BD01BF/NoPodsSample.app/NoPodsSample
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/F76FE576-1067-444F-894D-BCCA66BD01BF/NoPodsSample.app/Frameworks/JitsiMeet.framework/JitsiMeet: code signature invalid for '/private/var/containers/Bundle/Application/F76FE576-1067-444F-894D-BCCA66BD01BF/NoPodsSample.app/Frameworks/JitsiMeet.framework/JitsiMeet'

/private/var/containers/Bundle/Application/F76FE576-1067-444F-894D-BCCA66BD01BF/NoPodsSample.app/Frameworks/JitsiMeet.framework/JitsiMeet: stat() failed with errno=25

xcode 10.3
xcode 11.3.1
Iphone xs max - 13.3.1

failed to build android example

Build error:

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.facebook.react:react-native-google-signin:3.0.1-jitsi-3479084.
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.facebook.react:react-native-keep-awake:4.0.0-jitsi-3479084.
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not download react-native-background-timer.aar (com.facebook.react:react-native-background-timer:2.1.1-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not download react-native-community-async-storage.aar (com.facebook.react:react-native-community-async-storage:1.3.4-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not download react-native-immersive.aar (com.facebook.react:react-native-immersive:2.0.0-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not download react-native-sound.aar (com.facebook.react:react-native-sound:0.11.0-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not download react-native-webrtc.aar (com.facebook.react:react-native-webrtc:1.75.3-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not download react-native-webview.aar (com.facebook.react:react-native-webview:7.4.1-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.facebook.react:react-native-google-signin:3.0.1-jitsi-3479084.
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.facebook.react:react-native-keep-awake:4.0.0-jitsi-3479084.
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not download react-native-background-timer.aar (com.facebook.react:react-native-background-timer:2.1.1-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not download react-native-community-async-storage.aar (com.facebook.react:react-native-community-async-storage:1.3.4-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not download react-native-immersive.aar (com.facebook.react:react-native-immersive:2.0.0-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not download react-native-sound.aar (com.facebook.react:react-native-sound:0.11.0-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not download react-native-webrtc.aar (com.facebook.react:react-native-webrtc:1.75.3-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not download react-native-webview.aar (com.facebook.react:react-native-webview:7.4.1-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.facebook.react:react-native-google-signin:3.0.1-jitsi-3479084.
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.facebook.react:react-native-keep-awake:4.0.0-jitsi-3479084.
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not download react-native-background-timer.aar (com.facebook.react:react-native-background-timer:2.1.1-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not download react-native-community-async-storage.aar (com.facebook.react:react-native-community-async-storage:1.3.4-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not download react-native-immersive.aar (com.facebook.react:react-native-immersive:2.0.0-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not download react-native-sound.aar (com.facebook.react:react-native-sound:0.11.0-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not download react-native-webrtc.aar (com.facebook.react:react-native-webrtc:1.75.3-jitsi-3479084)
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not download react-native-webview.aar (com.facebook.react:react-native-webview:7.4.1-jitsi-3479084)
Show Details
Affected Modules: app

Change Default siteURL for iOS

Hey Saghul,

Thanks for the examples, it was extremely helpful! I am not sure if this is the right place to ask this. If you want me to move this to the community forums let me know.

I am trying to change the default siteURL for the swift version, I was looking at this code but it seems to be obj-c
` JitsiMeetView *jitsiMeetView = (JitsiMeetView *) self.view;
jitsiMeetView.delegate = self;

JitsiMeetConferenceOptions *options = [JitsiMeetConferenceOptions fromBuilder:^(JitsiMeetConferenceOptionsBuilder *builder) {
builder.serverURL = [NSURL URLWithString:@"https://meet.jit.si"];
builder.room = @"test123";
builder.audioOnly = YES;
}];

[jitsiMeetView join:options];`

How would I change the default URL in the swift example?

Thanks!

Linking against fresh build of WebRTC does not work

In the README it's stated clearly that this should not be done, but I need to link against my own verion of WebRTC.framework. If I simply substitute it in the vendor/frameworks folder, I get a runtime error. Could it simply be that my version is too new ? I pulled and compiled today from official WebRTC. If so, could you please tell me which revision I should pull? And perhaps also the build args for gn, so that we are sure it's the same. Thanks

app crash

android version not work:
couldn't find "libjingle_peerconnection_so.so"

Language Settings

I am an iOS developer,Where can I set the language? Like Chinese.

About video room

Can I know if a video chat has been created and if there is someone inside?

Pausing an activity that is not the current activity, this is incorrect!

I am using android java code and getting this error. I am using the example code given at this repository.

java.lang.AssertionError: Pausing an activity that is not the current activity, this is incorrect! Current activity: JitsiMeetActivity Paused activity: StreamActivity at com.facebook.infer.annotation.Assertions.assertCondition(Assertions.java:72) at com.facebook.react.ReactInstanceManager.onHostPause(ReactInstanceManager.java:511) at org.jitsi.meet.sdk.JitsiMeetActivityDelegate.onHostPause(JitsiMeetActivityDelegate.java:126) at org.jitsi.meet.sdk.JitsiMeetFragment.onStop(JitsiMeetFragment.java:94) at androidx.fragment.app.Fragment.performStop(Fragment.java:2894) at androidx.fragment.app.FragmentStateManager.stop(FragmentStateManager.java:381) at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1209) at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1354) at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1432) at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1495) at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2617) at androidx.fragment.app.FragmentManager.dispatchStop(FragmentManager.java:2590) at androidx.fragment.app.FragmentController.dispatchStop(FragmentController.java:291) at androidx.fragment.app.FragmentActivity.onStop(FragmentActivity.java:563) at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1466) at android.app.Activity.performStop(Activity.java:8018) at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:4616) at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4594) at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4669) at android.app.servertransaction.StopActivityItem.execute(StopActivityItem.java:41) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

Failure to build against the SDK

Hi,

I'm having trouble using the SDK. I've tried to use a CocoaPod pod in my app as described in the README as well as directly running the provided app samples here and none of them work at all.
I keep getting the following errors:

// in x86_64-apple-ios-simulator.swiftinterface
...
// 'PiPViewCoordinator' is not a member type of JitsiMeet
23 | public static func == (a: JitsiMeet.PiPViewCoordinator.Position, b: JitsiMeet.PiPViewCoordinator.Position) -> Swift.Bool
...
// 'PiPViewCoordinator' is not a member type of JitsiMeet
29 | public var initialPositionInSuperview: JitsiMeet.PiPViewCoordinator.Position
...
// 'PiPViewCoordinatorDelegate' is not a member type of JitsiMeet
31 | weak public var delegate: JitsiMeet.PiPViewCoordinatorDelegate?
...
// 'AnimationCompletion' is not a member type of JitsiMeet
34 | public func show(completion: JitsiMeet.AnimationCompletion? = nil)
// 'AnimationCompletion' is not a member type of JitsiMeet
35 | public func hide(completion: JitsiMeet.AnimationCompletion? = nil)
...
// 'JMCallKitListener' is not a member type of 'JitsiMeet'
50 | @objc public static func addListener(_ listener: JitsiMeet.JMCallKitListener)
// 'JMCallKitListener' is not a member type of 'JitsiMeet'
51 | @objc public static func removeListener(_ listener: JitsiMeet.JMCallKitListener)
...
// 'PiPViewCoordinator' is not a member type of JitsiMeet
71 | extension JitsiMeet.PiPViewCoordinator.Position : Swift.Equatable {}
// 'PiPViewCoordinator' is not a member type of JitsiMeet
72 | extension JitsiMeet.PiPViewCoordinator.Position : Swift.Hashable {}

I couldn't really find the full source of the JitsiMeet module in order to try and see what is wrong. I also did not find the headers listing the inheritance. Maybe I didn't look in the right place.

However, if I do remove the JitsiMeet. inheritable specified in front, the SDK compiles, but it doesn't work. I'm guessing there is something amiss. Could you assist?

I am running on MacOS Catalina 10.15.4, Xcode 11.4, Swift 5.2. Thank you in advance.

Reason: image not found

When I download the project, use pod install, then run it and report this error:

dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib
Referenced from: /private/var/containers/Bundle/Application/9F3B9795-D4FA-4B43-A623-A322EB527CA2/JitsiSDKTest.app/Frameworks/JitsiMeet.framework/JitsiMeet
Reason: image not found

A crash occurred while running the example.

The crash log is as follows:dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib
Referenced from: /Users/pro/Library/Developer/CoreSimulator/Devices/DC58A8D9-09FF-4460-9142-AFE3218B37CA/data/Containers/Bundle/Application/843784AC-000E-489A-9A30-3D169DD7DE4F/JitsiSDKTest.app/Frameworks/JitsiMeet.framework/JitsiMeet
Reason: image not found
Can you help me analyze the reason?thank you.

cameras

Can I choose to use front and rear cameras?

How to enable the user get back to the app in android sdk?

I've try to make ongoing call notification and the user tap this notification get back to the app as in orjinal app appearence.

WhatsApp Image 2020-04-28 at 11 05 21

As a result that some research, I found there are some classes for it on -> https://github.com/jitsi/jitsi-meet/blob/master/android/sdk/src/main/java/org/jitsi/meet/sdk/OngoingNotification.java

and https://github.com/jitsi/jitsi-meet/blob/master/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetOngoingConferenceService.java

and this https://github.com/jitsi/jitsi-meet/blob/master/android/sdk/src/main/java/org/jitsi/meet/sdk/OngoingConferenceTracker.java

How to enable the user get back to the app with ongoing call notification and how to make it on this main activity class?

Picture in picture function

My mobile phone is Samsung S7, Android8.0.
When I enter the chat room, the phone always enters the picture-in-picture mode. How do I disable it? Does Jitsi have an API that can be referenced?

Leave the room

Is there any way to know if I have left the room or failed to join the room?

Regarding Jitsi call Ended

Hello
I am facing one issue for calling time ..like i am calling to another person and that time call ended how to notify other side call is ended..and i have many jitsi tutorial learn and got one solution config.js -> enableClosePage: true but i am not using .js file so how to solve my problem..

Thanks in advance

Regarding Jitsi call

Hello @saghul

    This code i have check its working perfectly audio and video calling...and i m using custom code for jitsi video calling ..please give me custom code for using  sdk 2.3.0 its possible to share with me..

Thanks in Adavance

Getting error while we are addding other react-native based libreries.

Hi,
I am using jitsi android SDK in my application, I have one more react-native based android librery(developed by me, we are using mevan local publish), both are working fine individually but when we add both to same application both are crashing..
Can anyone help me on this.

A valid certificate

I want to register a valid certificate for my server to enable mobile phone access. What should I pay attention to? At present, it is only used on the local network. Are there any steps or instructions?Thank you for your reply.

I have a proplem.

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve org.jitsi.react:jitsi-meet-sdk:2.+.
I don't know why.I tried many times

Can i disable chat option?

I want to disable chat for the users other than the host of the meeting. How can that be achieved?
Please help.

Thanks in advance.

Use self-built servers

Sorry, when I use my own server, the mobile terminal can't connect, the browser is normal, how can I solve it? Can you tell me? Or because of the network and VPN? Andriod 7.0 Samsung A9pro.

2019-06-07 15:24:07.077 30622-30629/? E/art: Failed sending reply to debugger: Broken pipe
2019-06-07 15:24:38.449 30622-31652/net.jitsi.sdktest E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
2019-06-07 15:24:38.449 30622-31652/net.jitsi.sdktest E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
2019-06-07 15:24:38.471 30622-31652/net.jitsi.sdktest E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
2019-06-07 15:24:38.471 30622-31652/net.jitsi.sdktest E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
2019-06-07 15:24:38.486 30622-31652/net.jitsi.sdktest E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
2019-06-07 15:24:38.486 30622-31652/net.jitsi.sdktest E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
2019-06-07 15:24:38.500 30622-31652/net.jitsi.sdktest E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
2019-06-07 15:24:38.500 30622-31652/net.jitsi.sdktest E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
2019-06-07 15:24:38.514 30622-31652/net.jitsi.sdktest E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
2019-06-07 15:24:38.514 30622-31652/net.jitsi.sdktest E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
2019-06-07 15:24:39.758 30622-31651/net.jitsi.sdktest E/ReactNativeJS: '[__filename]', ': ', 'Failed to load config from https://192.168.0.143/config.js?room=kk', { [TypeError: Network request failed] line: 142, column: 2655, sourceURL: 'index.android.bundle' }
2019-06-07 15:24:39.807 30622-31652/net.jitsi.sdktest E/unknown:ReactNative: console.error: "[__filename]", ": ", "Failed to load config from https://192.168.0.143/config.js?room=kk", {"line":142,"column":2655,"sourceURL":"index.android.bundle"}, stack:
@379:2405
@-1
l@602:840
l@-1
@917:1093
f@116:155
@116:882
y@121:657
C@121:1021
callImmediates@121:3216
callImmediates@-1
value@42:2873
@42:1264
value@42:2565
value@42:1234
value@-1
value@-1
2019-06-07 15:24:40.682 30622-31652/net.jitsi.sdktest E/com.amplitude.api.AmplitudeClient: Argument context cannot be null in initialize()

Crash while connecting the room

I tried to make a demo sample, but its crashing.

Log: 2019-06-05 23:22:13.915 21875-22005/com.example.jitsidemo E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
    Process: com.example.jitsidemo, PID: 21875
    com.facebook.react.bridge.NoSuchKeyException: lineNumber
        at com.facebook.react.bridge.ReadableNativeMap.getValue(ReadableNativeMap.java:124)
        at com.facebook.react.bridge.ReadableNativeMap.getValue(ReadableNativeMap.java:128)
        at com.facebook.react.bridge.ReadableNativeMap.getInt(ReadableNativeMap.java:182)
        at com.facebook.react.util.JSStackTrace.format(JSStackTrace.java:28)
        at com.facebook.react.modules.core.ExceptionsManagerModule.reportSoftException(ExceptionsManagerModule.java:46)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
        at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:158)
        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
        at android.os.Handler.handleCallback(Handler.java:794)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
        at android.os.Looper.loop(Looper.java:176)
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232)
        at java.lang.Thread.run(Thread.java:764)

my gradle is

buildscript {
    ext.kotlin_version = '1.3.31'
    repositories {
        google()
        jcenter()
        
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven {
            url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases"
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.jitsidemo"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'

    // Jitsi Meet
    implementation ('org.jitsi.react:jitsi-meet-sdk:+') {
        transitive = true
    }

    // Glide
    implementation("com.github.bumptech.glide:glide:4.7.1") {
        exclude group: "com.android.support", module: "glide"
    }
    implementation("com.github.bumptech.glide:annotations:4.7.1") {
        exclude group: "com.android.support", module: "annotations"
    }
}

Please help

Android JitsiMeetView return to calling activity onConferenceTerminated

I start a jitsi video call using CustomJitsiMeetActivity from a notification button click using PendingIntentas

Intent intent = new Intent(this, CustomJitsiMeetActivity.class);
    intent.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
    PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent,
            PendingIntent.FLAG_ONE_SHOT);

    Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
    NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
            .setLargeIcon(BitmapFactory.decodeResource(getResources(),R.drawable.ic_stat_name))
            .setSmallIcon(R.drawable.ic_stat_name)
            .setContentTitle(notification.getTitle())
            .setContentText(notification.getBody())
            .setAutoCancel(true)
            .setSound(defaultSoundUri)
            .setContentIntent(pendingIntent)
            .setColor(ContextCompat.getColor(getApplicationContext(), R.color.colorPrimary))
            .addAction(R.drawable.ic_stat_name, getString(R.string.JOIN_CALL),
                    pendingIntent);

I need to return to MainActivity after the call ends from CustomJitsiMeetActivity which extends Fragment and implements JitsiMeetActivityInterface and JitsiMeetViewListener. This is the code for onCreate() method in CustomJitsiMeetActivity

private JitsiMeetView view;
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    view = new JitsiMeetView(this);
    JitsiMeetConferenceOptions options = new JitsiMeetConferenceOptions.Builder()
            .setRoom(getString(R.string.CALL_URL))
            .setSubject(getString(R.string.CALL_TITLE))
            .build();
    view.join(options);

    setContentView(view);
}

Once I disconnect the call the progress spinner keeps showing and I am unable to return to MainActivity even when I start a new Intent in onConferenceTerminated() after calling finish(). What is the correct way to do this?

Local network

Can't connect to the Internet. If I need to use the local LAN and the jitsi service built by myself, how to realize the video call between the mobile terminal and the Web terminal.Can it be realized?

Merging this Sdk example with React-native

Hi @saghul ! I hope you're doing good, I was getting some error when I tried to use this sdk example with react-native. Like, I made a native module of this sdk example and called it with react-native as an activity. Now the thing is, when navigating to this activity from reat-native it is giving the following error when I took a look at logcat because the app was crashing, will you please look into this ?
React-native V 0.60.5
errorSDK

Remove Invite button for users other than Host

How can i remove the invite button or option for the users who are invited by the host?

So basically only the host of the video conference can invite anyone and not all the users who joined the call. Please help

Thanks in advance.

Change Language

I am an iOS developer,Where can I change the language? Like French.

Could not resolve org.jitsi.react:jitsi-meet-sdk:2.8.2

Im so sorry that i cant compile it with vpn, it always reminder that Unknown host 'raw.githubusercontent.com'. You may need to adjust the proxy settings in Gradle. but i dont set proxy. can you change this dependices aar and jar file to libs? I have a alicloud ,it is linux system,but it is a server system,cant compile android projects with it easily. i need you help,thanks

It's Not Same As Google

It's Not Same As Jitsi Meet Which Published On Google Play Store Can You Please Provide me Google Code?

Thank You

Could not resolve org.jitsi.react:jitsi-meet-sdk:2.8.2

when i import android to Android Studio,compile it, error Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve org.jitsi.react:jitsi-meet-sdk:2.8.2.
Show Details
Affected Modules: app
please help me
root build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.3'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

allprojects {
repositories {
maven {
url "https://github.com/jitsi/jitsi-maven-repository/tree/master/releases"
}
google()
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

app build.gradle
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

// Jitsi Meet
implementation ('org.jitsi.react:jitsi-meet-sdk:2.8.2') { transitive = true }

}

Call not send

Call not send when entering the video call interface.

12-10 13:54:38.371 28667-28667/com.d3.d3xmpp E/xmppchat send: video:!somonitoring Open Video Chat =::12-10 13:54:389WsTC0
12-10 13:54:38.750 28667-28922/com.d3.d3xmpp E/OpenSLESRecorder: Not implemented
12-10 13:54:40.601 28667-28667/com.d3.d3xmpp E/com.d3.d3xmpp: No package ID ff found for ID 0xffffffff.
12-10 13:54:42.868 28667-28925/com.d3.d3xmpp E/JitsiConnectionService: setConnectionActive - no connection for UUID: 74600621-04A0-4FC0-A149-885DB78FCE9B
12-10 13:54:46.642 28667-28891/com.d3.d3xmpp E/xmppchat come: video:!somonitoring Open Video Chat=::12-10 13:54:499WsTC1
12-10 13:54:46.693 28667-28667/com.d3.d3xmpp E/JitsiMeetView: failed to enter PiP mode
java.lang.RuntimeException: Failed to enter Picture-in-Picture
at org.jitsi.meet.sdk.PictureInPictureModule.enterPictureInPicture(PictureInPictureModule.java:85)
at org.jitsi.meet.sdk.JitsiMeetView.enterPictureInPicture(JitsiMeetView.java:138)
at org.jitsi.meet.sdk.JitsiMeetActivity.onUserLeaveHint(JitsiMeetActivity.java:190)
at android.app.Activity.performUserLeaving(Activity.java:7628)
at android.app.Instrumentation.callActivityOnUserLeaving(Instrumentation.java:1475)
at android.app.ActivityThread.performUserLeavingActivity(ActivityThread.java:4178)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:4163)
at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1947)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7037)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
12-10 13:54:48.191 28667-28925/com.d3.d3xmpp E/JitsiConnectionService: endCall no connection for UUID: 74600621-04A0-4FC0-A149-885DB78FCE9B
12-10 13:54:48.464 28667-28667/com.d3.d3xmpp E/com.d3.d3xmpp: No package ID ff found for ID 0xffffffff.
12-10 13:54:48.735 28667-29001/com.d3.d3xmpp E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
12-10 13:54:48.837 28667-28925/com.d3.d3xmpp E/com.amplitude.api.AmplitudeClient: Argument context cannot be null in initialize()
12-10 13:54:48.861 28667-28925/com.d3.d3xmpp E/com.amplitude.api.AmplitudeClient: Argument context cannot be null in initialize()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.