Coder Social home page Coder Social logo

learn-opentok-android's People

Contributors

quanhua92 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

learn-opentok-android's Issues

Unable to call triggerUSBCam() OR updateDevices() method on MainActivity.java

I have tried to call some methods of CameraDialog.java in my MainActivity.java but unable to do so and got some error.

Here is the code which I have tried:-
CameraDialog camdiag = new CameraDialog();
camdiag.triggerUSBCam();

This is the error which I have got during run:-
Attempt to invoke virtual method 'java.lang.Object android.widget.Spinner.getSelectedItem()' on a null object reference

Here is the second code which I have tried:-
CameraDialog camdiag = new CameraDialog();
camdiag.updateDevices();

This is the error which I have got during run:-
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference

Actually, I just want to bypass this camera dialog.
If there is any other way then please let me know.

Thanks-

Activity is not abstract and does not override abstract method onDialogResult(boolean) in CameraDialogParent

I'm getting following error during build....

Error: /Volumes/Data/myApp/sampleUSBCamera/platforms/android/gradlew: Command failed with exit code 1 Error output:
/Volumes/Data/myApp/sampleUSBCamera/platforms/android/src/com/sampleusb/MainActivityX.java:43: error: MainActivityX is not abstract and does not override abstract method onDialogResult(boolean) in CameraDialogParent
public class MainActivityX extends AppCompatActivity implements Session.SessionListener, PublisherKit.PublisherListener, SubscriberKit.SubscriberListener, CameraDialog.CameraDialogParent{
^
/Volumes/Data/myApp/sampleUSBCamera/platforms/android/src/com/sampleusb/MainActivityX.java:269: error: <anonymous com.sampleusb.MainActivityX$1> is not abstract and does not override abstract method onCancel(UsbDevice) in OnDeviceConnectListener
private final USBMonitor.OnDeviceConnectListener mOnDeviceConnectListener = new USBMonitor.OnDeviceConnectListener() {
^
/Volumes/Data/myApp/sampleUSBCamera/platforms/android/src/com/sampleusb/MainActivityX.java:333: error: method does not override or implement a method from a supertype
@OverRide
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Use UVCCamera without pop menu?

I want to use the USB Camera without showing pop menu. But when I remove the the menu from the code then the USB Camera does not work.

So, how can I remove the pop menu so that the USB Camera still works.

How to initialize the project

Dear Sir,

According to the title above, may I know how should I initialize the project?
Sorry, I am new to this field.
I would also like to ask, for your knowledge about OpenTok, do you think is it possible to capture laptop's webcam view and live stream it to Android apps with OpenTok?

Thank you

How can I use custom_webcam_capturer code in Eclipse?

I have created a project in Eclipse and I want to want to use custom_webcam_capturer code in that project but I do not know how can I use this Android Studio code in Eclipse project without any issue.

Please help!!!

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.