File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ class Exif
59
59
const CONTENTIDENTIFIER = 'contentIdentifier ' ;
60
60
const FRAMERATE = 'framerate ' ;
61
61
const DURATION = 'duration ' ;
62
+ const MICROVIDEOOFFSET = 'MicroVideoOffset ' ;
62
63
63
64
/**
64
65
* The mapped EXIF data
@@ -1153,4 +1154,31 @@ public function getDuration()
1153
1154
1154
1155
return $ this ->data [self ::DURATION ];
1155
1156
}
1157
+
1158
+ /**
1159
+ * Sets the duration value
1160
+ *
1161
+ * @param string $value
1162
+ * @return \PHPExif\Exif
1163
+ */
1164
+ public function setMicroVideoOffset ($ value )
1165
+ {
1166
+ $ this ->data [self ::MICROVIDEOOFFSET ] = $ value ;
1167
+
1168
+ return $ this ;
1169
+ }
1170
+
1171
+ /**
1172
+ * Returns duration, if it exists
1173
+ *
1174
+ * @return string|boolean
1175
+ */
1176
+ public function getMicroVideoOffset ()
1177
+ {
1178
+ if (!isset ($ this ->data [self ::MICROVIDEOOFFSET ])) {
1179
+ return false ;
1180
+ }
1181
+
1182
+ return $ this ->data [self ::MICROVIDEOOFFSET ];
1183
+ }
1156
1184
}
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ class Exiftool implements MapperInterface
60
60
const LENS = 'ExifIFD:LensModel ' ;
61
61
const SUBJECT = 'XMP-dc:Subject ' ;
62
62
const CONTENTIDENTIFIER = 'Apple:ContentIdentifier ' ;
63
+ const MICROVIDEOOFFSET = 'XMP-GCamera:MicroVideoOffset ' ;
63
64
64
65
const DATETIMEORIGINAL_QUICKTIME = 'QuickTime:CreationDate ' ;
65
66
const IMAGEHEIGHT_VIDEO = 'Composite:ImageSize ' ;
@@ -135,6 +136,7 @@ class Exiftool implements MapperInterface
135
136
self ::FRAMERATE_QUICKTIME_3 => Exif::FRAMERATE ,
136
137
self ::DURATION => Exif::DURATION ,
137
138
self ::DURATION_QUICKTIME => Exif::DURATION ,
139
+ self ::MICROVIDEOOFFSET => Exif::MICROVIDEOOFFSET ,
138
140
);
139
141
140
142
/**
You can’t perform that action at this time.
0 commit comments