Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-push-stream-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
nginx-push-stream-module
Commits
851615d5
Commit
851615d5
authored
May 09, 2012
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing old iframe elements on stream wrapper
parent
5e7f6af6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
ngx_http_push_stream_module_version.h
include/ngx_http_push_stream_module_version.h
+1
-1
pushstream.js
misc/js/pushstream.js
+12
-1
No files found.
include/ngx_http_push_stream_module_version.h
View file @
851615d5
...
...
@@ -27,6 +27,6 @@
#define NGX_HTTP_PUSH_STREAM_MODULE_VERSION_H_
static
const
ngx_str_t
NGX_HTTP_PUSH_STREAM_TAG
=
ngx_string
(
"0.3.3"
);
static
const
ngx_str_t
NGX_HTTP_PUSH_STREAM_COMMIT
=
ngx_string
(
"
d0fe86d4193ffd6797a3fa63011d511b45dde97
c"
);
static
const
ngx_str_t
NGX_HTTP_PUSH_STREAM_COMMIT
=
ngx_string
(
"
5e7f6af68a133967b8476b75a9d562bb6672174
c"
);
#endif
/* NGX_HTTP_PUSH_STREAM_MODULE_VERSION_H_ */
misc/js/pushstream.js
View file @
851615d5
...
...
@@ -493,6 +493,7 @@
this
.
url
=
null
;
this
.
frameloadtimer
=
null
;
this
.
pingtimer
=
null
;
this
.
iframeId
=
"
PushStreamManager_
"
+
pushstream
.
id
;
};
StreamWrapper
.
TYPE
=
"
Stream
"
;
...
...
@@ -520,9 +521,17 @@
}
},
_clear_iframe
:
function
()
{
var
oldIframe
=
document
.
getElementById
(
this
.
iframeId
);
if
(
oldIframe
)
{
oldIframe
.
onload
=
null
;
if
(
oldIframe
.
parentNode
)
oldIframe
.
parentNode
.
removeChild
(
oldIframe
);
}
},
_closeCurrentConnection
:
function
()
{
this
.
_clear_iframe
();
if
(
this
.
connection
)
{
try
{
this
.
connection
.
onload
=
null
;
this
.
connection
.
setAttribute
(
"
src
"
,
""
);
}
catch
(
e
)
{
/* ignore error on closing */
}
this
.
pingtimer
=
clearTimer
(
this
.
pingtimer
);
this
.
frameloadtimer
=
clearTimer
(
this
.
frameloadtimer
);
this
.
connection
=
null
;
...
...
@@ -532,6 +541,7 @@
},
loadFrame
:
function
(
url
)
{
this
.
_clear_iframe
();
try
{
var
transferDoc
=
new
window
.
ActiveXObject
(
"
htmlfile
"
);
transferDoc
.
open
();
...
...
@@ -559,6 +569,7 @@
ifr
.
onload
=
linker
(
onerrorCallback
,
this
);
this
.
connection
=
ifr
;
}
this
.
connection
.
setAttribute
(
"
id
"
,
this
.
iframeId
);
this
.
frameloadtimer
=
window
.
setTimeout
(
linker
(
onerrorCallback
,
this
),
this
.
pushstream
.
timeout
);
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment