Giter VIP home page Giter VIP logo

Comments (7)

a914-gowtham avatar a914-gowtham commented on May 25, 2024 1

@akashmi Try adding this in your proguard-rules

-keepclassmembers enum * { *; }

from android-video-trimmer.

a914-gowtham avatar a914-gowtham commented on May 25, 2024

@sandilya28 Can you share the code that you used to open the activity

from android-video-trimmer.

sandilya28 avatar sandilya28 commented on May 25, 2024

For picking the video from the gallery:

    private fun showVideoPickerActivity() {
        val mimetypes = arrayOf("image/*", "video/*")
        Intent().apply {
            action = Intent.ACTION_PICK
            type = "video/*"
            putExtra(Intent.EXTRA_MIME_TYPES, mimetypes)
            resultLauncher.launch(this)
        }
    }

    private val resultLauncher = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { result ->
        if (result.resultCode == Activity.RESULT_OK) {
            val data : Intent? = result.data
            val videoUri = data?.data

            TrimVideo.activity(videoUri.toString())
                .setHideSeekBar(true)
                .setMinToMax(10, 45)
                .start(this, startForResult)
        }
    }

Here it is @a914-gowtham.

from android-video-trimmer.

a914-gowtham avatar a914-gowtham commented on May 25, 2024

@sandilya28 could you try this one

TrimVideo.activity(videoUri.toString())
                .setTrimType(TrimType.MIN_MAX_DURATION)
                .setHideSeekBar(true)
                .setMinToMax(10, 45)
                .start(this, startForResult)

from android-video-trimmer.

sandilya28 avatar sandilya28 commented on May 25, 2024

Sorry, @a914-gowtham unfortunately the same issue persists.

from android-video-trimmer.

a914-gowtham avatar a914-gowtham commented on May 25, 2024
  1. Are you using samsung device?
  2. Is this only happen in the release build?

from android-video-trimmer.

sandilya28 avatar sandilya28 commented on May 25, 2024
  1. Yes, Galaxy A50.
  2. Yes, this is happening only in the release build.

from android-video-trimmer.

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.