Skip to content

ddpunk/backbone-jwplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Backbone.JWPlayer

Support to manage JW Player events in backbone view. I am creating app using backbone and I needed to manage jw player events. This is code that I used to do that (inspired by @bry4n and his Backbone.Shortcuts https://github.com/bry4n/backbone-shortcuts). I couldn't find other sollution, so I share this with you. Do with it whatever you want. If you found better way, please contact me.

Usage

CoffeeScript

class MyView extends Backbone.View
	initialize: (options) ->
		_.extend(this, new Backbone.JWPlayer) 
		@delegateJWPlayer(jwplayer('jwplayer'))

	jwplayerevents:
		'jwplayer:onTime'	: 'onTime'
		'jwplayer:onPlay'	: 'onPlay'

Dependencies

Author

Maciej Krasowski, @ddpunk

License

Backbone.JWPlayer is licensed under MIT license.

About

Support file for JW Player events in Backbone.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors