File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ The file contains an array of JSON objects with the following definition:
47
47
* ` source ` : the source URL
48
48
* ` avconvOptions ` : (optional) special avconv parameters for this source. This is an object containing two arrays,
49
49
` input ` and ` output ` .
50
+ * ` realtime ` : (optional) whether to add the ` -re ` input flag to the input options. Normally this is what you want, but
51
+ some sources may not work correctly without disabling this. Defaults to ` true ` .
50
52
* ` prescript ` : (optional) script to run before transcoding starts. Useful if you need to bring up temporary VPN
51
53
interfaces etc. Four arguments are passed to the script; the source URL, the relative stream URL, the provider name
52
54
and the channel name.
Original file line number Diff line number Diff line change @@ -14,9 +14,14 @@ var getAvconvOptions = function(source) {
14
14
* @returns array
15
15
*/
16
16
var getInputAvconvOptions = function ( source ) {
17
- var options = [
18
- '-re'
19
- ] ;
17
+ var options = [ ] ;
18
+
19
+ // Optionally disable realtime streaming
20
+ if ( source . realtime !== false ) {
21
+ options = [
22
+ '-re'
23
+ ] ;
24
+ }
20
25
21
26
if ( source . avconvOptions !== undefined && source . avconvOptions . input !== undefined )
22
27
options = options . concat ( source . avconvOptions . input ) ;
You can’t perform that action at this time.
0 commit comments