Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
01b83a3f
Commit
01b83a3f
authored
Jan 03, 2006
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* added RTP uni-/multicast to the wizard
parent
7ea19fd2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
67 deletions
+85
-67
extras/MacOSX/Resources/English.lproj/Wizard.nib/info.nib
extras/MacOSX/Resources/English.lproj/Wizard.nib/info.nib
+2
-2
extras/MacOSX/Resources/English.lproj/Wizard.nib/keyedobjects.nib
...acOSX/Resources/English.lproj/Wizard.nib/keyedobjects.nib
+0
-0
modules/gui/macosx/wizard.m
modules/gui/macosx/wizard.m
+83
-65
No files found.
extras/MacOSX/Resources/English.lproj/Wizard.nib/info.nib
View file @
01b83a3f
...
...
@@ -5,7 +5,7 @@
<key>
IBDocumentLocation
</key>
<string>
255 498 356 241 0 0 1024 746
</string>
<key>
IBFramework Version
</key>
<string>
4
37
.0
</string>
<string>
4
43
.0
</string>
<key>
IBLockedObjects
</key>
<array>
<integer>
6
</integer>
...
...
@@ -18,6 +18,6 @@
<integer>
6
</integer>
</array>
<key>
IBSystem Version
</key>
<string>
8
C
46
</string>
<string>
8
F
46
</string>
</dict>
</plist>
extras/MacOSX/Resources/English.lproj/Wizard.nib/keyedobjects.nib
View file @
01b83a3f
No preview for this file type
modules/gui/macosx/wizard.m
View file @
01b83a3f
...
...
@@ -252,7 +252,8 @@ static VLCWizard *_o_sharedInstance = nil;
NSArray
*
o_mms
;
NSArray
*
o_udp_uni
;
NSArray
*
o_udp_multi
;
NSArray
*
o_rtp
;
NSArray
*
o_rtp_uni
;
NSArray
*
o_rtp_multi
;
o_http
=
[
NSArray
arrayWithObjects
:
@"http"
,
@"HTTP"
,
_NS
(
"Enter the local "
\
"addresses you want to listen to. Do not enter anything if you want to "
\
"listen to all adresses or if you don't understand. This is generally "
\
...
...
@@ -279,11 +280,18 @@ static VLCWizard *_o_sharedInstance = nil;
"to a dynamic group of computers on a multicast-enabled network. This "
\
"is the most efficient method to stream to several computers, but it "
\
"does not work over Internet."
),
nil
];
o_rtp
=
[
NSArray
arrayWithObjects
:
@"rtp"
,
@"RTP
"
,
_NS
(
"Enter the "
\
o_rtp
_uni
=
[
NSArray
arrayWithObjects
:
@"rtp"
,
@"RTP-Unicast
"
,
_NS
(
"Enter the "
\
"address of the computer to stream to."
)
,
_NS
(
"Use this to stream "
\
"to a single computer."
),
nil
];
o_rtp_multi
=
[
NSArray
arrayWithObjects
:
@"rtp"
,
@"RTP-Multicast"
,
_NS
(
"Enter "
\
"the multicast address to stream to in this field. This must be an IP "
\
"address between 224.0.0.0 and 239.255.255.255. For a private use, "
\
"enter an address beginning with 239.255."
),
_NS
(
"Use this to stream "
\
"to a dynamic group of computers on a multicast-enabled network. This "
\
"is the most efficient method to stream to several computers, but it "
\
"does not work over Internet."
),
nil
];
o_strmgMthds
=
[[
NSArray
alloc
]
initWithObjects
:
o_http
,
o_mms
,
\
o_udp_uni
,
o_udp_multi
,
o_rtp
,
nil
];
o_udp_uni
,
o_udp_multi
,
o_rtp
_uni
,
o_rtp_multi
,
nil
];
}
-
(
void
)
showWizard
...
...
@@ -607,10 +615,11 @@ static VLCWizard *_o_sharedInstance = nil;
[
self
rebuildCodecMenus
];
/* check which streaming method is selected and store it */
NSString
*
o_
mode
;
o_mode
=
[[
o_t3_matrix_stmgMhd
selectedCell
]
title
];
if
(
[
o_mode
isEqualToString
:
@"HTTP"
]
)
int
mode
;
mode
=
[[
o_t3_matrix_stmgMhd
selectedCell
]
tag
];
if
(
mode
==
0
)
{
/* HTTP Streaming */
[
o_userSelections
setObject
:
@"0"
forKey
:
@"stmgMhd"
];
/* disable all codecs which don't support MPEG PS, MPEG TS, MPEG 1,
...
...
@@ -618,8 +627,9 @@ static VLCWizard *_o_sharedInstance = nil;
[
o_t4_pop_audioCodec
removeItemWithTitle
:
@"Uncompressed, integer"
];
[
o_t4_pop_audioCodec
removeItemWithTitle
:
@"Uncompressed, floating"
];
}
else
if
(
[
o_mode
isEqualToString
:
@"MMS"
]
)
}
else
if
(
mode
==
1
)
{
/* MMS Streaming */
[
o_userSelections
setObject
:
@"1"
forKey
:
@"stmgMhd"
];
/* disable all codecs which don't support ASF / ASFH */
...
...
@@ -637,12 +647,10 @@ static VLCWizard *_o_sharedInstance = nil;
[
o_t4_pop_videoCodec
removeItemWithTitle
:
@"MJPEG"
];
[
o_t4_pop_videoCodec
removeItemWithTitle
:
@"Theora"
];
}
else
{
if
(
[
o_mode
isEqualToString
:
_NS
(
"UDP Unicast"
)]
)
{
[
o_userSelections
setObject
:
@"2"
forKey
:
@"stmgMhd"
];
}
else
{
[
o_userSelections
setObject
:
@"3"
forKey
:
@"stmgMhd"
];
}
/* RTP/UDP Unicast/Multicast Streaming */
[
o_userSelections
setObject
:
[[
NSNumber
numberWithInt
:
mode
]
\
stringValue
]
forKey
:
@"stmgMhd"
];
/* disable all codecs which don't support MPEG-TS */
[
o_t4_pop_audioCodec
removeItemWithTitle
:
@"Vorbis"
];
...
...
@@ -1018,10 +1026,9 @@ static VLCWizard *_o_sharedInstance = nil;
[[
o_t5_matrix_encap
cellAtRow
:
9
column
:
0
]
setEnabled
:
NO
];
[[
o_t5_matrix_encap
cellAtRow
:
10
column
:
0
]
setEnabled
:
NO
];
}
else
if
(
[
o_userSelections
objectForKey
:
@"stmgMhd"
]
==
@"2"
||
[
o_userSelections
objectForKey
:
@"stmgMhd"
]
==
@"3"
)
else
if
(
[[
o_userSelections
objectForKey
:
@"stmgMhd"
]
intValue
]
>=
2
)
{
/* if UDP is the streaming protocol, only MPEG-TS is available */
/* if UDP
/RTP
is the streaming protocol, only MPEG-TS is available */
[[
o_t5_matrix_encap
cellAtRow
:
0
column
:
0
]
setEnabled
:
NO
];
[[
o_t5_matrix_encap
cellAtRow
:
2
column
:
0
]
setEnabled
:
NO
];
[[
o_t5_matrix_encap
cellAtRow
:
3
column
:
0
]
setEnabled
:
NO
];
...
...
@@ -1221,12 +1228,40 @@ static VLCWizard *_o_sharedInstance = nil;
[
o_t8_fld_partExtract
setStringValue
:
_NS
(
"no"
)];
}
if
([[
o_userSelections
objectForKey
:
@"trnscdVideo"
]
isEqualToString
:
@"YES"
])
{
[
o_t8_fld_trnscdVideo
setStringValue
:
[[[[[
_NS
(
"yes"
)
\
stringByAppendingString
:
@": "
]
stringByAppendingString
:
\
[[
o_videoCodecs
objectAtIndex
:[[
o_userSelections
objectForKey
:
\
@"trnscdVideoCodec"
]
intValue
]]
objectAtIndex
:
0
]]
\
stringByAppendingString
:
@" @ "
]
stringByAppendingString
:
\
[
o_userSelections
objectForKey
:
@"trnscdVideoBitrate"
]]
\
stringByAppendingString
:
@" kb/s"
]];
}
else
{
[
o_t8_fld_trnscdVideo
setStringValue
:
_NS
(
"no"
)];
}
if
([[
o_userSelections
objectForKey
:
@"trnscdAudio"
]
isEqualToString
:
@"YES"
])
{
[
o_t8_fld_trnscdAudio
setStringValue
:
[[[[[
_NS
(
"yes"
)
\
stringByAppendingString
:
@": "
]
stringByAppendingString
:
\
[[
o_audioCodecs
objectAtIndex
:[[
o_userSelections
objectForKey
:
\
@"trnscdAudioCodec"
]
intValue
]]
objectAtIndex
:
0
]]
\
stringByAppendingString
:
@" @ "
]
stringByAppendingString
:
\
[
o_userSelections
objectForKey
:
@"trnscdAudioBitrate"
]]
\
stringByAppendingString
:
@" kb/s"
]];
}
else
{
[
o_t8_fld_trnscdAudio
setStringValue
:
_NS
(
"no"
)];
}
if
([[
o_userSelections
objectForKey
:
@"trnscdOrStrmg"
]
isEqualToString
:
@"strmg"
])
{
/* we are streaming
; no transcoding allowed atm
*/
/* we are streaming
and perhaps also transcoding
*/
[
o_t8_fld_saveFileTo
setStringValue
:
@"-"
];
[
o_t8_fld_trnscdAudio
setStringValue
:
@"-"
];
[
o_t8_fld_trnscdVideo
setStringValue
:
@"-"
];
[
o_t8_fld_strmgMthd
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
\
[[
o_userSelections
objectForKey
:
@"stmgMhd"
]
intValue
]]
\
objectAtIndex
:
1
]];
...
...
@@ -1245,30 +1280,6 @@ static VLCWizard *_o_sharedInstance = nil;
[
o_t8_fld_destination
setStringValue
:
@"-"
];
[
o_t8_fld_ttl
setStringValue
:
@"-"
];
[
o_t8_fld_sap
setStringValue
:
@"-"
];
if
([[
o_userSelections
objectForKey
:
@"trnscdVideo"
]
isEqualToString
:
@"YES"
])
{
[
o_t8_fld_trnscdVideo
setStringValue
:
[[[[[
_NS
(
"yes"
)
\
stringByAppendingString
:
@": "
]
stringByAppendingString
:
\
[[
o_videoCodecs
objectAtIndex
:[[
o_userSelections
objectForKey
:
\
@"trnscdVideoCodec"
]
intValue
]]
objectAtIndex
:
0
]]
\
stringByAppendingString
:
@" @ "
]
stringByAppendingString
:
\
[
o_userSelections
objectForKey
:
@"trnscdVideoBitrate"
]]
\
stringByAppendingString
:
@" kb/s"
]];
}
else
{
[
o_t8_fld_trnscdVideo
setStringValue
:
_NS
(
"no"
)];
}
if
([[
o_userSelections
objectForKey
:
@"trnscdAudio"
]
isEqualToString
:
@"YES"
])
{
[
o_t8_fld_trnscdAudio
setStringValue
:
[[[[[
_NS
(
"yes"
)
\
stringByAppendingString
:
@": "
]
stringByAppendingString
:
\
[[
o_audioCodecs
objectAtIndex
:[[
o_userSelections
objectForKey
:
\
@"trnscdAudioCodec"
]
intValue
]]
objectAtIndex
:
0
]]
\
stringByAppendingString
:
@" @ "
]
stringByAppendingString
:
\
[
o_userSelections
objectForKey
:
@"trnscdAudioBitrate"
]]
\
stringByAppendingString
:
@" kb/s"
]];
}
else
{
[
o_t8_fld_trnscdAudio
setStringValue
:
_NS
(
"no"
)];
}
[
o_t8_fld_saveFileTo
setStringValue
:
[
o_userSelections
objectForKey
:
\
@"trnscdFilePath"
]];
}
...
...
@@ -1532,9 +1543,25 @@ static VLCWizard *_o_sharedInstance = nil;
{
/* change the captions of o_t3_txt_destInfo according to the chosen
* streaming method */
NSNumber
*
o_mode
;
o_mode
=
[[
NSNumber
alloc
]
initWithInt
:[[
o_t3_matrix_stmgMhd
selectedCell
]
tag
]];
if
(
[
o_mode
intValue
]
==
0
)
int
mode
;
mode
=
[[
o_t3_matrix_stmgMhd
selectedCell
]
tag
];
if
(
mode
==
0
)
{
/* HTTP */
[
o_t3_txt_destInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
0
]
\
objectAtIndex
:
2
]];
[
o_t3_txt_strgMthdInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
0
]
\
objectAtIndex
:
3
]];
}
else
if
(
mode
==
1
)
{
/* MMS */
[
o_t3_txt_destInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
1
]
\
objectAtIndex
:
2
]];
[
o_t3_txt_strgMthdInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
1
]
\
objectAtIndex
:
3
]];
}
else
if
(
mode
==
2
)
{
/* UDP-Unicast */
[
o_t3_txt_destInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
2
]
\
...
...
@@ -1542,7 +1569,7 @@ static VLCWizard *_o_sharedInstance = nil;
[
o_t3_txt_strgMthdInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
2
]
\
objectAtIndex
:
3
]];
}
else
if
(
[
o_mode
intValue
]
==
1
)
else
if
(
mode
==
3
)
{
/* UDP-Multicast */
[
o_t3_txt_destInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
3
]
\
...
...
@@ -1550,31 +1577,22 @@ static VLCWizard *_o_sharedInstance = nil;
[
o_t3_txt_strgMthdInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
3
]
\
objectAtIndex
:
3
]];
}
else
if
(
[
o_mode
intValue
]
==
2
)
else
if
(
mode
==
4
)
{
/* HTTP */
[
o_t3_txt_destInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
0
]
\
objectAtIndex
:
2
]];
[
o_t3_txt_strgMthdInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
0
]
\
objectAtIndex
:
3
]];
}
else
if
(
[
o_mode
intValue
]
==
3
)
{
/* MMS */
[
o_t3_txt_destInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
1
]
\
/* RTP-Unicast */
[
o_t3_txt_destInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
4
]
\
objectAtIndex
:
2
]];
[
o_t3_txt_strgMthdInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
1
]
\
[
o_t3_txt_strgMthdInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
4
]
\
objectAtIndex
:
3
]];
}
else
if
(
[
o_mode
intValue
]
==
4
)
else
if
(
mode
==
5
)
{
/* RTP */
[
o_t3_txt_destInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
4
]
\
/* RTP
-Multicast
*/
[
o_t3_txt_destInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
5
]
\
objectAtIndex
:
2
]];
[
o_t3_txt_strgMthdInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
4
]
\
objectAtIndex
:
3
]];
[
o_t3_txt_strgMthdInfo
setStringValue
:
[[
o_strmgMthds
objectAtIndex
:
5
]
\
objectAtIndex
:
3
]];
}
[
o_mode
release
];
}
-
(
IBAction
)
t4_AudCdcChanged
:(
id
)
sender
...
...
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