Skip to content

Commit d2b6f40

Browse files
committed
Adds missing label field.
1 parent 66c8784 commit d2b6f40

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

lib/Brightcove/Object/Video/TextTrack.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ class TextTrack extends ObjectBase {
2121
*/
2222
protected $srclang;
2323

24+
/**
25+
* @var string
26+
*/
27+
protected $label;
28+
2429
/**
2530
* @var string
2631
*/
@@ -51,6 +56,7 @@ public function applyJSON(array $json) {
5156
$this->applyProperty($json, 'id');
5257
$this->applyProperty($json, 'src');
5358
$this->applyProperty($json, 'srclang');
59+
$this->applyProperty($json, 'label');
5460
$this->applyProperty($json, 'kind');
5561
$this->applyProperty($json, 'mime_type');
5662
$this->applyProperty($json, 'asset_id');
@@ -109,6 +115,23 @@ public function setSrclang($srclang) {
109115
return $this;
110116
}
111117

118+
/**
119+
* @return string
120+
*/
121+
public function getLabel() {
122+
return $this->label;
123+
}
124+
125+
/**
126+
* @param string $label
127+
* @return TextTrack
128+
*/
129+
public function setLabel($label) {
130+
$this->label = $label;
131+
$this->fieldChanged('label');
132+
return $this;
133+
}
134+
112135
/**
113136
* @return string
114137
*/

0 commit comments

Comments
 (0)