VLCConstants.h 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /*****************************************************************************
  2. * VLCConstants.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2013-2015 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Felix Paul Kühne <fkuehne # videolan.org>
  9. * Jean-Romain Prévost <jr # 3on.fr>
  10. *
  11. * Refer to the COPYING file of the official project for license.
  12. *****************************************************************************/
  13. #define kVLCVersionCodename @"All Along the Watchtower"
  14. #define kVLCSettingPasscodeOnKey @"PasscodeProtection"
  15. #define kVLCSettingPasscodeAllowTouchID @"AllowTouchID"
  16. #define kVLCSettingPasscodeAllowFaceID @"AllowFaceID"
  17. #define kVLCThemeDidChangeNotification @"themeDidChangeNotfication"
  18. #define kVLCSettingAppTheme @"darkMode"
  19. #define kVLCOptimizeItemNamesForDisplay @"MLDecrapifyTitles"
  20. #define kVLCSettingAbout @"about"
  21. #define kVLCAutomaticallyPlayNextItem @"AutomaticallyPlayNextItem"
  22. #define kVLCSettingContinueAudioInBackgroundKey @"BackgroundAudioPlayback"
  23. #define kVLCSettingStretchAudio @"audio-time-stretch"
  24. #define kVLCSettingStretchAudioOnValue @"1"
  25. #define kVLCSettingStretchAudioOffValue @"0"
  26. #define kVLCSettingTextEncoding @"subsdec-encoding"
  27. #define kVLCSettingTextEncodingDefaultValue @"Windows-1252"
  28. #define kVLCSettingSkipLoopFilter @"avcodec-skiploopfilter"
  29. #define kVLCSettingSkipLoopFilterNone @(0)
  30. #define kVLCSettingSkipLoopFilterNonRef @(1)
  31. #define kVLCSettingSaveHTTPUploadServerStatus @"isHTTPServerOn"
  32. #define kVLCSettingSubtitlesFont @"quartztext-font"
  33. #define kVLCSettingSubtitlesFontDefaultValue @"HelveticaNeue"
  34. #define kVLCSettingSubtitlesFontSize @"quartztext-rel-fontsize"
  35. #define kVLCSettingSubtitlesFontSizeDefaultValue @"16"
  36. #define kVLCSettingSubtitlesBoldFont @"quartztext-bold"
  37. #define kVLCSettingSubtitlesBoldFontDefaultValue @NO
  38. #define kVLCSettingSubtitlesFontColor @"quartztext-color"
  39. #define kVLCSettingSubtitlesFontColorDefaultValue @"16777215"
  40. #define kVLCSettingSubtitlesFilePath @"sub-file"
  41. #define kVLCSettingDeinterlace @"deinterlace"
  42. #define kVLCSettingDeinterlaceDefaultValue @(0)
  43. #define kVLCSettingHardwareDecoding @"codec"
  44. #define kVLCSettingHardwareDecodingDefault @""
  45. #define kVLCSettingNetworkCaching @"network-caching"
  46. #define kVLCSettingNetworkCachingDefaultValue @(999)
  47. #define kVLCSettingsDecrapifyTitles @"MLDecrapifyTitles"
  48. #define kVLCSettingVolumeGesture @"EnableVolumeGesture"
  49. #define kVLCSettingPlayPauseGesture @"EnablePlayPauseGesture"
  50. #define kVLCSettingBrightnessGesture @"EnableBrightnessGesture"
  51. #define kVLCSettingSeekGesture @"EnableSeekGesture"
  52. #define kVLCSettingCloseGesture @"EnableCloseGesture"
  53. #define kVLCSettingVariableJumpDuration @"EnableVariableJumpDuration"
  54. #define kVLCSettingVideoFullscreenPlayback @"AlwaysUseFullscreenForVideo"
  55. #define kVLCSettingContinuePlayback @"ContinuePlayback"
  56. #define kVLCSettingContinueAudioPlayback @"ContinueAudioPlayback"
  57. #define kVLCSettingFTPTextEncoding @"ftp-text-encoding"
  58. #define kVLCSettingFTPTextEncodingDefaultValue @(5) // ISO Latin 1
  59. #define kVLCSettingPlaybackSpeedDefaultValue @"playback-speed"
  60. #define kVLCSettingWiFiSharingIPv6 @"wifi-sharing-ipv6"
  61. #define kVLCSettingWiFiSharingIPv6DefaultValue @(NO)
  62. #define kVLCSettingEqualizerProfile @"EqualizerProfile"
  63. #define kVLCSettingEqualizerProfileDisabled @"EqualizerDisabled"
  64. #define kVLCSettingEqualizerProfileDefaultValue @(0)
  65. #define kVLCSettingPlaybackForwardSkipLength @"playback-forward-skip-length"
  66. #define kVLCSettingPlaybackForwardSkipLengthDefaultValue @(60)
  67. #define kVLCSettingPlaybackBackwardSkipLength @"playback-forward-skip-length"
  68. #define kVLCSettingPlaybackBackwardSkipLengthDefaultValue @(60)
  69. #define kVLCSettingOpenAppForPlayback @"open-app-for-playback"
  70. #define kVLCSettingOpenAppForPlaybackDefaultValue @YES
  71. #define kVLCShowRemainingTime @"show-remaining-time"
  72. #define kVLCRecentURLs @"recent-urls"
  73. #define kVLCRecentURLTitles @"recent-url-titles"
  74. #define kVLCPrivateWebStreaming @"private-streaming"
  75. #define kVLChttpScanSubtitle @"http-scan-subtitle"
  76. #define kVLCHTTPUploadDirectory @"Upload"
  77. #define kSupportedFileExtensions @"\\.(3g2|3gp|3gp2|3gpp|amv|asf|avi|bik|bin|crf|divx|drc|dv|evo|f4v|flv|gvi|gxf|iso|m1v|m2v|m2t|m2ts|m4v|mkv|mov|mp2|mp2v|mp4|mp4v|mpe|mpeg|mpeg1|mpeg2|mpeg4|mpg|mpv2|mts|mtv|mxf|mxg|nsv|nuv|ogg|ogm|ogv|ogx|ps|rec|rm|rmvb|rpl|thp|tod|ts|tts|txd|vlc|vob|vro|webm|wm|wmv|wtv|xesc)$"
  78. #define kSupportedSubtitleFileExtensions @"\\.(cdg|idx|srt|sub|utf|ass|ssa|aqt|jss|psb|rt|smi|txt|smil|stl|usf|dks|pjs|mpl2|mks|vtt|ttml|dfxp)$"
  79. #define kSupportedAudioFileExtensions @"\\.(3ga|669|a52|aac|ac3|adt|adts|aif|aifc|aiff|amb|amr|aob|ape|au|awb|caf|dts|flac|it|kar|m4a|m4b|m4p|m5p|mid|mka|mlp|mod|mpa|mp1|mp2|mp3|mpc|mpga|mus|oga|ogg|oma|opus|qcp|ra|rmi|s3m|sid|spx|tak|thd|tta|voc|vqf|w64|wav|wma|wv|xa|xm)$"
  80. #define kSupportedPlaylistFileExtensions @"\\.(asx|b4s|cue|ifo|m3u|m3u8|pls|ram|rar|sdp|vlc|xspf|wax|wvx|zip|conf)$"
  81. #define kSupportedProtocolSchemes @"(rtsp|mms|mmsh|udp|rtp|rtmp|sftp|ftp|smb)$"
  82. #define kVLCDarwinNotificationNowPlayingInfoUpdate @"org.videolan.ios-app.nowPlayingInfoUpdate"
  83. #if TARGET_IPHONE_SIMULATOR
  84. #define WifiInterfaceName @"en1"
  85. #else
  86. #define WifiInterfaceName @"en0"
  87. #endif
  88. #define kVLCMigratedToUbiquitousStoredServerList @"kVLCMigratedToUbiquitousStoredServerList"
  89. #define kVLCStoredServerList @"kVLCStoredServerList"
  90. #define kVLCStoreDropboxCredentials @"kVLCStoreDropboxCredentials"
  91. #define kVLCStoreOneDriveCredentials @"kVLCStoreOneDriveCredentials"
  92. #define kVLCStoreBoxCredentials @"kVLCStoreBoxCredentials"
  93. #define kVLCStoreGDriveCredentials @"kVLCStoreGDriveCredentials"
  94. #define kVLCUserActivityPlaying @"org.videolan.vlc-ios.playing"
  95. #define kVLCApplicationShortcutLocalVideo @"ApplicationShortcutLocalVideo"
  96. #define kVLCApplicationShortcutLocalAudio @"ApplicationShortcutLocalAudio"
  97. #define kVLCApplicationShortcutNetwork @"ApplicationShortcutNetwork"
  98. #define kVLCApplicationShortcutPlaylist @"ApplicationShortcutPlaylist"
  99. /* LEGACY KEYS, DO NOT USE IN NEW CODE */
  100. #define kVLCFTPServer @"ftp-server"
  101. #define kVLCFTPLogin @"ftp-login"
  102. #define kVLCFTPPassword @"ftp-pass"
  103. #define kVLCPLEXServer @"plex-server"
  104. #define kVLCPLEXPort @"plex-port"