athenalabs/acorn-player — pull request #142 by anshukla (2013-08-08 23:11:41+00:00)
Title: YouTube Shell/Remixer Queries URL for default start/end times

Resolves issue #122 . The YouTube Remixer now sets clip selection according to the URL, if available. Supported time formats:

* ``t=``
* ``t=ms``
* ``start=`
* ``start=ms``
* ``end=``
* ``end=ms`

Currently, this functionality is limited to YouTube videos, but ``initializeDefaultClip`` can be moved up to LinkShell in general in order to handle other URL parameters (if relevant).

This pull request also introduces a new utility function ``acorn.util.fetchParameters``. This function takes a URL and an array of parameters and returns an object with the parameters and their values, if available. If the parameters are not present, then they are not in the object. In the case that no parameters are supplied in the URL, the empty object is returned.