jquery.mb.YTPlayer icon indicating copy to clipboard operation
jquery.mb.YTPlayer copied to clipboard

[FEATURE REQUEST] Distribute ultra lightweight version of plugin

Open bhamodi opened this issue 10 years ago • 6 comments
trafficstars

Hi @pupunzi, Here is a feature request for you. I think it would be very cool and beneficial if we could have a version of this plugin that is very lightweight and only has one functionality; keep looping through one video. I think there are a lot of people who use this plugin just to play a single background video for their website, so they aren't interested in all of the features including providing user input keys, or having a playlist of videos, or shuffling, etc.

Do you think you could also distribute a version called something like: jquery.mb.YTPlayer.basic.js and jquery.mb.YTPlayer.basic.min.js? These versions would only have code for looping through a single video and would be very lightweight.

bhamodi avatar Jul 13 '15 01:07 bhamodi

+1

romapad avatar Apr 28 '16 09:04 romapad

+2

AdsonCicilioti avatar Jun 25 '16 04:06 AdsonCicilioti

For anyone interested, I have created a very lightweight library that supports only the basics: https://github.com/OriginalEXE/vidim

OriginalEXE avatar Jan 31 '17 14:01 OriginalEXE

@OriginalEXE It is not really lightweight :-D It's almost lightweight as the YTPlayer.js is...

pupunzi avatar Jan 31 '17 16:01 pupunzi

Well I would not call it super lightweight, but it's still quite smaller :P

If you check the final size in the dist folder, it's 52.3kb vs 15kb (the minified versions), so more than 3 times smaller. It's worth noting that in that 15kb there is also a support for self hosted videos as well, that could be thrown out in a custom build (very easy to do) for additional reduction in size (I would guess about ~ -4kb in minified version).

Also the advantage is that jQuery is not required, though it doesn't support a lot of the features YTPlayer does so not for those who need playlists for example.

OriginalEXE avatar Jan 31 '17 16:01 OriginalEXE

Any updates here @pupunzi?

bhamodi avatar Jan 27 '18 22:01 bhamodi