hearthis.at

Description

This plugin puts the player of hearthis.at on your website. There are three ways to do it:

  • Paste a link. Put the link to a sound, a set, a profile or a live channel on its own line. WordPress turns it into the player.
  • Use the block. Add the block “hearthis.at Player”, paste the link and choose the look in the sidebar.
  • Use the shortcode. [hearthis]https://hearthis.at/LINK_TO_SOUND_SET_OR_PROFILE/[/hearthis]

Under Settings hearthis.at you choose the defaults of every player: look, colors, waveform, size. A preview shows the result before you save. Each block and each shortcode can override the defaults.

Shortcode options

All options are optional.

  • width – up to 100 a percentage, above 100 pixels. Default: 100 (the full width).
  • height – in pixels, 50 to 1200. Default: 130 for a sound, 150 with the cover image as background, 95 without waveform, 350 for sets and profiles. A live channel is as high as its 16:9 picture unless you set a height.
  • theme – light (default) or dark, for single sounds. The former names transparent and transparent_black still work.
  • hcolor – accent color: play button, progress and the played part of the waveform. A hex color with or without #.
  • color – color of the waveform. A hex color with or without #.
  • style – waveform: 1 soft, 2 bars.
  • block_size – width of the bars, 1 to 10 (with style="2").
  • block_space – gap between the bars, 0 to 10 (with style="2").
  • background – 1 shows the cover image as the background of the player (single sounds).
  • cover – 1 hides the cover image.
  • waveform – 1 hides the waveform (single sounds).
  • comments – 0 hides comments and reactions.
  • stats – 0 hides plays and other numbers.
  • list_covers – 0 hides the covers in the list of a set or a profile.
  • liststyle – single shows one player per sound instead of a list, for public sets and profiles (up to 50).
  • css – address of a CSS file the player loads in addition.
  • url – the link, as an alternative to writing it between the tags: [hearthis url="https://hearthis.at/…"]

The option names of old versions (color2, params, digitized_size, digitized_space) still work.

Examples

A sound:
[hearthis]https://hearthis.at/djforce/baesser-forcesicht-dnbmix/[/hearthis]

A set:
[hearthis]https://hearthis.at/djforce/set/dubstep-mixes/[/hearthis]

A profile with a blue accent color:
[hearthis hcolor=”0000ff”]https://hearthis.at/djforce/[/hearthis]

A sound in the dark look, without comments and numbers:
[hearthis theme=”dark” comments=”0″ stats=”0″]https://hearthis.at/djforce/baesser-forcesicht-dnbmix/[/hearthis]

A sound with its cover image as background:
[hearthis background=”1″]https://hearthis.at/djforce/baesser-forcesicht-dnbmix/[/hearthis]

A sound at half the width, without waveform:
[hearthis width=”50″ waveform=”1″]https://hearthis.at/djforce/baesser-forcesicht-dnbmix/[/hearthis]

A set, 500 pixels high:
[hearthis height=”500″]https://hearthis.at/djforce/set/dubstep-mixes/[/hearthis]

Each sound of a set as its own player:
[hearthis liststyle=”single”]https://hearthis.at/djforce/set/dubstep-mixes/[/hearthis]

A live channel:
[hearthis]https://hearthis.at/YOUR_PROFILE/live/[/hearthis]

External services

The players are provided by hearthis.at, so this plugin connects to hearthis.at:

  • When a page with a player is displayed, the browser of the visitor loads the player from hearthis.at in an iframe – as with any embedded player. hearthis.at receives what a browser sends with every request (IP address, browser, the address of your page).
  • When WordPress prepares a player, your server asks api-v2.hearthis.at or hearthis.at/oembed/ for the sound behind a link. It sends the link you entered and what WordPress sends with every request of this kind: its version and the address of your website. The answer is stored on your website (a sound for a month, a list for six hours), so this does not happen on every page view. A link without an answer is asked again later.

The service is provided by hearthis.at: terms of use, privacy policy.

Screenshots

Blocks

This plugin provides 1 block.

  • hearthis.at Player The hearthis.at player for a sound, a set, a profile or a live channel.

Installation

  1. Install the plugin from the plugin directory of your WordPress, or upload the folder hearthisat to /wp-content/plugins/.
  2. Activate it under Plugins.
  3. Paste a hearthis.at link into a post, add the block “hearthis.at Player” or write a [hearthis] shortcode.
  4. Optional: choose the defaults under Settings hearthis.at.

FAQ

Do I need a hearthis.at account?

No. Every public sound, set and profile on hearthis.at can be embedded.

Can I embed a private sound or a private set?

Yes, with its secret link – the one you get from “Share” on hearthis.at. Use it in the block or in the shortcode like any other link.

I pasted a link and it stays a link.

A link becomes a player when it stands on its own line. Links to sounds and sets are also recognised by the block “Embed” of WordPress. If the player still does not appear, your server may not be able to reach hearthis.at – ask your hosting provider about outgoing connections.

A link pasted directly looks different from my settings.

A pasted link to a sound or a set shows the standard player of hearthis.at. The settings apply to the block “hearthis.at Player” and to the [hearthis] shortcode.

I changed a set on hearthis.at, but the single players still show the old sounds.

With liststyle="single" the plugin remembers the sounds of a set or a profile for six hours. The player with a list (the default) is always up to date.

Can I style the player with my own CSS?

Yes. Enter the address of a CSS file in the settings or in the option css. The player loads it in addition to its own styles.

Where can I get help?

In the support forum of this plugin, or open an issue on GitHub.

Reviews

