# تعديل مشغل الفيديو بخطوات بسيطة

**URL:** <https://meta.discourse.org/t/video/279149>\
**Category:** Development\
**Tags:** chinese-translation\
**Created:** [15 سبتمبر 2023، 1:11م UTC](https://meta.discourse.org/t/video/279149 "2023-09-15T13:11:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![zengyunsi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zengyunsi/32/265722_2.png) [@zengyunsi](https://meta.discourse.org/u/zengyunsi)\
**Post date:** [17 سبتمبر 2023، 6:51ص UTC](https://meta.discourse.org/t/video/279149/3 "2023-09-17T06:51:25Z")

</div>

يوجد خطأ في المحتوى الرئيسي، مما سيؤدي إلى حدوث خلل. عند التحميل من الصفحة الرئيسية، لن يعمل المشغل. إليك ما قمت بتعديله مقابل 50 دولارًا، وأشاركه مجانًا مع من يحتاج إليه. المشغل يعمل بشكل جيد جدًا، ويستحق التوصية به!

المزايا:  
اللون متناسق  
المشغل يتكيف مع الشاشة من البداية، وليس من الصغير إلى الكبير  
وظائف متعددة

النشر، يكفي وجود وسم video

```plaintext
<video controls>
        <source src="https://xxxx/test.mp4" type="video/mp4">
    </video>

```

أضف في الرأس، ويفضل تنزيل css و js إلى شبكة توصيل المحتوى (CDN) الخاصة بك.

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/4/9/d49657ea3d14fefb62660d11c1216423f0eca01f.png)

```plaintext
<link rel="stylesheet" href="https://cdn.plyr.io/3.6.12/plyr.css">
<script src="https://cdn.openfa.net/css/plyr.js"></script>

```

أضف في جسم المحتوى الرئيسي

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/4/7/a47800c4f4068690aab0305e685955fb8e59c5db.png)

```plaintext
<script type="text/javascript">

let curUrl = "";

setInterval(() => {
    let newUrl = location.href;
    if (curUrl !== newUrl) {
        curUrl = newUrl
        if (document.querySelector("video")) {
            new Plyr('video')
        }
    }
}, 10)
 

```

النتيجة النهائية:

يمكنك أيضًا ضبط وضوح الترجمة وما إلى ذلك

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/d/7/7d712a605c0ee2cb405f79b8b3b7f5f61e74d379.jpeg)

---

_[View the full topic](https://meta.discourse.org/t/video/279149)._
