Code Monkey home page Code Monkey logo

Comments (8)

marinaserranomontes avatar marinaserranomontes commented on June 12, 2024

Hi @AnkanDey88,

Using Tokbox archiving feature you can store your recorded videos to:

  1. Amazon S3 bucket or Windows Azure container or
  2. OpenTok cloud

You can download the archives from both the locations when archives are successfully uploaded. More info here: https://tokbox.com/developer/guides/archiving/

from opentok-android-sdk-samples.

AnkanDey88 avatar AnkanDey88 commented on June 12, 2024

Hi @marinaserranomontes

Thank you for letting me know on this. But is there any other way to save local video instead of the Tokbox archiving feature. May be we can use MediaRecorder.
Please let me know on this.

from opentok-android-sdk-samples.

marinaserranomontes avatar marinaserranomontes commented on June 12, 2024

Hi @AnkanDey88,

Yes, you could try to use MediaRecorder with TextureViews.

from opentok-android-sdk-samples.

AnkanDey88 avatar AnkanDey88 commented on June 12, 2024

Hi @marinaserranomontes

I have tried to use this. But no result. When I use MediaRecorder, then camera freezes and opponent sees my still image.
If it is possible to use MediaRecorder with TextureViews then please give me any tutorials for that.

Thanks in advance.

from opentok-android-sdk-samples.

marinaserranomontes avatar marinaserranomontes commented on June 12, 2024

Hi @AnkanDey88,

I think you could try 2 approaches:

from opentok-android-sdk-samples.

AnkanDey88 avatar AnkanDey88 commented on June 12, 2024

Hi @marinaserranomontes

I did exactly the same thing which you mentioned in 2nd point. But I'm facing one problem is that, when I start video recording using MediaRecorder I have to unlock the camera first and so that the camera stream freezes for TokBox.

mediaRecorder = new MediaRecorder();
mediaRecorder.setCamera(myCamera); // This camera object got fromCustomVideoCapturer
myCamera.unlock();
mediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
mediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
mediaRecorder.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_LOW));
mediaRecorder.setOutputFile("/sdcard/video.mp4");
mediaRecorder.setMaxDuration(60000); // Set max duration 60 sec.
mediaRecorder.setMaxFileSize(5000000); // Set max file size 5M
try {
mediaRecorder.prepare();
mediaRecorder.start();
} catch (IllegalStateException e) {
return false;
} catch (IOException e) {
return false;
}

from opentok-android-sdk-samples.

marinaserranomontes avatar marinaserranomontes commented on June 12, 2024

Hi @AnkanDey88 ,

To use TextureViews you need to indicate it in the SessionOptions.
https://tokbox.com/developer/sdks/android/reference/com/opentok/android/Session.SessionOptions.html

Eg:
mSession = new Session(MainActivity.this, APIKEY, SESSION_ID, new Session.SessionOptions() {

  @OverRide
  public boolean useTextureViews() {
  return true;
  }
  });

from opentok-android-sdk-samples.

marinaserranomontes avatar marinaserranomontes commented on June 12, 2024

I’m closing this issue because it has been inactive for a few weeks. This probably means that it is not reproducible or it has been fixed.

Please reopen if you still encounter this issue You can also contribute directly by providing a patch.

Thank you!

from opentok-android-sdk-samples.

Related Issues (20)

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.