May 23, 2021
I hereby swear to tell the truth the whole truth and nothing but the truth so help me God!! I signed up for the premium hearthis account 3 weeks ago. I was enamored with the layout and I liked what I saw. In a matter of 2 weeks my opinion went from wow this is great too wow this really sucks. Here is why. The very first week I uploaded approximately 15 mixes for the Disco generation. Of course you know I'm a disc jockey. At the end of that first week that's 7 days they came out with their ratings and this is something they do every week. Out of thousands of people who might be DJ's, who might be music enthusiasts or just might be a person that listens to music, my reaction of what occurred was eye-opening and I really couldn't believe it. In this ranking of the top 10 spots my mixes all different were listed in seven of those 10 spots including the number one spot. I said to myself wow that's great but is it true, is it a come on. I found out 2 weeks later that it's a major come on. The second week I uploaded a few more mixes and if I'm not mistaken I had two spots in the top 10. Now what I was wondering was how did I get seven spots in the top 10 and number one in the first week with being brand new to the site and having no reputation and no followers. Then the second week the numbers fell drastically. During the second week I invested a few extra dollars to have my mixes listen to to generate more followers. That's one of the so-called services that they offer. You purchase euros with American dollars and you decide which mixes you want exposure for. Now that can get expensive because it's 100 points per mix. So if you want to get exposure to all of those mixes you'll probably spend $13. That doesn't last that long. So you try again and you get the same results barely any increase in the number of listeners,plays,likes and reposts etc. Week three I decided I am not spending a penny and guess what happened the numbers plummeted. In some categories they went down to as low as zero. So here's my point the come on was week one. Imagine having seven out of the 10 spots including number one. What would you think? Then you invest some money to get more exposure and you get barely any results. I understand that they have to keep the website afloat but to do it in such a shady manner is unfortunate. When I figured out what was going on I asked for a refund from my premium account. Do you think I heard back from Benedict? When I made an inquiry about the results of investing the money into more listeners Benedict gave me some sort of excuse that he would check it out with his staff. Do you think I got an answer? Simple answer no! Here's my advice and you can take it for what it's worth. Go in and join but don't spend a penny. Download whatever you can and have a good time. If you are a disc jockey and looking for exposure chances are you'll get some but not a lot. Keep your money in your pocket and keep your mind open and so the same goes for your eyes. It's all a come-on. In closing this is my story and it's the truth the whole truth and nothing but the truth so help me God!
March 25, 2019
has been working fine until wordpress 5.1.1 update, please update plugin, would really appreciate it!
September 3, 2016
I reported an issue with the height parameter not working: https://github.com/Andrew-Jenkins/wp_plugin_hearthis/issues/17 The HTML embedding works, so I will just use that. I thought this plugin might add some value in centrally defining defaults and making embedding quicker, but it does not work well for me. It says it has not been tested with my version of WordPress.
September 3, 2016
works good and now you have more control over all possible options
Read all 6 reviews

Contributors & Developers

“hearthis.at” is open source software. The following people have contributed to this plugin.

Contributors

Translate “hearthis.at” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.1.0

  • Fixed: a shortcode with a single sound stopped the whole page with an error on PHP 8. All notices and warnings on PHP 8 are gone.
  • Fixed: the height option had no effect.
  • New: a hearthis.at link on its own line becomes the player (oEmbed), for sounds, sets, profiles and live channels.
  • New: the block “hearthis.at Player” for the block editor.
  • New: live channels (https://hearthis.at/PROFILE/live/), private sounds and private sets with their secret link.
  • New: the options comments, stats and list_covers, the theme names light and dark and the option url.
  • New: the players use the current embed code of hearthis.at (sharing and copying from within the player, lazy loading, a title for screen readers).
  • Faster: the sound behind a link is looked up once and remembered, not on every page view. If hearthis.at cannot be reached, the player of a public sound, a set or a profile is still shown.
  • Settings: every value is checked when it is saved, the preview takes the link of a sound instead of its ID and follows the form.
  • Translations: German, Spanish and French, now also in the block editor. The text domain is hearthisat.
  • Sets and profiles as single players are limited to 50.
  • The waveform color now also applies to the dark look.
  • Requires WordPress 6.4 and PHP 7.4. Tested with WordPress 6.4 and 7.1 on PHP 8.4.

1.0.3

  • Updated WordPress compatibility to version 6.4.3
  • Added admin Live Preview feature with real-time customization
  • Integrated complete internationalization support (German, Spanish, French)
  • Fixed text domain consistency for proper translation loading
  • Added dynamic track ID input for preview functionality
  • Enhanced admin interface with separate Light and Dark theme previews
  • Added copy-paste embed code generation for both themes
  • Improved color picker integration with live preview updates

1.0.2

  • minor bug fix with track detection and height bugfixes

1.0.1

  • minor bug fix with the theme transparent_black
  • changed some php and readme documentations

1.0.0

  • removed the httpful Phar file so that this works completely without it
  • now based on the Plugin API, Coding Standards, and Documentation Standards
  • added the latest hearthis.at API functions for the shortcode params
  • new backend/wp-admin menu with color pickers

0.6.5

  • several bugfixes and reformatting code to object based programming standard

0.6.4

  • added a trailing slash to an URL if it does not exist

0.6.3

  • added a shortcode option as a hook to transform a playlist url into single widgets for each track from this set instead of displaying a list view

0.6.2

  • fixed and reformatted the original code written by Benedikt Groß, the founder of hearthis.at. This release fixes deprecated or wrong options and removes errors, so the plugin works in the latest WordPress version.