Skip to content

Commit 21ad7e7

Browse files
committed
clean files
1 parent 21205d4 commit 21ad7e7

File tree

8 files changed

+22
-22
lines changed

8 files changed

+22
-22
lines changed

β€Ždemo/package-lock.jsonβ€Ž

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždemo/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"prismjs": "^1.25.0",
1515
"react": "17.0.2",
1616
"react-dom": "17.0.2",
17-
"react-lite-youtube-embed": "2.1.1"
17+
"react-lite-youtube-embed": "2.1.2-a"
1818
}
1919
}

β€Ždist/index.es.jsxβ€Ž

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždist/index.es.jsx.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždist/index.jsxβ€Ž

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždist/index.jsx.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-lite-youtube-embed",
3-
"version": "2.1.1",
3+
"version": "2.1.3",
44
"description": "A private by default, faster and cleaner YouTube embed component for React applications",
55
"main": "dist/index.jsx",
66
"module": "dist/index.es.jsx",

β€Žsrc/lib/index.tsxβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export default function LiteYouTubeEmbed(props: LiteYouTube) {
3737
const videoTitle = props.title;
3838
const posterImp = props.poster || "hqdefault";
3939
const paramsImp = `&${props.params}` || "";
40+
const mutedImp = props.muted ? "&mute=1" : "";
4041
const announceWatch = props.announce || "Watch";
4142
const format = props.webp ? 'webp' : 'jpg';
4243
const vi = props.webp ? 'vi_webp' : 'vi'
@@ -50,10 +51,9 @@ export default function LiteYouTubeEmbed(props: LiteYouTube) {
5051
? "https://www.youtube.com"
5152
: "https://www.youtube-nocookie.com";
5253

53-
const muted = props.muted ? "&mute=1" : "";
5454
const iframeSrc = !props.playlist
55-
? `${ytUrl}/embed/${videoId}?autoplay=1${muted}${paramsImp}`
56-
: `${ytUrl}/embed/videoseries?autoplay=1${muted}&list=${videoId}${paramsImp}`;
55+
? `${ytUrl}/embed/${videoId}?autoplay=1&state=1${mutedImp}${paramsImp}`
56+
: `${ytUrl}/embed/videoseries?autoplay=1${mutedImp}&list=${videoId}${paramsImp}`;
5757

5858
const activatedClassImp = props.activatedClass || "lyt-activated";
5959
const adNetworkImp = props.adNetwork || false;

0 commit comments

Comments
Β (0)