=== FnF.FM Bangla Radio ===
Contributors: cartoonistarif, tstudio
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SHJSMTR5FQW2N
Tags: radio, bangla, bengali, music, player
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Put the live FnF.FM Bangla Radio player on your site with a block, a shortcode or a widget.

== Description ==

FnF.FM Bangla Radio is Bangla radio: classic and new Bengali songs and independent Bangla artists, live 24 hours a day. This plugin adds its player to your site.

The player shows the song playing now, the artist and the album cover, with a play button and a link to the full FnF.FM app. Equaliser bars move while it plays, the cover glows softly behind it, and each new song slides in. It never starts playing on its own: visitors press play. Visitors who turn on reduced motion in their system settings get a still player.

* **Block:** add the "FnF.FM Bangla Radio" block from the Embed section, then choose the station and height in the block settings.
* **Shortcode:** `[banglafnf]` anywhere in a post, page or widget. Options: `[banglafnf height="80"]` for a compact bar, `[banglafnf station="english"]`, `"bangla"` or `"hindi"` for another FnF.FM station.
* **Widget:** for classic themes, add the "FnF.FM Bangla Radio" widget to a sidebar.

Under 200 pixels tall the player is one compact row, which suits sidebars. Taller, it shows the cover above the controls.

Listen on the web at [fnf.fm](https://www.fnf.fm/).

== External services ==

The player is an iframe that loads from FnF.FM's own website, [www.fnf.fm](https://www.fnf.fm/), at `https://www.fnf.fm/embed`. The plugin itself stores nothing and sends nothing.

* **When:** each time a page with the player is viewed.
* **What is sent:** the visitor's browser requests the player page from www.fnf.fm, which sends the visitor's IP address and browser details, as with any web page. The player then fetches the song playing now. When the visitor presses play, the audio streams from FnF.FM's streaming host (FastCast4u).
* **Privacy policy:** [https://www.fnf.fm/privacy](https://www.fnf.fm/privacy)

== Installation ==

1. In your WordPress admin go to Plugins, then Add New, and search for "FnF.FM Bangla Radio".
2. Install and activate it.
3. Add the "FnF.FM Bangla Radio" block, the `[banglafnf]` shortcode or the widget where you want the player.

== Frequently Asked Questions ==

= Does it work with my theme? =

Yes. It works with block themes and classic themes.

= Does it autoplay? =

No. Browsers block autoplaying audio, and it would annoy your visitors. The player waits for a press of play.

= Can I show a different FnF.FM station? =

Yes. Choose it in the block or widget settings, or use `station="english"`, `"bangla"` or `"hindi"` in the shortcode.

= I used version 1. Do I need to change anything? =

No. The `[banglafnf]` shortcode and the widget keep working and now show the new player.

== Screenshots ==

1. The player in a post: the song, artist and an animated cover scene.
2. The compact player in a sidebar.

== Changelog ==

= 2.0.0 - October 17 2026 =
* New animated player: shows the song, artist and cover, with a play button and a link to the full app. Equaliser bars move while it plays and the cover glows behind it.
* New "FnF.FM Bangla Radio" block with station and height settings.
* Shortcode options: `station` and `height`.
* Widget settings: station and height.
* Works on current WordPress and PHP 8. Version 1 used code that PHP 8 removed, which stopped sites from loading.
* Loads over HTTPS. The old player used plain HTTP, which browsers block on secure sites.

= 1.0 - August 25 2016 =
* Initial release.

== Upgrade Notice ==

= 2.0.0 =
Version 1 no longer works on PHP 8 or secure (HTTPS) sites. This update fixes both and brings a new player. Your shortcode and widget keep working.
