Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mehryars/blobber
blobber force the browser to download videos and make ready to play on page load
https://github.com/mehryars/blobber
ajax blob javascript jquery
Last synced: about 18 hours ago
JSON representation
blobber force the browser to download videos and make ready to play on page load
- Host: GitHub
- URL: https://github.com/mehryars/blobber
- Owner: MehryarS
- License: mit
- Created: 2018-03-01T18:26:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-27T20:56:47.000Z (over 1 year ago)
- Last Synced: 2024-11-13T22:07:19.678Z (about 18 hours ago)
- Topics: ajax, blob, javascript, jquery
- Language: JavaScript
- Size: 39.4 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# blobber
It is a light javascript library based on jQuery for helping you to make object URL for videos on each page.
The URL lifetime is tied to the document in the window on which it was created.*blobber make blob URL (blob is a pseudo protocol - **b**inary **l**arge **ob**ject) for your videos.*
Check [demo](http://blobber.mehryars.com/)
### INSTALLATION:
You can use npm to install blobber
```sh
npm install url-blobber
```or you can do it manually:
1. Include CSS file to head tag
```html```
2. Include the JS file before the end of your body tag, below the JQuery plugin
```html```
### USAGE:
**Step 1:** Add videos to html document as DOM:
```html
```##### TIPS:
1. Each video should have an unique id.
2. You can use all video attributes.**Step 2:** Fire the plugin
```javascript
$("#video-container").blobber();
```### OPTIONS:
You can customize:
| Parameter | Default Value | Description |
| -------------------- | ------------- | ---------------------------------------- |
| complete | null | Use founctions as a callback |
| preloader | true | Disable preloader |
| preloaderBackground | "#FFFFFF" | Change preloader background color |
| progressBar | true | Hide progress bar on preloader page |
| progressBarColor | "#000000" | Change progress bar color |
| progressSpinner | true | Hide spinner animation on preloader page |
| progressSpinnerColor | "#000000" | Change spinner animation color |
| progressStatus | true | Hide status reporter on preloader page |
| progressStatusColor | "#999999" | Change status reporter color |### EXAMPLE:
```javascript
$("#video-container").blobber({
complete: function(){
alert("Hello, It's Done!");
}
});
```### LICENSE:
This software is free to use under the MIT license.