QuickBlox / quickblox-react-native-samples

quickblox-react-native-samples
BSD 3-Clause "New" or "Revised" License
17 stars 27 forks source link

VideoCall not working #26

Closed Nirmal-ICPL closed 2 years ago

Nirmal-ICPL commented 2 years ago

Hello,

I 'm using webrtc-sample project and done all the required setup. I'm able to run the application. After login, i'm able to select user and then nothing happens.

How can i verify video call feature? pls check below snap

IMG_DAD47E9F2D1B-1

Nirmal-ICPL commented 2 years ago

Hello,

Can anybody help me here? Am i doing something wrong or miss something?

ghost commented 2 years ago

Hello @Nirmal-ICPL , From the screenshot you've provided it seems that not all images were loaded (or not displayed for some reason). Could you please confirm that this screenshot was taken on a physical device? Have you tried to reload application? Have you made any changes to sample application code?

Nirmal-ICPL commented 2 years ago

Hello @oleksandr-shvetsov-qb

Thanks for the update !!

Yes, I'm running app on iPhone-6S with iOS-14.6

I try to reload the app and re-run the app after cleaning project but getting the same issue.

Do you have any idea why images gets not loaded ??

P.S.- I have made one change in PodFile due to i was facing issue and added the function at bottom of podfile too. I think it will not have impact for this issue.

`

post_install do |installer|

Fix for XCode 12.5

find_and_replace("../node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm",
"_initializeModules:(NSArray<id<RCTBridgeModule>> *)modules", "_initializeModules:(NSArray<Class> *)modules")

find_and_replace("../node_modules/react-native/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm",
    "RCTBridgeModuleNameForClass(module))", "RCTBridgeModuleNameForClass(Class(module)))")

end

def find_and_replace(dir, findstr, replacestr) Dir[dir].each do |name| text = File.read(name) replace = text.gsub(findstr,replacestr) if text != replace puts "Fix: " + name File.open(name, "w") { |file| file.puts replace } STDOUT.flush end end Dir[dir + '*/'].each(&method(:find_and_replace)) end

`

ghost commented 2 years ago

@Nirmal-ICPL Could you please confirm that you have tried to reload application? I mean not rebuild, but only reload static assets for the application by pressing "Reload" in developer menu?

Nirmal-ICPL commented 2 years ago

@oleksandr-shvetsov-qb

Yes, I tried to reload the page. That buttons are not coming i.e. not able to view call button images. But i pressed at that area and was able to verify call feature.

ghost commented 2 years ago

@Nirmal-ICPL You can try to change paths in src/images.js to the relative paths to see if this helps.

Nirmal-ICPL commented 2 years ago

Yes, it works now..Thanks