@icvdeveloper/common-module 2.6.0 → 2.6.2
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.
package/CHANGELOG.md
CHANGED
package/dist/module.json
CHANGED
|
@@ -13,15 +13,13 @@ import {
|
|
|
13
13
|
useConferencesStore,
|
|
14
14
|
useAuthStore
|
|
15
15
|
} from '../../store';
|
|
16
|
+
import { usePlayerConfigStore } from "../../store/modalPlayerConfig";
|
|
17
|
+
|
|
16
18
|
import {
|
|
17
19
|
modalContentEventHook,
|
|
18
|
-
|
|
19
|
-
setIsProfileVisibleEventHook,
|
|
20
|
-
setPlayerConferenceEventHook,
|
|
21
|
-
setPlayerPresentationEventHook
|
|
20
|
+
setIsProfileVisibleEventHook
|
|
22
21
|
} from '../../composables/useEventHooks';
|
|
23
22
|
import type { Ref } from 'vue';
|
|
24
|
-
import type { PlayerPresentation } from '../../models/conference';
|
|
25
23
|
import type { NavigationClassObj } from '../../@types/components';
|
|
26
24
|
import type { Conference } from '../../models/conference';
|
|
27
25
|
import type { ContentData } from '../../models/vButton';
|
|
@@ -76,6 +74,7 @@ const { classBinding } = useClassBinding();
|
|
|
76
74
|
const { logout } = useAuthStore();
|
|
77
75
|
const { globalConfigValue } = useTemplateConfigsStore();
|
|
78
76
|
const { getEnabled } = useNavigationConfigStore();
|
|
77
|
+
const { emitStreamTest } = usePlayerConfigStore();
|
|
79
78
|
|
|
80
79
|
const { getPresentersLabel } = usePresenters(currentConference as Ref<Conference>);
|
|
81
80
|
|
|
@@ -116,25 +115,6 @@ const emitSearchModal = (): void => {
|
|
|
116
115
|
modalContentEventHook.trigger(modalContent);
|
|
117
116
|
};
|
|
118
117
|
|
|
119
|
-
const emitStreamTest = (): void => {
|
|
120
|
-
const streamPres: PlayerPresentation = {
|
|
121
|
-
player_type: 'live',
|
|
122
|
-
data: {
|
|
123
|
-
id: 0,
|
|
124
|
-
access: true,
|
|
125
|
-
name: 'Stream Test',
|
|
126
|
-
description: 'This is a test stream. Please confirm you can see the video and can hear the audio clearly prior to the event.',
|
|
127
|
-
is_live: true,
|
|
128
|
-
video_url: '',
|
|
129
|
-
track: {
|
|
130
|
-
channel: 'stream-test'
|
|
131
|
-
}
|
|
132
|
-
}};
|
|
133
|
-
setPlayerPresentationEventHook.trigger(streamPres);
|
|
134
|
-
setPlayerConferenceEventHook.trigger(currentConference);
|
|
135
|
-
setIsPlayerVisibleEventHook.trigger(true);
|
|
136
|
-
};
|
|
137
|
-
|
|
138
118
|
const logoutReload = (): void => {
|
|
139
119
|
logout()
|
|
140
120
|
.then(() => {
|
|
@@ -215,7 +195,7 @@ const logoutReload = (): void => {
|
|
|
215
195
|
<nuxt-link
|
|
216
196
|
v-if="item.slug == 'stream-test'"
|
|
217
197
|
:class="['cursor-pointer', classBinding(classObject, 'navigationItemLink', 'nav-link')]"
|
|
218
|
-
@click.enter="emitStreamTest"
|
|
198
|
+
@click.enter="emitStreamTest(currentConference)"
|
|
219
199
|
>
|
|
220
200
|
{{ item.label }}
|
|
221
201
|
</nuxt-link>
|
|
@@ -12,6 +12,7 @@ type PlayerConfigStore = {
|
|
|
12
12
|
getlivePresentations: Ref<{
|
|
13
13
|
[key: number]: number;
|
|
14
14
|
}>;
|
|
15
|
+
emitStreamTest: (payload: Conference) => void;
|
|
15
16
|
setIsPlayerVisible: (payload: boolean) => void;
|
|
16
17
|
setSelectedPresentation: (payload: PlayerPresentation) => void;
|
|
17
18
|
setLivePresentations: (payload: {
|
|
@@ -23,5 +24,5 @@ type PlayerConfigStore = {
|
|
|
23
24
|
setChatroomId: (payload: string) => void;
|
|
24
25
|
updateSelectedPresentationAccess: (payload: boolean) => void;
|
|
25
26
|
};
|
|
26
|
-
export declare const usePlayerConfigStore: import("pinia").StoreDefinition<"playerConfig", import("pinia")._UnwrapAll<Pick<PlayerConfigStore, "selectedContent" | "isPlayerVisible" | "playerPresentation" | "livePresentations" | "playerConference" | "chatroomId" | "getlivePresentations">>, Pick<PlayerConfigStore, never>, Pick<PlayerConfigStore, "setIsPlayerVisible" | "setSelectedPresentation" | "setLivePresentations" | "setSelectedConference" | "setSelectedConferenceAccess" | "setSelectedContent" | "setChatroomId" | "updateSelectedPresentationAccess">>;
|
|
27
|
+
export declare const usePlayerConfigStore: import("pinia").StoreDefinition<"playerConfig", import("pinia")._UnwrapAll<Pick<PlayerConfigStore, "selectedContent" | "isPlayerVisible" | "playerPresentation" | "livePresentations" | "playerConference" | "chatroomId" | "getlivePresentations">>, Pick<PlayerConfigStore, never>, Pick<PlayerConfigStore, "emitStreamTest" | "setIsPlayerVisible" | "setSelectedPresentation" | "setLivePresentations" | "setSelectedConference" | "setSelectedConferenceAccess" | "setSelectedContent" | "setChatroomId" | "updateSelectedPresentationAccess">>;
|
|
27
28
|
export {};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { ref, computed } from "vue";
|
|
2
2
|
import { defineStore } from "pinia";
|
|
3
|
+
import {
|
|
4
|
+
setIsPlayerVisibleEventHook,
|
|
5
|
+
setPlayerConferenceEventHook,
|
|
6
|
+
setPlayerPresentationEventHook
|
|
7
|
+
} from "../composables/useEventHooks.mjs";
|
|
3
8
|
export const usePlayerConfigStore = defineStore("playerConfig", () => {
|
|
4
9
|
const isPlayerVisible = ref(false);
|
|
5
10
|
const playerPresentation = ref({ "player_type": "", "data": {} });
|
|
@@ -10,6 +15,25 @@ export const usePlayerConfigStore = defineStore("playerConfig", () => {
|
|
|
10
15
|
const getlivePresentations = computed(() => {
|
|
11
16
|
return livePresentations.value;
|
|
12
17
|
});
|
|
18
|
+
const emitStreamTest = (payload) => {
|
|
19
|
+
const streamPres = {
|
|
20
|
+
player_type: "live",
|
|
21
|
+
data: {
|
|
22
|
+
id: 0,
|
|
23
|
+
access: true,
|
|
24
|
+
name: "Stream Test",
|
|
25
|
+
description: "This is a test stream. Please confirm you can see the video and can hear the audio clearly prior to the event.",
|
|
26
|
+
is_live: true,
|
|
27
|
+
video_url: "",
|
|
28
|
+
track: {
|
|
29
|
+
channel: "stream-test"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
setPlayerPresentationEventHook.trigger(streamPres);
|
|
34
|
+
setPlayerConferenceEventHook.trigger(payload);
|
|
35
|
+
setIsPlayerVisibleEventHook.trigger(true);
|
|
36
|
+
};
|
|
13
37
|
const setIsPlayerVisible = (payload) => {
|
|
14
38
|
isPlayerVisible.value = payload;
|
|
15
39
|
};
|
|
@@ -46,6 +70,7 @@ export const usePlayerConfigStore = defineStore("playerConfig", () => {
|
|
|
46
70
|
selectedContent,
|
|
47
71
|
chatroomId,
|
|
48
72
|
getlivePresentations,
|
|
73
|
+
emitStreamTest,
|
|
49
74
|
setIsPlayerVisible,
|
|
50
75
|
setSelectedPresentation,
|
|
51
76
|
setLivePresentations,
|