Skip to content

Commit b44e06e

Browse files
committed
Fixed .first() -> .one() in docs
Signed-off-by: Andrew Welch <andrew@nystudio107.com>
1 parent 5d60c54 commit b44e06e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/docs/Using.md

Lines changed: 6 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,
@@ -151,7 +151,7 @@ You can also pass in an URL:
151151

152152
You can also pass in an `Asset`:
153153

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

211211
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:
212212

213-
{% set myAsset = entry.someAsset.first() %}
213+
{% set myAsset = entry.someAsset.one() %}
214214
{% set videoOptions = {
215215
"videoFrameRate": 60,
216216
"videoBitRate": "1000k",
@@ -257,7 +257,7 @@ You can also pass in a URL:
257257

258258
You can also pass in an `Asset`:
259259

260-
{% set myAsset = entry.someAsset.first() %}
260+
{% set myAsset = entry.someAsset.one() %}
261261
{% set transVideoUrl = craft.transcoder.getVideoUrl(myAsset, {
262262
"width": 300,
263263
"height": 200,
@@ -316,7 +316,7 @@ You can also pass in a URL:
316316

317317
You can also pass in an `Asset`:
318318

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

322322
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)