diff --git a/LICENSE b/LICENSE index f37c3072c..85fff8a0e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2013 winlin +Copyright (c) 2013-2014 winlin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/trunk/research/players/js/srs.utility.js b/trunk/research/players/js/srs.utility.js index e3886cc77..60562e209 100755 --- a/trunk/research/players/js/srs.utility.js +++ b/trunk/research/players/js/srs.utility.js @@ -13,6 +13,21 @@ function padding(number, length, prefix) { /** * parse the query string to object. +* parse the url location object as: host(hostname:http_port), pathname(dir/filename) +* for example, url http://192.168.1.168:1980/ui/players.html?vhost=player.vhost.com&app=test&stream=livestream +* parsed to object: +{ + host : "192.168.1.168:1980", + hostname : "192.168.1.168", + http_port : 1980, + pathname : "/ui/players.html", + dir : "/ui", + filename : "/players.html", + + vhost : "player.vhost.com", + app : "test", + stream : "livestream" +} */ function parse_query_string(){ var obj = {};