Commit e7cc2ed3 authored by Tim Byrne's avatar Tim Byrne Committed by Felix Paul Kühne

Add option for default playback speed

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 129cb7a5
......@@ -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>
......
......@@ -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>
......
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. */
......
......@@ -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"
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment