customvidplayer 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -127,9 +127,9 @@ var VideoPlayer = function VideoPlayer(_a) {
127
127
  className: "section-indicator",
128
128
  style: {
129
129
  left: videoRef.current ? "".concat(section.timestamp / videoRef.current.duration * 100, "%") : '0%',
130
- backgroundColor: section.color || '#007bff'
130
+ backgroundColor: section.color || '#ff5722'
131
131
  }
132
- }, section.name);
132
+ });
133
133
  })));
134
134
  };
135
135
  VideoPlayer.propTypes = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "customvidplayer",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "Customizable video player with section navigation and theming.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +1,4 @@
1
- import React, { useState, useRef, useEffect } from "react";
1
+ import React, { useState, useRef } from "react";
2
2
  import PropTypes from "prop-types";
3
3
  import "./../styles/defaultTheme.css";
4
4
 
@@ -74,11 +74,9 @@ const VideoPlayer = ({ videoSrc, sections, onSectionChange, theme }) => {
74
74
  className="section-indicator"
75
75
  style={{
76
76
  left: videoRef.current ? `${(section.timestamp / videoRef.current.duration) * 100}%` : '0%',
77
- backgroundColor: section.color || '#007bff',
77
+ backgroundColor: section.color || '#ff5722',
78
78
  }}
79
- >
80
- {section.name}
81
- </div>
79
+ />
82
80
  ))}
83
81
  </div>
84
82
  </div>
@@ -3,17 +3,17 @@
3
3
  width: 100%;
4
4
  max-width: 800px;
5
5
  margin: 0 auto;
6
+ background: #f0f0f0;
7
+ border-radius: 10px;
8
+ overflow: hidden;
6
9
  }
7
10
 
8
11
  .video-element {
9
12
  width: 100%;
10
- border-radius: 5px;
13
+ border-radius: 10px 10px 0 0;
11
14
  }
12
15
 
13
- .skip-button {
14
- position: absolute;
15
- bottom: 10px;
16
- right: 10px;
16
+ .skip-button, button {
17
17
  padding: 8px 12px;
18
18
  background: #ff5722;
19
19
  color: white;
@@ -22,6 +22,10 @@
22
22
  cursor: pointer;
23
23
  }
24
24
 
25
+ .skip-button:hover, button:hover {
26
+ background: #e64a19;
27
+ }
28
+
25
29
  .section {
26
30
  cursor: pointer;
27
31
  margin: 5px 0;
@@ -31,7 +35,10 @@
31
35
  .bottom-bar {
32
36
  display: flex;
33
37
  justify-content: space-between;
38
+ align-items: center;
34
39
  padding: 10px;
40
+ background: rgba(0, 0, 0, 0.7);
41
+ color: white;
35
42
  }
36
43
 
37
44
  .progress-bar {
@@ -43,8 +50,7 @@
43
50
 
44
51
  .section-indicator {
45
52
  position: absolute;
46
- width: 5px;
47
53
  height: 100%;
48
- background: #007bff; /* Default color */
54
+ background: #ff5722;
49
55
  }
50
56