shahen94 / react-native-video-processing

Native Video editing/trimming/compressing :movie_camera: library for React-Native
https://shahen94.github.io/react-native-video-processing/
MIT License
1.25k stars 325 forks source link

<Trimmer> rendering issues with tracker and thumb handles #163

Open davidpaulsson opened 6 years ago

davidpaulsson commented 6 years ago

Current Behavior

Attaching two screenshots to illustrate.

1 2

Expected Behavior

Your Environment

software version
react-native-video-processing 1.7.1 (but using this fork)
react-native 0.53.0
node 8.9.1
shahen94 commented 6 years ago

Good catch @davidpaulsson !

Right now have no time to work on this. I'll try to find a time fix this in next week.

Thanks.

srameshr commented 6 years ago

@shahen94 Could you fix this?

EdisonDevadoss commented 5 years ago

Can you explain how trimmer works?

        <Trimmer
              source={this.state.fileUri}
              height={150}
              width={300}
              onTrackerMove={e => console.log(e.currentTime)} // iOS only
              //currentTime={this.video.currentTime} // use this prop to set tracker position iOS only
              themeColor={"white"} // iOS only
              thumbWidth={30} // iOS only
              trackerColor={"green"} // iOS only
              onChange={e => console.log(e.startTime, e.endTime)}
              onTrackerMove={() => this.trimVideo()}
            />

Function

  trimVideo() {
    console.log("trimVideo is called!");
    const options = {
      startTime: 5,
      endTime: 20,
      saveToCameraRoll: true, // default is false // iOS only
      saveWithCurrentDate: true // default is false // iOS only
    };
    this.videoPlayerRef
      .trim(options)
      .then(newSource => console.log(newSource))
      .catch(console.warn);
  }
chai86 commented 5 years ago

I have the same issue. When i try to reach the left hand tracker, it tries to pull the screen across from left to right. Which means that the trimmer isn't correctly formatting to the screen width.

clock509 commented 4 years ago

This issue still exists.

jahanzaibbaloch99 commented 2 years ago

@davidpaulsson Hey David could i get a working example of trimmer component ?

Sivakumar415 commented 1 year ago

@davidpaulsson Hey David, Could you fix this issue?