GithubHelp home page GithubHelp logo

barakaaka1only / barakalyrics-for-radiant-player Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 40 KB

BarakaLyrics adds lyrics into Radiant Player allowing songs that are played to get lyrics for said song(s).

CSS 10.75% HTML 56.10% Objective-C 33.15%

barakalyrics-for-radiant-player's Introduction

BarakaLyrics For Radiant Player

BarakaLyrics adds lyrics into Radiant Player allowing songs that are played to get lyrics for said song(s).

I've included all source code and SVG images

How to's:

Take a look at file RadiantPlayerGoogleSample.html to see how everything is done this is a sample to ensure testing is good to go.

The important files are BarakaModal.css and BarakaRadiant.js

BarakaRadiant.js handles all the UI important things on Radiant Player

[this is not bundled with gmusic-utils for the on change events refer to my added additions on Radiant Player itself on the main.js]

BarakaModal.css of-course is the styling for BarakaLyrics

When modifying ensure that the BarakaModal.css changes are inset just as BarakaModal.html because it will be minified

and added into BarakaRadiant.js from block

var radiant = BarakaRadiant.create('');

Adding your changes into Radiant Player requires that BarakaRadiant.js minified and all characters are escaped

USE http://bernhardhaeussner.de/odd/json-escape/ after minifying

NSString *var =@"var BarakaLyrics = {};";

The NSString above is the main var and should include the BarakaLyrics object first hand. When characters are escaped after {}; in the NSString paste in the escaped code and you will be good to go.

Extending Lyric services:

@interface BarakaLyrics is where the magic happens via findBarakaLyrics constructors

Say i wanted to add in a service called GoogleLyrics

Header file and a controller file (.m) needs to be created

name BarakaLyricGoogle.h BarakaLyricGoogle.m

All new services are inherited by interface BarakaLyrics by making a unique @interface that is abstract to BarakaLyrics

//

// BarakaLyricGoogle.h

// Baraka Lyrics For Radiant Player

// Main Header For Google Lyrics

// @date April 12th, 2016

#import "BarakaLyrics.h"

@interface BarakaLyricGoogle : BarakaLyrics

@end

in our .m file we will make an implementation to BarakaLyricGoogle which will add-on to BarakaLyrics by findBarakaLyrics and whatClass

whatClass is important to get what classes are in use for our var NSString object which

className = [obtain whatClass]; [self BarakaInjectLyrics:className content:Final]; takes over.

//

// BarakaLyricGoogle.m

// Baraka Lyrics For Radiant Player

// Main Controller For Google Lyrics

// @date April 12th, 2016

#import "BarakaLyricGoogle.h"

@implementation BarakaLyricGoogle

// Lets Get Our Current Class - (NSString *)__whatClass { [BarakaLyricGoogle temp]; return @""; }

+ (NSString *)temp { return @""; }

- (NSString *)__findBarakaLyrics:(NSString *)artist album:(NSString *)album title:(NSString *)title {}

Thanks to:

Geoffrey Grosenbach for the Hpple which can be found here https://github.com/topfunky/hpple

Matt Gallagher for XPathQuery

And the Radiant Player team for making a great app.

I had a lot of fun making this.

Created in XCode and Atom [Minify using css and js with Atom Package Install]

barakalyrics-for-radiant-player's People

Contributors

barakaaka1only avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.