Skip to content

Commit

Permalink
Rename Referer to Referrer in the label
Browse files Browse the repository at this point in the history
  • Loading branch information
ioppermann committed Sep 22, 2023
1 parent 39dfd34 commit 7888247
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/views/Edit/Sources/Network.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ function AdvancedSettings(props) {
<TextField
variant="outlined"
fullWidth
label="Referer"
label="Referrer"
value={settings.http.referer}
onChange={props.onChange('http', 'referer')}
/>
Expand Down
41 changes: 35 additions & 6 deletions src/views/Edit/Sources/Network.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const pullmatrix = {
forceFramerate: true,
framerate: 25,
userAgent: 'foobaz/1',
referer: 'http://example.com',
http_proxy: '',
},
general: {
Expand Down Expand Up @@ -128,7 +129,21 @@ pullmatrix.tests = [
skills: $skills_ffmpeg4,
input: {
address: 'http://admin:[email protected]/live/stream.m3u8',
options: ['-fflags', '+genpts', '-thread_queue_size', 512, '-analyzeduration', 20000000, '-re', '-r', 25, '-user_agent', 'foobaz/1'],
options: [
'-fflags',
'+genpts',
'-thread_queue_size',
512,
'-analyzeduration',
20000000,
'-re',
'-r',
25,
'-user_agent',
'foobaz/1',
'-referer',
'http://example.com',
],
},
},
{
Expand Down Expand Up @@ -164,7 +179,21 @@ pullmatrix.tests = [
skills: $skills_ffmpeg5,
input: {
address: 'http://admin:[email protected]/live/stream.m3u8',
options: ['-fflags', '+genpts', '-thread_queue_size', 512, '-analyzeduration', 20000000, '-re', '-r', 25, '-user_agent', 'foobaz/1'],
options: [
'-fflags',
'+genpts',
'-thread_queue_size',
512,
'-analyzeduration',
20000000,
'-re',
'-r',
25,
'-user_agent',
'foobaz/1',
'-referer',
'http://example.com',
],
},
},
{
Expand Down Expand Up @@ -285,7 +314,7 @@ pushmatrix.tests = [
skills: $skills_ffmpeg4,
config: $config,
input: {
address: 'rtmp://localhost/live/external.stream?token=foobar',
address: '{rtmp,name=external.stream}',
options: ['-fflags', '+genpts', '-thread_queue_size', 512, '-analyzeduration', 3000000],
},
},
Expand All @@ -295,7 +324,7 @@ pushmatrix.tests = [
skills: $skills_ffmpeg4,
config: $config,
input: {
address: 'srt://localhost?mode=caller&transtype=live&streamid=external,mode:request,token:foobar&passphrase=bazfoobazfoo',
address: '{srt,name=external.stream,mode=request}',
options: ['-fflags', '+genpts', '-thread_queue_size', 512],
},
},
Expand All @@ -305,7 +334,7 @@ pushmatrix.tests = [
skills: $skills_ffmpeg5,
config: $config,
input: {
address: 'rtmp://localhost/live/external.stream?token=foobar',
address: '{rtmp,name=external.stream}',
options: ['-fflags', '+genpts', '-thread_queue_size', 512, '-analyzeduration', 3000000],
},
},
Expand All @@ -315,7 +344,7 @@ pushmatrix.tests = [
skills: $skills_ffmpeg5,
config: $config,
input: {
address: 'srt://localhost?mode=caller&transtype=live&streamid=external,mode:request,token:foobar&passphrase=bazfoobazfoo',
address: '{srt,name=external.stream,mode=request}',
options: ['-fflags', '+genpts', '-thread_queue_size', 512],
},
},
Expand Down

0 comments on commit 7888247

Please sign in to comment.