media/ted.lua: Rewrite parse function
commitabcb2fd7744631ec7a3073540d6e0fce432e8ee2
authorToni Gundogdu <legatvs@gmail.com>
Fri, 17 May 2013 14:37:11 +0000 (17 17:37 +0300)
committerToni Gundogdu <legatvs@gmail.com>
Fri, 17 May 2013 15:00:37 +0000 (17 18:00 +0300)
treedb8a03255cd8a5665d71fea0f0c92a5f3575bc37
parentf362f03b6d9a2c3b42cc8abc3893345ed9f67deb
media/ted.lua: Rewrite parse function

Rewrite the `parse' function for the libquvi 0.9+ series.
* Implement `Ted.iter_streams' function w/ improved stream parsing[1]
* Implement additional `Ted' functions, e.g. `Ted.ch_best'
* Parse additional properties[2] for self-hosted media
* Remove now obsolete code (e.g. self.host_id)
* Apply 2-space indentation
* Update vim modeline

[1]: Unlike the 0.4 equivalent, this rewrite parses additional
     self-hosted media streams, both "HTML" (HTTP) and "streamer" (RTMP)

[2]: duration_ms, video={width, height, bitrate_kbit_s}

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
share/media/ted.lua