How To Make A Responsive Video Playlist Using HTML CSS & JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 พ.ย. 2024

ความคิดเห็น • 96

  • @MrWebDesignerAnas
    @MrWebDesignerAnas  2 ปีที่แล้ว +19

    I forgot to add 2 lines in javascript file here is the updated javascript code :
    let videoList = document.querySelectorAll('.video-list-container .list');
    videoList.forEach(vid =>{
    vid.onclick = () =>{
    videoList.forEach(remove =>{remove.classList.remove('active')});
    vid.classList.add('active');
    let src = vid.querySelector('.list-video').src;
    let title = vid.querySelector('.list-title').innerHTML;
    document.querySelector('.main-video-container .main-video').src = src;
    document.querySelector('.main-video-container .main-video').play();
    document.querySelector('.main-video-container .main-vid-title').innerHTML = title;
    };
    });

    • @aniketashokbhise
      @aniketashokbhise 2 ปีที่แล้ว +2

      😮

    • @Gacha_Hannas
      @Gacha_Hannas 2 ปีที่แล้ว

      Madrigal

    • @aniketashokbhise
      @aniketashokbhise 2 ปีที่แล้ว

      @@Gacha_Hannas 😂

    • @kiraishagaming
      @kiraishagaming ปีที่แล้ว

      @MrWebDesignerAnas I want to find a way to use instead of tag but haven't found it yet. As when I click on the embed video it display at the same place not jump to the main video. Any possible ways to solve this?

  • @theprogrammer5583
    @theprogrammer5583 2 ปีที่แล้ว +2

    Really satisfying design if i have software company i definitely hire you for your creativity

  • @pranavbakare8922
    @pranavbakare8922 2 ปีที่แล้ว +1

    Seriously amazing 👏 I am definitely going to make this
    🔥🔥🔥🔥

  • @michaelrobens9958
    @michaelrobens9958 2 ปีที่แล้ว

    A superb explanation and excellent code, which worked without a hitch. Thankyou

  • @eduardoeltortuga
    @eduardoeltortuga ปีที่แล้ว

    Thanks mate! That was very kind and generous of you!

  • @imtiazahmed7539
    @imtiazahmed7539 2 ปีที่แล้ว +3

    Really really awesome

  • @batvase
    @batvase 10 หลายเดือนก่อน

    First thanks for the source! Really helpful. I have one question: how to add subtitles for different videos in the list? If I add after tag for first clip, when I click second, third etc. it shows subtitles of the first.
    Thanks in advance!

  • @Divin3so
    @Divin3so 2 ปีที่แล้ว

    This is so amazing man, so helpful! Thanks so much for your contribution!

  • @kudaykumar1261
    @kudaykumar1261 2 ปีที่แล้ว +1

    Its really help full sir. Thank you so much.

  • @azaalnaimi6536
    @azaalnaimi6536 2 ปีที่แล้ว +1

    Very amazing 👏💫...

  • @mrsaefulloh9209
    @mrsaefulloh9209 2 ปีที่แล้ว +1

    such amazing bro! thank you so much!

  • @WebMaster600
    @WebMaster600 2 ปีที่แล้ว +2

    Awesome 😎

  •  11 หลายเดือนก่อน

    bu tasarimdaki gibi wordpreste nasil uygulayabiliriz, herhan bir bildiginiz eklenti var mi?

  • @itumelengmongwegi7174
    @itumelengmongwegi7174 2 ปีที่แล้ว

    Mr. WD this is awesome, thank you very much.

  • @sarabibrahim8312
    @sarabibrahim8312 ปีที่แล้ว

    So beautiful

  • @ketanparmar2876
    @ketanparmar2876 2 ปีที่แล้ว +1

    Thank you sir...

  • @Vcubed1080
    @Vcubed1080 2 ปีที่แล้ว +1

    Great playlist, thanks.
    One question. Most of the videos I post have a 1 -2 sec fade in so there is no image for the video in the playlist, only a black box. How can I replace the image the playlist takes from the beginning of the video, with a static jpg image?

  • @andrejkling3886
    @andrejkling3886 2 ปีที่แล้ว +2

    Thank you so much…

  • @BijayPradhan-j2b
    @BijayPradhan-j2b 10 หลายเดือนก่อน

    Thanks a lot.

  • @rickytechbin4963
    @rickytechbin4963 2 ปีที่แล้ว +1

    Great job

  • @farhansyamsuddin2364
    @farhansyamsuddin2364 ปีที่แล้ว

    big tahnks

  •  ปีที่แล้ว

    Hello;
    I wanted to make a small addition to these codes, but I could not get out of it. Can you help me? Can the descriptions of the videos we upload be displayed in the space below, just like TITLE? I want it to give information about the video we uploaded with the tag. Each video will also change in the section below. I tried a lot, but when I make changes in JAVA, videos usually stop working.
    I would be very happy if you support me in this matter.

    • @MrWebDesignerAnas
      @MrWebDesignerAnas  ปีที่แล้ว +1

      use the same method for descriptions as you are using for title.
      I'll try soon to make another design like this but with the description as well.

    •  ปีที่แล้ว

      @@MrWebDesignerAnas thank you so much

  • @webcoding8333
    @webcoding8333 2 ปีที่แล้ว +1

    Cool 👍

  •  ปีที่แล้ว

    Hello;
    First of all, thank you very much for this useful work. I have a question. Can we make the first video, the main video file, start automatically? What code should we use for this? Thank you.

  • @cristiannagy190
    @cristiannagy190 ปีที่แล้ว

    Do you have a video in which you do the same thing but the videos can be uploaded/deleted using php database?

  • @sunaryo1039
    @sunaryo1039 2 ปีที่แล้ว

    thank you very much

  • @balaclavagroove
    @balaclavagroove ปีที่แล้ว +1

    how to make iptv Playlist Using HTML CSS & JavaScript?......

  • @suspiciousgaming371
    @suspiciousgaming371 ปีที่แล้ว

    Thank you so much man

  • @sharifdarjenkyleabdulhamid8322
    @sharifdarjenkyleabdulhamid8322 ปีที่แล้ว

    THANK YOU SO MUCH

  • @ijajulislam7223
    @ijajulislam7223 2 ปีที่แล้ว

    Awsome

  • @aniketashokbhise
    @aniketashokbhise 2 ปีที่แล้ว +2

    1 comments. 1 first like 😁😅

  • @pranavsawant
    @pranavsawant 2 ปีที่แล้ว

    Thank you so much :)

  • @_nmsn2766
    @_nmsn2766 ปีที่แล้ว

    thanks sir
    How do I disable downloading at full screen
    On the computer, there is no download, but on mobile devices
    Do you have a code to cancel the download of the video

  • @pongsatornthaseesuk1103
    @pongsatornthaseesuk1103 2 ปีที่แล้ว

    very wonderful,.thank you

  • @mohamedchekalil4981
    @mohamedchekalil4981 2 ปีที่แล้ว

    Thanks 💝

  • @thuancoletn
    @thuancoletn ปีที่แล้ว

    thanks

  • @mdtohidulislam6003
    @mdtohidulislam6003 2 ปีที่แล้ว +1

    Brother If I refresh the page I can not able to play other videos from the list. How to solve it?

    • @MrWebDesignerAnas
      @MrWebDesignerAnas  2 ปีที่แล้ว

      you have to use localstorage for this or php is aslo a good solution but using localstorage to store video classname will be best in javascript

    • @mdtohidulislam6003
      @mdtohidulislam6003 2 ปีที่แล้ว

      @@MrWebDesignerAnas brother, please try to make the same video in react when you will get time...we need it... really love your videos

  • @webbyweb103
    @webbyweb103 2 ปีที่แล้ว +1

    hello sir i want to embed yt vidoes on this playlist how can i do this

    • @MrWebDesignerAnas
      @MrWebDesignerAnas  2 ปีที่แล้ว

      just embed the link and give it the exact classname as used for the videos inside the video-container!

  • @Deus-lo-Vuilt
    @Deus-lo-Vuilt 2 ปีที่แล้ว

    Wow thenks

  • @mckenzieabrham3416
    @mckenzieabrham3416 2 ปีที่แล้ว +2

    Could you please make website with Html css js php React my SQl

  • @TuPapaHL10
    @TuPapaHL10 2 ปีที่แล้ว +1

    Hey, good video, but what is the difference with the video from 7 months ago?

    • @MrWebDesignerAnas
      @MrWebDesignerAnas  2 ปีที่แล้ว +2

      totally different bro! the javascript code is more clear and simple unlike before and the source code is also given!

    • @TuPapaHL10
      @TuPapaHL10 2 ปีที่แล้ว +1

      @@MrWebDesignerAnas you're right, yesterday I only saw the css classes and now I could see the full videos on my PC and I noticed the difference, good video bro keep it up :3

  • @yanderezaf
    @yanderezaf ปีที่แล้ว

    thank you so much! this helps me for final project. i've tried this code and it's all perfect but it seems like i couldn't click the video on the video playlist. it didn't come out on the main video container. does it have something to do with my js?

    • @MrWebDesignerAnas
      @MrWebDesignerAnas  ปีที่แล้ว

      you have to write correct class name or tag name in js code

  • @websatoshi
    @websatoshi ปีที่แล้ว

    hi, how to add youtube video to this player? I will be very happy if you answer

  • @mobacolletion40
    @mobacolletion40 ปีที่แล้ว

    cant u create code like this??? please 🙏🏻🙏🏻🙏🏻 i waiiit sirrrr ...please ❤️❤️❤️

  • @qiziqarli_videolar_N1
    @qiziqarli_videolar_N1 2 ปีที่แล้ว

    thank you

  • @thelastmuslimsamurai3109
    @thelastmuslimsamurai3109 2 ปีที่แล้ว

    Hi mr web designer.
    I just wanted to ask.
    I did everything you did.
    But why when i click in the next videos nothing happens.
    I mean the same first video still running.

    • @MrWebDesignerAnas
      @MrWebDesignerAnas  2 ปีที่แล้ว

      maybe because the class name you have written in your javascript does not matched to the html classes! try to download the source code to see what happened!

    • @thelastmuslimsamurai3109
      @thelastmuslimsamurai3109 2 ปีที่แล้ว

      Thank you sir ♥️

  • @mshumayunkobir7323
    @mshumayunkobir7323 2 ปีที่แล้ว

    please I to know the name of your theme would like

  • @topiknugroho
    @topiknugroho 2 ปีที่แล้ว

    nggak ada yang pakai

  • @zeus0x015
    @zeus0x015 2 ปีที่แล้ว

    How can it be added to the site but can not watch until the payment is made

    • @MrWebDesignerAnas
      @MrWebDesignerAnas  2 ปีที่แล้ว +2

      create 2 pages for this
      1 with payment method page
      2nd with video playlist
      once user made their payment direct them to playlist page!

    • @zeus0x015
      @zeus0x015 2 ปีที่แล้ว

      @@MrWebDesignerAnas thanks

  • @sumvanna1779
    @sumvanna1779 2 ปีที่แล้ว

    i want to close icon download is okey?

    • @MrWebDesignerAnas
      @MrWebDesignerAnas  2 ปีที่แล้ว +1

      well you can remove is it using javascript

    • @sumvanna1779
      @sumvanna1779 2 ปีที่แล้ว

      @@MrWebDesignerAnas i help code Name Javascript Brother. thank.

  • @regular2024
    @regular2024 ปีที่แล้ว

    courld you give us source code ?

  • @PraveenPraveen-kw3pd
    @PraveenPraveen-kw3pd 7 หลายเดือนก่อน

    Source code please sir

  • @technomee_lam
    @technomee_lam 2 ปีที่แล้ว

    جيد ولكن كأنك لو تجعله يعمل بjson يكون أحسن اخصا للذين مثلي

  • @ketanparmar2876
    @ketanparmar2876 2 ปีที่แล้ว

    I hope you complete my request.

  • @kamnopcenter3194
    @kamnopcenter3194 หลายเดือนก่อน

    youtube playlist

  • @mshumayunkobir7323
    @mshumayunkobir7323 2 ปีที่แล้ว

    please give me your theme name i would like this....

  • @xandramaetisado5459
    @xandramaetisado5459 2 ปีที่แล้ว

    P

  • @runfun2089
    @runfun2089 ปีที่แล้ว

    Expected an identifier and instead saw 'let'. let videoList = document.querySelectorAll('.video-list-container .list');
    1
    Stopping. (9% scanned). let videoList = document.querySelectorAll('.video-list-container .list');
    ESLint (1)
    1
    ERROR: Parsing error: Unexpected token videoList let videoList = document.querySelectorAll('.video-list-container .list');

    • @runfun2089
      @runfun2089 ปีที่แล้ว

      Why this problem?

  • @Berkin09
    @Berkin09 2 ปีที่แล้ว

    And how to choose by default the first video from the list? So that the main video is not duplicated in the list.

  • @Berkin09
    @Berkin09 2 ปีที่แล้ว

    How to make a full description under the video so that the description is not visible in the playlist?

    • @MrWebDesignerAnas
      @MrWebDesignerAnas  2 ปีที่แล้ว

      its simple use in your video list container for each video and hide in using display none in css and show it on the main video when click using the same method used for title in javascript! I literally forgot to add this in the video!

    • @Berkin09
      @Berkin09 2 ปีที่แล้ว

      @@MrWebDesignerAnas Happened! Thanks!

    • @Berkin09
      @Berkin09 2 ปีที่แล้ว

      @@MrWebDesignerAnas I was able to hide the video description from the playlist title, but it doesn't show under the video.

    • @MrWebDesignerAnas
      @MrWebDesignerAnas  2 ปีที่แล้ว

      I have other suggestion
      use span tag in the video list and instead of adding description in the span use data-text attribute and write description inside the data-type example span data-type="this is my description" this way you won't have to hide span anymore and access that data-text using javascript same as title but use this .getAttrubute('data-text') for span!

  • @ProemPhearomOfficial
    @ProemPhearomOfficial 2 ปีที่แล้ว

    Thanks😍