mirador-annotation-editor-video 0.0.23 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -49,7 +49,7 @@ function mapStateToProps(state, {
|
|
|
49
49
|
});
|
|
50
50
|
// TODO add check on audioResources getVisibleCanvasAudioResources
|
|
51
51
|
|
|
52
|
-
if (videoResources) {
|
|
52
|
+
if (videoResources && videoResources.length > 0) {
|
|
53
53
|
_playerReferences.playerReferences.init(state, windowId, _VideosReferences.VideosReferences, actions);
|
|
54
54
|
} else {
|
|
55
55
|
_playerReferences.playerReferences.init(state, windowId, _OSDReferences.OSDReferences, actions);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mirador-annotation-editor-video",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.43",
|
|
4
4
|
"description": "Mirador 4 plugin wrapping Mirador Annotation Editor plugin and adding video annotation support",
|
|
5
5
|
"main": "es/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@mui/icons-material": "^5.11.16",
|
|
26
26
|
"mirador": "npm:mirador-video@1.0.14",
|
|
27
|
-
"mirador-annotations": "npm:mirador-annotation-editor@1.0.
|
|
27
|
+
"mirador-annotations": "npm:mirador-annotation-editor@1.0.68",
|
|
28
28
|
"react-i18next": "^15.4.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
@@ -35,10 +35,9 @@ function mapStateToProps(state, { id: companionWindowId, windowId }) {
|
|
|
35
35
|
const videoResources = getVisibleCanvasVideoResources(state, { windowId });
|
|
36
36
|
// TODO add check on audioResources getVisibleCanvasAudioResources
|
|
37
37
|
|
|
38
|
-
if(videoResources){
|
|
38
|
+
if(videoResources && videoResources.length > 0){
|
|
39
39
|
playerReferences.init(state, windowId,VideosReferences, actions);
|
|
40
40
|
}else{
|
|
41
|
-
|
|
42
41
|
playerReferences.init(state, windowId,OSDReferences, actions);
|
|
43
42
|
}
|
|
44
43
|
// This could be removed but it's serve the useEffect in AnnotationForm for now.
|