fixed issue witn npmn

This commit is contained in:
RandyJC
2025-12-08 13:35:52 +01:00
parent 14ea9c75cd
commit 87e9864290
3 changed files with 4 additions and 20 deletions

View File

@@ -11,7 +11,7 @@
], ],
"media": { "media": {
"type": "audio", "type": "audio",
"url": "https://upload.wikimedia.org/wikipedia/commons/transcoded/4/4c/Beethoven_Moonlight_1st_movement.ogg/Beethoven_Moonlight_1st_movement.ogg.mp3" "url": "https://file-examples.com/storage/fee95f49ad692e9489b0fab/2017/11/file_example_WAV_1MG.wav"
}, },
"solution": 1, "solution": 1,
"cooldown": 5, "cooldown": 5,
@@ -32,22 +32,6 @@
"solution": 3, "solution": 3,
"cooldown": 5, "cooldown": 5,
"time": 60 "time": 60
},
{
"question": "What kind of animal is featured here?",
"answers": [
"Dolphin",
"Panda",
"Horse",
"Penguin"
],
"media": {
"type": "youtube",
"url": "https://www.youtube.com/watch?v=2k1qW3D0q6c"
},
"solution": 2,
"cooldown": 5,
"time": 40
} }
] ]
} }

View File

@@ -1,6 +1,6 @@
"use client" "use client"
import { QuestionMedia } from "@rahoot/common/types/game" import type { QuestionMedia as QuestionMediaType } from "@rahoot/common/types/game"
import clsx from "clsx" import clsx from "clsx"
import { useEffect, useMemo, useRef, useState } from "react" import { useEffect, useMemo, useRef, useState } from "react"
@@ -80,7 +80,7 @@ const extractYoutubeId = (url: string) => {
} }
type Props = { type Props = {
media?: QuestionMedia media?: QuestionMediaType
alt: string alt: string
onPlayChange?: (_playing: boolean) => void onPlayChange?: (_playing: boolean) => void
} }

View File

@@ -1,6 +1,6 @@
"use client" "use client"
import { QuestionMedia, QuizzWithId } from "@rahoot/common/types/game" import type { QuestionMedia, QuizzWithId } from "@rahoot/common/types/game"
import Button from "@rahoot/web/components/Button" import Button from "@rahoot/web/components/Button"
import Input from "@rahoot/web/components/Input" import Input from "@rahoot/web/components/Input"
import { useEvent, useSocket } from "@rahoot/web/contexts/socketProvider" import { useEvent, useSocket } from "@rahoot/web/contexts/socketProvider"