Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Linshizhi
ffmpeg.wasm-core
Commits
8517e9c4
Commit
8517e9c4
authored
Jun 13, 2012
by
Samuel Pitoiset
Committed by
Martin Storsjö
Jun 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtmp: Add a new option 'rtmp_buffer', for setting the client buffer time
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
9477c035
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
protocols.texi
doc/protocols.texi
+3
-0
rtmpproto.c
libavformat/rtmpproto.c
+1
-1
No files found.
doc/protocols.texi
View file @
8517e9c4
...
...
@@ -198,6 +198,9 @@ Additionally, the following parameters can be set via command line options
Name of application to connect on the RTMP server. This option
overrides the parameter specified in the URI.
@item rtmp_buffer
Set the client buffer time in milliseconds. The default is 3000.
@item rtmp_conn
Extra arbitrary AMF connection parameters, parsed from a string,
e.g. like @code{B:1 S:authMe O:1 NN:code:1.23 NS:flag:ok O:0}.
...
...
libavformat/rtmpproto.c
View file @
8517e9c4
...
...
@@ -1219,7 +1219,6 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
rt
->
bytes_read
=
0
;
rt
->
last_bytes_read
=
0
;
rt
->
server_bw
=
2500000
;
rt
->
client_buffer_time
=
3000
;
av_log
(
s
,
AV_LOG_DEBUG
,
"Proto = %s, path = %s, app = %s, fname = %s
\n
"
,
proto
,
path
,
rt
->
app
,
rt
->
playpath
);
...
...
@@ -1366,6 +1365,7 @@ static int rtmp_write(URLContext *s, const uint8_t *buf, int size)
static
const
AVOption
rtmp_options
[]
=
{
{
"rtmp_app"
,
"Name of application to connect to on the RTMP server"
,
OFFSET
(
app
),
AV_OPT_TYPE_STRING
,
{.
str
=
NULL
},
0
,
0
,
DEC
|
ENC
},
{
"rtmp_buffer"
,
"Set buffer time in milliseconds. The default is 3000."
,
OFFSET
(
client_buffer_time
),
AV_OPT_TYPE_INT
,
{
3000
},
0
,
INT_MAX
,
DEC
|
ENC
},
{
"rtmp_conn"
,
"Append arbitrary AMF data to the Connect message"
,
OFFSET
(
conn
),
AV_OPT_TYPE_STRING
,
{.
str
=
NULL
},
0
,
0
,
DEC
|
ENC
},
{
"rtmp_flashver"
,
"Version of the Flash plugin used to run the SWF player."
,
OFFSET
(
flashver
),
AV_OPT_TYPE_STRING
,
{.
str
=
NULL
},
0
,
0
,
DEC
|
ENC
},
{
"rtmp_live"
,
"Specify that the media is a live stream."
,
OFFSET
(
live
),
AV_OPT_TYPE_INT
,
{
-
2
},
INT_MIN
,
INT_MAX
,
DEC
,
"rtmp_live"
},
...
...
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