Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.