mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine tid for sdk and demos. 4.0.106
This commit is contained in:
parent
2ad24b2313
commit
3bf1b0cb7d
7 changed files with 10 additions and 9 deletions
|
@ -144,7 +144,7 @@ function SrsRtcPublisherAsync() {
|
|||
|
||||
return {
|
||||
apiUrl: apiUrl, streamUrl: streamUrl, schema: schema, urlObject: urlObject, port: port,
|
||||
tid: new Date().getTime().toString(16)
|
||||
tid: Number(parseInt(new Date().getTime()*Math.random()*100)).toString(16).substr(0, 7)
|
||||
};
|
||||
},
|
||||
parse: function (url) {
|
||||
|
@ -361,7 +361,7 @@ function SrsRtcPlayerAsync() {
|
|||
|
||||
return {
|
||||
apiUrl: apiUrl, streamUrl: streamUrl, schema: schema, urlObject: urlObject, port: port,
|
||||
tid: new Date().getTime().toString(16)
|
||||
tid: Number(parseInt(new Date().getTime()*Math.random()*100)).toString(16).substr(0, 7)
|
||||
};
|
||||
},
|
||||
parse: function (url) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue