DEV Community

Cover image for Webcomponent ๐Ÿ”ฅ based PLAYER for the PODCAST Community ๐Ÿ˜Ž
Sharad Raj (He/Him)
Sharad Raj (He/Him)

Posted on

2 1

Webcomponent ๐Ÿ”ฅ based PLAYER for the PODCAST Community ๐Ÿ˜Ž

Hi Guys! ๐Ÿค“

I've created a Webcomponent based Podcast player using Vanilla JS.
I've made it open source for the community.

Also the implementation is dead simple, just like other web components.

So here is how it looks:

UI

Shar-Pod-Audio-Player

LIVE DEMO

How to use ????

Just paste the following script in the head or just before the end of the body tag

<script src="https://sharadcodes.github.io/Shar-Pod-AudioPlayer/src/SharPodAudioPlayer.js" async></script>
Enter fullscreen mode Exit fullscreen mode

Now inside the body paste this

  <!-- add the tag with all attributes -->
    <shar-audio
      audio-title="Your podcast title"
      audio-subtitle="Your podcast subtitle"
      artwork="https://example.com/your_square_thumbnail.png"
      src="https://example.com/your_mp3_file_url.mp3"
    ></shar-audio>
Enter fullscreen mode Exit fullscreen mode

That's it ๐Ÿคฉ .... And you are good to go !!!!!!


ALL LINKS ARE HERE:

Repo: https://github.com/sharadcodes/Shar-Pod-AudioPlayer
Live Demo: https://sharadcodes.github.io/Shar-Pod-AudioPlayer/example/ ๐Ÿคฉ

Top comments (2)

Collapse
 
ben profile image
Ben Halpern โ€ข

Neat! I'm going to play around with this.

Collapse
 
sharadcodes profile image
Sharad Raj (He/Him) โ€ข โ€ข Edited

Thanks Ben.... Would love to see the stuff you do ๐Ÿ’

This post blew up on DEV in 2020:

js visualized

๐Ÿš€โš™๏ธ JavaScript Visualized: the JavaScript Engine

As JavaScript devs, we usually don't have to deal with compilers ourselves. However, it's definitely good to know the basics of the JavaScript engine and see how it handles our human-friendly JS code, and turns it into something machines understand! ๐Ÿฅณ

Happy coding!

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay