dmreagan / collectome

https://collectome.rt.iu.edu/
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Add playlist capability #21

Closed dmreagan closed 5 years ago

dmreagan commented 5 years ago

Add a simple playlist creator/editor and display.

User copies collection ID from collection details page and adds it to an array in the playlist create/edit page.

{
  "metadata": {
    "name": "playlist1",
    "description": "description1",
  },
  "collection-ids": [
    "id1",
    "id2",
    "id3",
  ]
}
dmreagan commented 5 years ago
{
  "metadata": {
    "name": "playlist1",
    "description": "description 1",
  },
  "collections": [
    {
      "id": "collection1",
      "duration": 30,
    },
    {
      "id": "collection2",
      "duration": 45,
    }
  ]
}
dmreagan commented 5 years ago

For timer logic, use the AngularJS $interval service. See examples from the screensaver and img-slideshow.

guangchen commented 5 years ago

Implemented the playlist feature.