Spaces:
Sleeping
Sleeping
Commit ·
b875c69
1
Parent(s): f57be92
patch
Browse files
frontend/src/context/MusicPlayerContext.js
CHANGED
|
@@ -103,9 +103,6 @@ export const MusicPlayerProvider = ({ children }) => {
|
|
| 103 |
if (videoRef.current) {
|
| 104 |
videoRef.current.src = source;
|
| 105 |
videoRef.current.load();
|
| 106 |
-
videoRef.current.play().catch((error) => {
|
| 107 |
-
console.error("Error playing video:", error);
|
| 108 |
-
});
|
| 109 |
}
|
| 110 |
};
|
| 111 |
|
|
|
|
| 103 |
if (videoRef.current) {
|
| 104 |
videoRef.current.src = source;
|
| 105 |
videoRef.current.load();
|
|
|
|
|
|
|
|
|
|
| 106 |
}
|
| 107 |
};
|
| 108 |
|