Mac 多媒体快捷键:BeardedSpice

jopen 9年前

Bearded Spice 允许你使用 Mac 键盘上的多媒体快捷键控制基于 Web 的多媒体播放器(比如 SoundCloud,油Tube 等等)和一些原生应用。

BeardedSpice 特性:智能模式,自动更新,快捷键等等。

Mac 多媒体快捷键:BeardedSpice

Mac 多媒体快捷键:BeardedSpice

多媒体策略:

@interface MediaStrategy : NSObject  /**  Returns name of that media stratery.   */  -(NSString *) displayName; // Required override in subclass.  /**  Checks tab that it is accepted this strategy.  */  -(BOOL) accepts:(TabAdapter *)tab; // Required override in subclass.  /**  Checks tab that it is in the playback state.  */  - (BOOL)isPlaying:(TabAdapter *)tab;  /**  Returns track information object from tab.  */  - (Track *)trackInfo:(TabAdapter *)tab;  /**  Returns javascript code of the play/pause toggle.  */  -(NSString *) toggle; // Required override in subclass.  /**  Returns javascript code of the previous track action.  */  -(NSString *) previous;  /**  Returns javascript code of the next track action.  */  -(NSString *) next;  /**  Returns javascript code of the pausing action.  Used mainly for pausing before switching active tabs.  */  -(NSString *) pause; // Required override in subclass.  /**  Returns javascript code of the "favorite" toggle.  */  -(NSString *) favorite;  /**  Helper method for obtaining album artwork from url string  */  - (NSImage *)imageByUrlString:(NSString *)urlString;  @end

项目主页:http://www.open-open.com/lib/view/home/1442543872883