summaryrefslogtreecommitdiffstats
path: root/TOOLS/osxbundle/mpv.app
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-09-07 15:37:02 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-09-07 15:37:02 +0200
commit494d40858351bbe4a83c98758440621d3fcdc5c9 (patch)
tree78b666f372a9d8b83cd835915acf0784e8886967 /TOOLS/osxbundle/mpv.app
parentb0797e8fe99bf5eb0b399ad2a57b62e8f0c71fed (diff)
downloadmpv-494d40858351bbe4a83c98758440621d3fcdc5c9.tar.bz2
mpv-494d40858351bbe4a83c98758440621d3fcdc5c9.tar.xz
macosx_application: handle mpv:// links
Pretty useful for people writing userscripts for web browsers. Links starting with 'mpv://' are forwarded to the mpv OSX bundle. The leading 'mpv://' is stripped from the recived url and the rest of the string is inserted as is in the playlist.
Diffstat (limited to 'TOOLS/osxbundle/mpv.app')
-rw-r--r--TOOLS/osxbundle/mpv.app/Contents/Info.plist10
1 files changed, 10 insertions, 0 deletions
diff --git a/TOOLS/osxbundle/mpv.app/Contents/Info.plist b/TOOLS/osxbundle/mpv.app/Contents/Info.plist
index 4c9340d808..152e118416 100644
--- a/TOOLS/osxbundle/mpv.app/Contents/Info.plist
+++ b/TOOLS/osxbundle/mpv.app/Contents/Info.plist
@@ -190,6 +190,16 @@
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleURLName</key>
+ <string>mpv Custom Protocol</string>
+ <key>CFBundleURLSchemes</key>
+ <array>
+ <string>mpv</string>
+ </array>
+ </dict>
+ <dict>
+ <key>CFBundleTypeRole</key>
+ <string>Viewer</string>
+ <key>CFBundleURLName</key>
<string>Streaming Protocol</string>
<key>CFBundleURLSchemes</key>
<array>