Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-01-01 09:49:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
649419c1aac21e5c2a3410687c4ddf80a6c3161d
649419c1
1 parent
c221eb61
refine the utility of js.
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
16 行增加
和
1 行删除
LICENSE
trunk/research/players/js/srs.utility.js
LICENSE
查看文件 @
649419c
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
...
...
trunk/research/players/js/srs.utility.js
查看文件 @
649419c
...
...
@@ -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
=
{};
...
...
请
注册
或
登录
后发表评论