Replies: 1 comment
-
change your playing props into your state |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current Behavior
When the modal is closed the player continues to play the video.
Expected Behavior
Since i set the playing property to false, i expect the player to stop playing, but i continue to hear the sound.
Steps to Reproduce
Next.js 14
Environment
Code
`"use client";
import React, {useState} from 'react';
import {Button, Modal} from "antd";
import ReactPlayer from "react-player";
const video = "someURL.mp4";
const Page = () => {
const [isModalOpen, setIsModalOpen] = useState(false);
const [isPlaying, setIsPlaying] = useState(false);
};
export default Page;
`
Beta Was this translation helpful? Give feedback.
All reactions