Skip to content

Commit ac3526b

Browse files
committed
Merge branch 'release/1.2.6' into v1
2 parents 90d4e12 + c139d56 commit ac3526b

File tree

56 files changed

+13104
-7389
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+13104
-7389
lines changed

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
# CRAFT ENVIRONMENT
2+
.env.php
3+
.env.sh
4+
.env
5+
16
# COMPOSER
27
/vendor
38

49
# BUILD FILES
510
/bower_components/*
611
/node_modules/*
712
/build/*
13+
/yarn-error.log
814

915
# MISC FILES
1016
.cache
@@ -17,3 +23,12 @@
1723
*.sublime-project
1824
*.tmproj
1925
*.tmproject
26+
.vscode/*
27+
!.vscode/settings.json
28+
!.vscode/tasks.json
29+
!.vscode/launch.json
30+
!.vscode/extensions.json
31+
config.codekit3
32+
prepros-6.config
33+
34+
# BUILD FILES

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Transcoder Changelog
22

3+
## 1.2.6 - 2019.11.11
4+
### Added
5+
* Added trimming to audio transcoding
6+
7+
### Changed
8+
* Updated to latest npm dependencies via `npm audit fix`
9+
* Changed `.first()``.one()` in the docs
10+
311
## 1.2.5 - 2019.05.23
412
### Changed
513
* Updated build system

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nystudio107/craft-transcoder",
33
"description": "Transcode video & audio files to various formats, and provide video thumbnails",
44
"type": "craft-plugin",
5-
"version": "1.2.5",
5+
"version": "1.2.6",
66
"keywords": [
77
"craft",
88
"cms",

docs/docs/Using.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ You can also pass in an URL:
2222

2323
You can also pass in an `Asset`:
2424

25-
{% set myAsset = entry.someAsset.first() %}
25+
{% set myAsset = entry.someAsset.one() %}
2626
{% set transVideoUrl = craft.transcoder.getVideoUrl(myAsset, {
2727
"videoFrameRate": 20,
2828
"videoBitRate": "500k",
@@ -97,7 +97,7 @@ You can also pass in a URL:
9797

9898
You can also pass in an `Asset`:
9999

100-
{% set myAsset = entry.someAsset.first() %}
100+
{% set myAsset = entry.someAsset.one() %}
101101
{% set transAudioUrl = craft.transcoder.getAudioUrl(myAsset, {
102102
"audioBitRate": "64k",
103103
"audioSampleRate": 22050,
@@ -113,6 +113,8 @@ In the array you pass in, the default values are used if the key/value pair does
113113
"audioBitRate" => "128k",
114114
"audioSampleRate" => "44100",
115115
"audioChannels" => "2",
116+
'synchronous' => false,
117+
'stripMetadata' => false,
116118
}
117119

118120
These default values come from the `config.php` file.
@@ -151,7 +153,7 @@ You can also pass in an URL:
151153

152154
You can also pass in an `Asset`:
153155

154-
{% set myAsset = entry.someAsset.first() %}
156+
{% set myAsset = entry.someAsset.one() %}
155157
{% set transVideoUrl = craft.transcoder.getVideoUrl(myAsset, {
156158
"videoFrameRate": 20,
157159
"videoBitRate": "500k",
@@ -210,7 +212,7 @@ Transcoder will also automatically add video thumbnails in the Control Panel Ass
210212

211213
Transcoding of video/audio files can take quite a bit of time, so Transcoder provides you with a way to get the status of any currently running transcoding operation via `craft.transcoder.getVideoProgressUrl()` or `craft.transcoder.getAudioProgressUrl()`. For example:
212214

213-
{% set myAsset = entry.someAsset.first() %}
215+
{% set myAsset = entry.someAsset.one() %}
214216
{% set videoOptions = {
215217
"videoFrameRate": 60,
216218
"videoBitRate": "1000k",
@@ -257,7 +259,7 @@ You can also pass in a URL:
257259

258260
You can also pass in an `Asset`:
259261

260-
{% set myAsset = entry.someAsset.first() %}
262+
{% set myAsset = entry.someAsset.one() %}
261263
{% set transVideoUrl = craft.transcoder.getVideoUrl(myAsset, {
262264
"width": 300,
263265
"height": 200,
@@ -316,7 +318,7 @@ You can also pass in a URL:
316318

317319
You can also pass in an `Asset`:
318320

319-
{% set myAsset = entry.someAsset.first() %}
321+
{% set myAsset = entry.someAsset.one() %}
320322
{% set fileInfo = craft.transcoder.getFileInfo(myAsset, true) %}
321323

322324
By passing in `true` as the second argument, we get just a summary of the video/audio file information in an array:

0 commit comments

Comments
 (0)