Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Video player fix for looping value on ios #496

Merged
merged 2 commits into from
Apr 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/video_player/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.1

* Fixed bug on video loop feature for ios.

## 0.5.0

* Added the constructor `VideoPlayerController.file`.
Expand Down
2 changes: 1 addition & 1 deletion packages/video_player/ios/Classes/VideoPlayerPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
[_players removeObjectForKey:@(textureId)];
[player dispose];
} else if ([@"setLooping" isEqualToString:call.method]) {
[player setIsLooping:[argsMap objectForKey:@"looping"]];
[player setIsLooping:[[argsMap objectForKey:@"looping"] boolValue]];
result(nil);
} else if ([@"setVolume" isEqualToString:call.method]) {
[player setVolume:[[argsMap objectForKey:@"volume"] doubleValue]];
Expand Down
2 changes: 1 addition & 1 deletion packages/video_player/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: video_player
description: Flutter plugin for displaying inline video with other Flutter
widgets on Android and iOS.
author: Flutter Team <[email protected]>
version: 0.5.0
version: 0.5.1
homepage: https://github.com/flutter/plugins/tree/master/packages/video_player

flutter:
Expand Down