Comments (9)
As Github removed the private message feature, I've added you on LinkedIn
from pod_player.
How to solve it?@newtaDev
from pod_player.
Can you add reproducible steps
from pod_player.
class VideoPlayerControllerNotifier extends ChangeNotifier {
PodPlayerController? _controller;
PodPlayerController? get controller => _controller;
String? videoValue;
setVideoValue(value) {
videoValue = value;
notifyListeners();
}
init(videourl) {
if (_controller == null || videourl != videoValue) {
_controller = PodPlayerController(
playVideoFrom: PlayVideoFrom.youtube(videourl),
podPlayerConfig: const PodPlayerConfig(
autoPlay: true,
isLooping: false,
videoQualityPriority: [1080, 720, 360]))
..initialise().then((value) {
_controller!.play();
setVideoValue(videourl);
print(videoValue);
}).onError((error, stackTrace) {
print('error : $error');
});
}
}
void stopPlay() {
if (_controller != null) {
_controller!.pause();
}
}
}
final videoProvider = ChangeNotifierProvider.autoDispose((ref) {
return VideoPlayerControllerNotifier();
});
i am using this stopPlay() in my ui and this is used to control manyally but default video player stop function is also not working. my code for video player is ... in init state i am calling it like this void initState() {
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
ref.watch(videoProvider).init(widget.videourl);
}); } and this is my video player
PodVideoPlayer(
controller: ref.watch(videoProvider).controller!,
)
from pod_player.
@newtaDev please solve this issue, video pause is working after clicking pause button 2 3 times .
from pod_player.
Hi @1041harpreet, could you solve this?
I have the same issue. Coincidence or not I'm also implementing a miniplayer like you
from pod_player.
@adoniasdantas hi, there were other errors while implementing pod player , so i used simple video player and chewie with mini player. for playling youtube videos you can use youtube explode pacakge,
from pod_player.
@1041harpreet Thanks for your comment
Is it possible to send some sample on how you implemented your mini player like YouTube?
i'm trying mini_player but it doesn't work for full screen either
from pod_player.
@adoniasdantas yes , i can share you mine code. message me in personal.
from pod_player.
Related Issues (20)
- Full-screen mode isn't functioning correctly on iOS, but it works fine on Android. HOT 1
- Vimeo videos not working: Missing "progressive" HOT 18
- VIMEO API ERROR: NoSuchMethodError: The getter 'length' was called on null. HOT 7
- VIMEO API ERROR HOT 2
- YOUTUBE API ERROR: ClientException: XMLHttpRequest error., HOT 1
- after upgrading to v0.2.2 sound is not coming in the video HOT 8
- Error Playing Vimeo Video with Id and Hashed HOT 3
- Localized delegates "RTL"
- Show/Hide SubTitle
- ===== VIMEO API ERROR: type 'Null' is not a subtype of type 'List<dynamic>' in type cast ========== HOT 3
- Unhandled Exception: PlatformException(VideoError, Video player had error com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.64001F, -1, null, [848, 480, 29.970388], [-1, -1]), format_supported=YES, null, null)
- Some Vimeo videos have no audio HOT 2
- Error: Member not found: 'VideoPlayerController.networkUrl'
- Any Update for vimeo audio player not working ? HOT 2
- video ads ka karo bro in future flutter_bloc like ott player
- Video pause Icon is not updating When pausing vedio with PodPlayerController pause method.
- enableFullScreen LateInitializationError
- Vimeo private videos
- Video player control ui change
- Problem after build HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pod_player.