We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6657ae6 + fa99d11 commit d0d9a5bCopy full SHA for d0d9a5b
src/Video/Kaltura.php
@@ -56,6 +56,23 @@ function captionsLanguage($captions)
56
return empty($captions) ? self::KALTURA_SUCCESS : self::KALTURA_FAIL;
57
}
58
59
+ /**
60
+ * Checks to see if a video is using auto-generated caption information in Kaltura
61
+ * @param array $captions
62
+ * @return int
63
+ */
64
+ public function captionsAutoGenerated($captions)
65
+ {
66
+ // Looks through the captions and checks if any were not auto-generated
67
+ foreach ($captions as $captionItem) {
68
+ if ($captionItem->version > 1) {
69
+ return self::KALTURA_SUCCESS;
70
+ }
71
72
+
73
+ return empty($captions) ? self::KALTURA_SUCCESS : self::KALTURA_FAIL;
74
75
76
/**
77
* Checks to see if the provided link URL is a Kaltura video. If so, it returns
78
* the video code, if not, it returns null.
0 commit comments