Skip to content

Commit

Permalink
zencoder: make all zencoder uploads public
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioribeiro committed Nov 16, 2016
1 parent 5e3bfae commit 225d9ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions provider/zencoder/zencoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func (z *zencoderProvider) buildOutput(job *db.Job, preset db.Preset, filename s
VideoCodec: preset.Video.Codec,
AudioCodec: preset.Audio.Codec,
Filename: filename,
MakePublic: true,
}
zencoderOutput.Width, zencoderOutput.Height = z.getResolution(preset)
videoBitrate, err := strconv.ParseInt(preset.Video.Bitrate, 10, 32)
Expand Down
7 changes: 7 additions & 0 deletions provider/zencoder/zencoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ func TestZencoderBuildOutputs(t *testing.T) {
"format": "mp4",
"audio_codec": "aac",
"filename": "output.mp4",
"public": true,
},
},
},
Expand Down Expand Up @@ -421,6 +422,7 @@ func TestZencoderBuildOutputs(t *testing.T) {
"filename": "output1.m3u8",
"segment_seconds": float64(3),
"prepare_for_segmenting": "hls",
"public": true,
},
{
"label": "preset2",
Expand All @@ -442,6 +444,7 @@ func TestZencoderBuildOutputs(t *testing.T) {
"filename": "output2.m3u8",
"segment_seconds": float64(3),
"prepare_for_segmenting": "hls",
"public": true,
},
{
"base_url": "https://log:[email protected]/1234567890",
Expand Down Expand Up @@ -534,6 +537,7 @@ func TestZencoderBuildOutput(t *testing.T) {
"deinterlace": "on",
"base_url": "http://a:[email protected]/t/abcdef",
"filename": "test.mp4",
"public": true,
},
},
{
Expand Down Expand Up @@ -571,6 +575,7 @@ func TestZencoderBuildOutput(t *testing.T) {
"filename": "test.m3u8",
"type": "segmented",
"hls_optimized_ts": true,
"public": true,
},
},
{
Expand Down Expand Up @@ -606,6 +611,7 @@ func TestZencoderBuildOutput(t *testing.T) {
"deinterlace": "on",
"base_url": "http://a:[email protected]/t/abcdef",
"filename": "test.webm",
"public": true,
},
},
{
Expand Down Expand Up @@ -641,6 +647,7 @@ func TestZencoderBuildOutput(t *testing.T) {
"deinterlace": "on",
"base_url": "http://user:pass%[email protected]/t/abcdef",
"filename": "test.webm",
"public": true,
},
},
}
Expand Down

0 comments on commit 225d9ff

Please sign in to comment.