a914-gowtham / android-video-trimmer

Helps to trim local videos with compress option on Android applications using Exoplayer 2 and FFmpeg.
Other
380 stars 117 forks source link

Conflictins with exoplayer2.ExoplayerFactory class #53

Closed isroilov-sh closed 3 years ago

isroilov-sh commented 3 years ago

after adding dependency to gradle and sync, cant import exoplayer2.ExoplayerFactory to classes. also added dependency exolayer 2.10.4, changeing version not hepls

a914-gowtham commented 3 years ago

Hi @isroilov-sh , I can reproduce the issue. I've used exoplayer:exoplayer:2.14.0 in the current version of the library. So, you could try using implementation 'com.google.android.exoplayer:exoplayer:2.14.0'

Latest version of exoplayer:2.14.1 will be available in the next release

isroilov-sh commented 3 years ago

DeepinScreenshot_select-area_20210624080943 DeepinScreenshot_select-area_20210624080913

isroilov-sh commented 3 years ago

when I add implement video-trimmer and make sync project, ExoPlayerFactory become unimportable

isroilov-sh commented 3 years ago

qwe

isroilov-sh commented 3 years ago

with video-trimmer 1.4.0 working

a914-gowtham commented 3 years ago

I tried removing video-trimmer dependency and kept the exoplayer-2.14.0 . still, I can't import exoplayerFactory, seems it has been removed from the exoplayer.

a914-gowtham commented 3 years ago

Can you try the same?

  1. remove the video-trimmer dependency
  2. try to import exoplayFactory with exoplayer-2.14.0
isroilov-sh commented 3 years ago

Just create SimpleExoplayer from SimpleExoplayer.Builder() and removed unimportable ExoplayerFactory class.