Skip to content

pweids/237UnitProject

Repository files navigation

This is our Unit Project for 237. Notes and implementation strategy are here. For usage, you will have to upload an XML file from your iTunes library. A sample XML file is provided as Library.xml

Application Logic

Import Playlist from iTunes

  • Prompt user for XML file
    • Parse XML for Artist, Albums, Songs, Time
    • Populate the Library Window

Library Window

    Click on a song

    • Highlight it
    • Query YT for vid list
      • Raise up iFrame
      • Draw videos
      • Click next/prev button

        • Move thumbnails
        • Play new vid

    Click Play

    • toggle play of YT video (or begin playing 1st song in current window)

    Click next

    • redraw iFrame

    Click PL name

    • Highlight PL
    • remove all song DOM elements in current library
    • refill with dom elements form appropriate playlist

Milestones

  1. Get static UI
  2. Add dynamic elements to UI
  3. Write XML parser for playlist and store in proper object
  4. Fill library functionality
  5. Create and add Playlist functionality
  6. Sorting of library elements
  7. Write Youtube player/iFrame
  8. Write Controller from Library

Data Structures

    playlist{
        "Name":Str,
        "Songs":[]
    }
    song {
        "Artist": str,
        "Title" : str,
        "Album" : str,
        "Time" : num,
        "defaultVidIndex" : num
    }
    queue {
        "songs" : array,
        "shuffle" : boolean,
        "repeat" : <"no", "all", "one">
    }

Work Division

Paul

  • HTML and CSS
  • Library parsing, storage, and display
  • Ajax functionality

Jeff

  • YouTube API

About

Unit Project for 15-237

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •