Skip to content

farbodtm/mediaWindow.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mediaWindow.js

A lightweight popup window to display multimedia objects

Image, Video, Audio, Text.

mediaWindow.js works with jQuery and flowplayer. (flowplayer will be replaced by HTML5 media soon)

How to use

You can initialize mediaWindow with two lines.

var mw = mediaWindow();
mw.init('data.json');

data.json is a JSON file that contains media objects. an example of a valid data.json for mediaWindow (see example/data.json for more examples)

{
  "items": [{
    "id": "1",
      "file": "",
      "file_type": "audio\/mp3",
      "Mozart - Requiem In D Minor, K 626": "",
      "Wolfgang Amadeus Mozart": "",
      "text": null
  }],
    "pagesinfo": {
      "pages": 1,
      "page": 1
    }
}

now we can call openWindow

mw.openWindow(1, callback function);

Roadmap

  • Replace flowplayer with HTML5 media
  • Fix social buttons behaviour
  • Work on graphic

Licence

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published