However, as an optimisation, Spotify registers "spotify://" as scheme to be handled by Spotify, so a string key value of "Association" and "spotify" works. You can create a string key value here of "ShellExecute" and the path to your spotify. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\16 The behaviour of the keys are defined here: There's a standard disclaimer with editing the registry - be careful, be precise, if you break it you get to keep both pieces. I've just been faced with this same problem and managed to solve it by modifying the registry. Here's the link to the original discussion: I found it on the spotify forum, and thought that it might help you. Media_Prev::ControlSend,, ^b, Windows Media Playerįor more help with AutoHotkey scripting, try their documentation page.ĭisclamer! This is not my respons, it's Matt_H's. Media_Next::ControlSend,, ^f, Windows Media Player Media_Play_Pause::ControlSend,, ^p, Windows Media Player His working solution looks like this: #IfWinExist ahk_class iTunes Or, as Rich ultimately ended up doing, you may need to send commands to the window specifically instead of just giving it focus and sending them globally. Navigate to about:config from your address bar. IfWinExist ahk_class MozillaUIWindowClass Working on YouTube and YouTube Music In your Firefox media keys may be disabled. They also have a utility called Window Spy for getting any needed information about the destination window, such as name or handle. In your case, add a copy of the snippet into your script for each key or key combo you wish to capture and modify the MozillaUIWindowClass to whatever app you wish to receive the keystrokes. In their example (shown below), they are capturing Ctrl L and sending it to Firefox. I'd start with something like the accepted answer in this Stack Overflow post which solves a similar problem of intercepting a key press globally and sending it to a specific window. This means that the CDMCaps copy of the keys that are usable is wrong, and so if the media with the same keys is reloaded with the same MediaKeys, Firefox will assume that the keys are usable before the license for the keys has been re-negotiated, and so decryption will fail. Path samples/drm/clearkey.If you're up to putting some work into it, you might try AutoHotkey, which allows you to script and automate lots of things on your PC. I am using the example from dashjs samples on this repo. My encryption works on firefox which means I encryted it right. Debug.js:168 Native video element event: loadedmetadata Debug.js:168 Top quality audio index has changed from undefined to 0 Debug.js:168 Top quality video index has changed from undefined to 2 Debug.js:168 DRM: KeySystem Access Denied! - Error selecting key system! - Error selecting keys system (org.w3.clearkey)! Could not create MediaKeys - TODO doLog Debug.js:168 fatal Debug.js:123 onProtectionError Stream.js:353 (anonymous) EventBus.js:88 trigger EventBus.js:88 onKeySystemSelected ProtectionController.js:538 (anonymous) EventBus.js:88 trigger EventBus.js:88 (anonymous) ProtectionModel_21Jan2015.js:158 Promise.catch (async) selectKeySystem ProtectionModel_21Jan2015.js:157 onKeySystemAccessComplete ProtectionController.js:496 (anonymous) EventBus.js:88 trigger EventBus.js:88 (anonymous) ProtectionModel_21Jan2015.js:321 Promise.then (async) (anonymous) ProtectionModel_21Jan2015.js:315 requestKeySystemAccessInternal ProtectionModel_21Jan2015.js:330 requestKeySystemAccess ProtectionModel_21Jan2015.js:142 (anonymous) ProtectionController.js:547 selectKeySystem ProtectionController.js:547 onNeedKey ProtectionController.js:807 (anonymous) EventBus.js:88 trigger EventBus.js:88 handleEvent ProtectionModel_21Jan2015.js:354 Debug.js:168 Native video element event: play Debug.js:168 Native video element event: waiting DRM: KeySystem Access Granted (org.w3.clearkey)! Selecting key system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |