/knockout-jplayer

A knockout binding for the jPlayer jQuery plugin.

Primary LanguageJavaScriptMIT LicenseMIT

knockout-jplayer

A KnockoutJS binding for the jQuery jPlayer plugin.

example usage

<div data-bind="jplayer: {
	media: { mp3: Mp3PathObservable, ogg: OggPathObservable },
	title: TitleObservable }">
</div>

The jPlayer binding accepts standard jPlayer options, with the addition of the media and title fields. These are the only required fields for the binding. The plugin will automatically generate the other bindings required by jPlayer (such as 'supplies').