Skip to content

Commit abb8777

Browse files
author
Rafael Miranda
committed
Release 2.14.1
1 parent 3a397a4 commit abb8777

File tree

4 files changed

+107
-4
lines changed

4 files changed

+107
-4
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,25 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [v2.14.1](https://github.com/openplayerjs/openplayerjs/compare/v2.14.0...v2.14.1)
8+
9+
- Removed flag that prevented play to work as expected with preload="none"; fixes #403 [`#403`](https://github.com/openplayerjs/openplayerjs/issues/403)
10+
- Added alt element in subitems; reduced encoded SVG size to close #401; added validations to check if value is NaN and avoid setting it if so [`#401`](https://github.com/openplayerjs/openplayerjs/issues/401)
11+
- Added new configuration setup for custom controls to insert it in a specific index if indicated; removed project from list [`8e3dbf9`](https://github.com/openplayerjs/openplayerjs/commit/8e3dbf97507cb69778a068a73f1ff957387633a1)
12+
- Fixed issue with `alt` attribute not being set correctly [`284da73`](https://github.com/openplayerjs/openplayerjs/commit/284da73678aa97f2c7d14b39d8d2e1eb445ebebf)
13+
- Fixed vulnerability [`2013179`](https://github.com/openplayerjs/openplayerjs/commit/2013179e783f184d8a1eead2d21a694dba42dd38)
14+
715
#### [v2.14.0](https://github.com/openplayerjs/openplayerjs/compare/v2.13.3...v2.14.0)
816

17+
> 10 January 2024
18+
919
- build(deps-dev): bump follow-redirects from 1.15.1 to 1.15.4 [`#400`](https://github.com/openplayerjs/openplayerjs/pull/400)
1020
- build(deps-dev): bump browserify-sign from 4.2.1 to 4.2.2 [`#395`](https://github.com/openplayerjs/openplayerjs/pull/395)
1121
- build(deps-dev): bump @babel/traverse from 7.18.2 to 7.23.2 [`#394`](https://github.com/openplayerjs/openplayerjs/pull/394)
1222
- build(deps-dev): bump postcss from 8.4.14 to 8.4.31 [`#393`](https://github.com/openplayerjs/openplayerjs/pull/393)
23+
- Release 2.14.0 [`0cebf05`](https://github.com/openplayerjs/openplayerjs/commit/0cebf05570a9e9ba8e3475c13557a5302482e088)
1324
- chore: Updated pipeline [`d43716f`](https://github.com/openplayerjs/openplayerjs/commit/d43716fbaef3f1dfd8a1fc67567b76132e2a5460)
1425
- chore: Updated pipeline [`fe26687`](https://github.com/openplayerjs/openplayerjs/commit/fe26687ab178cb21c21d7b3171893b836ccabec3)
15-
- chore: Updated pipeline [`fae3b89`](https://github.com/openplayerjs/openplayerjs/commit/fae3b8979b3093439fd3719c3661fb951c0403d0)
1626

1727
#### [v2.13.3](https://github.com/openplayerjs/openplayerjs/compare/2.13.2...v2.13.3)
1828

index.html

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<!DOCTYPE html>
2+
<html lang="en-US">
3+
<head>
4+
<title>Test</title>
5+
<link rel="stylesheet" href="dist/openplayer.css?=i=82378" />
6+
</head>
7+
<body>
8+
<div style="width: 600px; height: 400px;">
9+
<video id="playerw" class="op-player__media aspect-video" preload="none" crossorigin="anonymous" poster="https://img.nashrin.com/h3n4/poster.jpg?format=webp">
10+
<source src="https://vfd.nashrin.com/h3n4/playlist.m3u8" type="application/x-mpegURL"/>
11+
</video>
12+
</div>
13+
<script src="dist/openplayer.js?m=8723678324"></script>
14+
<script>
15+
const options = {
16+
mode: "fit",
17+
ads: {
18+
// src: "https://tavoos.net/services/vast/VRTCJo9q-PwnV-Auv4-PjUe-AQE6kQYmnFWk/126?format=VAST",
19+
src: 'https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/vmap_ad_samples&sz=640x480&cust_params=sar%3Da0f2&ciu_szs=300x250&ad_rule=1&gdfp_req=1&output=vmap&unviewed_position_start=1&env=vp&impl=s&correlator=',
20+
language: "fa",
21+
debug: true,
22+
},
23+
showLoaderOnInit: false,
24+
detachMenus: true,
25+
forceNative: false,
26+
useDeviceVolume: true,
27+
pauseOthers: true,
28+
labels: {
29+
auto: "اتوماتیک",
30+
captions: "زیر نویس",
31+
click: `برای صدا کلیک کنید`,
32+
fullscreen: "Fullscreen",
33+
lang: {
34+
fa: "فارسی"
35+
},
36+
levels: "تغییر کیفیت",
37+
//live: "پخش زنده",
38+
mediaLevels: "تغییر کیفیت",
39+
mute: "بی‌صدا",
40+
off: "خاموش",
41+
pause: "متوقف",
42+
play: "پخش",
43+
progressRail: "Time Rail",
44+
progressSlider: "Time Slider",
45+
settings: "تنظیمات",
46+
speed: "سرعت پخش",
47+
speedNormal: "عادی",
48+
tap: `برای صدا دار کردن کلیک کنید`,
49+
toggleCaptions: "تغییر زیرنویس",
50+
unmute: `برای صدا کلیک کنید`,
51+
volume: "تنظیم صدا",
52+
volumeControl: "کنترل صدا",
53+
volumeSlider: "کنترل صدا",
54+
},
55+
onError: function onError(e) {
56+
// console.log("error", e);
57+
},
58+
// hls: {
59+
// startLevel: -1,
60+
// enableWorker: true,
61+
// autoStartLoad: true,
62+
// maxBufferLength: 30,
63+
// maxMaxBufferLength: 30,
64+
// emeEnabled: true,
65+
// smoothQualityChange: true,
66+
// overrideNative: true
67+
// },
68+
media: {
69+
pauseOnClick: true,
70+
},
71+
};
72+
73+
const player = new OpenPlayerJS('playerw', options);
74+
75+
player.addControl({
76+
id: 'next',
77+
position: "bottom-right",
78+
showInAds: false,
79+
type: "img",
80+
alt:"بعدی",
81+
custom: true,
82+
icon: '/img/nexticon.svg',
83+
title: "بعدی :",
84+
click: (e) => {
85+
e.preventDefault();
86+
//router.push(`/v/${next.uid}`);
87+
},
88+
89+
});
90+
player.init();
91+
</script>
92+
</body>
93+
</html>

package-lock.json

Lines changed: 2 additions & 2 deletions
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": "openplayerjs",
3-
"version": "2.14.0",
3+
"version": "2.14.1",
44
"homepage": "https://www.openplayerjs.com/",
55
"author": {
66
"name": "Rafael Miranda",

0 commit comments

Comments
 (0)