abdelaziz-mahdy / flutter_meedu_videoplayer

Cross-Platform Video Player for flutter
https://abdelaziz-mahdy.github.io/flutter_meedu_videoplayer/
MIT License
132 stars 69 forks source link

Failed to download package #94

Closed JieNengi closed 1 year ago

JieNengi commented 1 year ago

flutter_meedu_videoplayer: git: url: https://github.com/zezo357/flutter_meedu_videoplayer

image

I tried flutter clean。

abdelaziz-mahdy commented 1 year ago

May I ask why are you using the GitHub branch? And which one so I can test it

JieNengi commented 1 year ago

May I ask why are you using the GitHub branch? And which one so I can test it

  • I recommend updating to latest flutter release since It fixed alot of bugs related to building media_kit

use “master”。

pub.dev last version is flutter_meedu_videoplayer: ^4.2.10,No onLongPress that I need 。

abdelaziz-mahdy commented 1 year ago

Ok got you,

Did you set the path to package?

And you should use the pr Branch, since I didn't merge the changes yet

JieNengi commented 1 year ago

no.

abdelaziz-mahdy commented 1 year ago

It should be something like this, I don't have access to my development machine right now so I can't get it all

dependencies:   
     flutter_meedu_videoplayer:
       git:
         url: https://github.com/zezo357/flutter_meedu_videoplayer
         ref: PR BRANCH NAME 
         path: package 
JieNengi commented 1 year ago

It should be something like this, I don't have access to my development machine right now so I can't get it all

dependencies:   
     flutter_meedu_videoplayer:
       git:
         url: https://github.com/zezo357/flutter_meedu_videoplayer
         ref: PR BRANCH NAME 
         path: package 

It works fine now, but I haven't found a way to do it with onLongPress.

abdelaziz-mahdy commented 1 year ago

When I have access to my machine, I will give you the pubspec and how to use it

abdelaziz-mahdy commented 1 year ago

i have merged the pr it should work with this (you will have to set onLongPressSpeedUp to true in your enabled controls)

dependencies:   
     flutter_meedu_videoplayer:
       git:
         url: https://github.com/zezo357/flutter_meedu_videoplayer
         path: package