blackberry / WebWorks-Community-APIs

Community owned repository containing JavaScript Extensions for BlackBerry WebWorks
Apache License 2.0
140 stars 204 forks source link

Pull Request for Webworks plugin: NowPlaying #402

Closed trsong closed 9 years ago

trsong commented 9 years ago

Before talking about plugin, I want to thank you Tim. Without your help at the code sprint and support throughout the term, it is impossible for me to finish this plugin! I feel much appreciated!

The NowPlaying Plugin is able to do the following:

Since I don't have a lot knowledge of the html, I couldn't find a right way of creating a slider and synchronize its value to the position of the song when playing. I, at lease, done the following:

Hopefully, there is anyone who is good at html and javascript can implement that by using the above functionality.

Also, I find an easy way of programming in qt is to emit your own signal, and I have gone through the SystemDialogue and MediaKey, but neither of them had used this trick. If only they knew the trick, life would be a lot simpler!

Again, thank you very much, Tim!

timwindsor commented 9 years ago

@trsong you can leave out the debug1 folder - and all the leftover screenshots from the Template.

I don't know if you've got any time left, but if you do, there's a bit more that could be done with this - instead of starting with a URL loaded, it should accept one in a call from the JavaScript API. Also, we could really use an API to pass in MetaData from JavaScript, in a JSON object.

Regardless, the foundation here is the hard part and the rest of the work is pretty minor so you've got us in a good spot to tweak it.

trsong commented 9 years ago

@timwindsor Now metadata can be passed through the plugin, and all unnecessary files have been removed. Everything works perfect now.