Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
a10edeec
Commit
a10edeec
authored
Jun 24, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add RTMP option on the panel.
parent
16bf241c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+10
-2
modules/gui/qt4/components/open_panels.hpp
modules/gui/qt4/components/open_panels.hpp
+2
-1
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
a10edeec
...
...
@@ -425,6 +425,7 @@ NetOpenPanel::NetOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
ui
.
protocolCombo
->
addItem
(
"RTSP"
,
QVariant
(
"rtsp"
));
ui
.
protocolCombo
->
addItem
(
"UDP/RTP (unicast)"
,
QVariant
(
"udp"
));
ui
.
protocolCombo
->
addItem
(
"UDP/RTP (multicast)"
,
QVariant
(
"udp"
));
ui
.
protocolCombo
->
addItem
(
"RTMP"
,
QVariant
(
"rtmp"
));
}
NetOpenPanel
::~
NetOpenPanel
()
...
...
@@ -438,10 +439,12 @@ void NetOpenPanel::updateProtocol( int idx_proto ) {
QString
addr
=
ui
.
addressText
->
text
();
QString
proto
=
ui
.
protocolCombo
->
itemData
(
idx_proto
).
toString
();
ui
.
timeShift
->
setEnabled
(
idx_proto
>=
UDP_PROTO
);
ui
.
timeShift
->
setEnabled
(
idx_proto
==
UDP_PROTO
||
idx_proto
==
UDPM_PROTO
);
ui
.
ipv6
->
setEnabled
(
idx_proto
==
UDP_PROTO
);
ui
.
addressText
->
setEnabled
(
idx_proto
!=
UDP_PROTO
);
ui
.
portSpin
->
setEnabled
(
idx_proto
>=
UDP_PROTO
);
ui
.
portSpin
->
setEnabled
(
idx_proto
==
UDP_PROTO
||
idx_proto
==
UDPM_PROTO
);
if
(
idx_proto
==
NO_PROTO
)
return
;
...
...
@@ -514,6 +517,11 @@ void NetOpenPanel::updateMRL() {
else
mrl
+=
addr
;
mrl
+=
QString
(
":%1"
).
arg
(
ui
.
portSpin
->
value
()
);
emit
methodChanged
(
"udp-caching"
);
case
RTMP_PROTO
:
mrl
=
"rtmp://"
+
addr
;
emit
methodChanged
(
"rtmp-caching"
);
break
;
}
}
...
...
modules/gui/qt4/components/open_panels.hpp
View file @
a10edeec
...
...
@@ -57,7 +57,8 @@ enum
FTP_PROTO
,
RTSP_PROTO
,
UDP_PROTO
,
UDPM_PROTO
UDPM_PROTO
,
RTMP_PROTO
};
...
...
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