Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
e7cc2ed3
Commit
e7cc2ed3
authored
Apr 22, 2014
by
Tim Byrne
Committed by
Felix Paul Kühne
Apr 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option for default playback speed
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
129cb7a5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
0 deletions
+55
-0
Resources/Settings.bundle/Root.inApp.plist
Resources/Settings.bundle/Root.inApp.plist
+26
-0
Resources/Settings.bundle/Root.plist
Resources/Settings.bundle/Root.plist
+26
-0
Resources/Settings.bundle/en.lproj/Root.strings
Resources/Settings.bundle/en.lproj/Root.strings
+0
-0
Sources/VLCConstants.h
Sources/VLCConstants.h
+1
-0
Sources/VLCMovieViewController.m
Sources/VLCMovieViewController.m
+2
-0
No files found.
Resources/Settings.bundle/Root.inApp.plist
View file @
e7cc2ed3
...
...
@@ -66,6 +66,32 @@
<key>
Type
</key>
<string>
PSToggleSwitchSpecifier
</string>
</dict>
<dict>
<key>
Type
</key>
<string>
PSMultiValueSpecifier
</string>
<key>
Title
</key>
<string>
SETTINGS_PLAYBACK_SPEED_DEFAULT
</string>
<key>
Key
</key>
<string>
playback-speed
</string>
<key>
DefaultValue
</key>
<real>
1
</real>
<key>
Titles
</key>
<array>
<string>
0.50x
</string>
<string>
1.00x
</string>
<string>
1.50x
</string>
<string>
1.75x
</string>
<string>
2.00x
</string>
</array>
<key>
Values
</key>
<array>
<real>
0.5
</real>
<real>
1
</real>
<real>
1.5
</real>
<real>
1.75
</real>
<real>
2
</real>
</array>
</dict>
<dict>
<key>
Type
</key>
<string>
PSGroupSpecifier
</string>
...
...
Resources/Settings.bundle/Root.plist
View file @
e7cc2ed3
...
...
@@ -56,6 +56,32 @@
<key>
Type
</key>
<string>
PSToggleSwitchSpecifier
</string>
</dict>
<dict>
<key>
Type
</key>
<string>
PSMultiValueSpecifier
</string>
<key>
Title
</key>
<string>
SETTINGS_PLAYBACK_SPEED_DEFAULT
</string>
<key>
Key
</key>
<string>
playback-speed
</string>
<key>
DefaultValue
</key>
<real>
1
</real>
<key>
Titles
</key>
<array>
<string>
0.50x
</string>
<string>
1.00x
</string>
<string>
1.50x
</string>
<string>
1.75x
</string>
<string>
2.00x
</string>
</array>
<key>
Values
</key>
<array>
<real>
0.5
</real>
<real>
1
</real>
<real>
1.5
</real>
<real>
1.75
</real>
<real>
2
</real>
</array>
</dict>
<dict>
<key>
Type
</key>
<string>
PSGroupSpecifier
</string>
...
...
Resources/Settings.bundle/en.lproj/Root.strings
View file @
e7cc2ed3
B
/* A single strings file, whose title is specified in your preferences schema. The strings files provide the localized content to display to the user for each of your preferences. */
...
...
Sources/VLCConstants.h
View file @
e7cc2ed3
...
...
@@ -42,6 +42,7 @@
#define kVLCSettingPlaybackGestures @"EnableGesturesToControlPlayback"
#define kVLCSettingFTPTextEncoding @"ftp-text-encoding"
#define kVLCSettingFTPTextEncodingDefaultValue @(5) // ISO Latin 1
#define kVLCSettingPlaybackSpeedDefaultValue @"playback-speed"
#define kVLCShowRemainingTime @"show-remaining-time"
#define kVLCRecentURLs @"recent-urls"
...
...
Sources/VLCMovieViewController.m
View file @
e7cc2ed3
...
...
@@ -418,6 +418,8 @@
_mediaPlayer
=
_listPlayer
.
mediaPlayer
;
[
_mediaPlayer
setDelegate
:
self
];
[
_mediaPlayer
setDrawable
:
self
.
movieView
];
if
([[
defaults
objectForKey
:
kVLCSettingPlaybackSpeedDefaultValue
]
floatValue
]
!=
0
)
[
_mediaPlayer
setRate
:
[[
defaults
objectForKey
:
kVLCSettingPlaybackSpeedDefaultValue
]
floatValue
]];
if
([[
defaults
objectForKey
:
kVLCSettingDeinterlace
]
intValue
]
!=
0
)
[
_mediaPlayer
setDeinterlaceFilter
:
@"blend"
];
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment