GithubHelp home page GithubHelp logo

bhanditz / radio-player Goto Github PK

View Code? Open in Web Editor NEW

This project forked from europeana/radio-player

0.0 2.0 0.0 1.35 MB

Europeana's radio player!

License: European Union Public License 1.1

CSS 13.56% HTML 1.56% JavaScript 84.53% Ruby 0.35%

radio-player's Introduction

Europeana Radio Player

Front-end radio player for Europeana Music Radio, works together with the radio station. Based on Amplitude.js.

Usage

Can be embedded via an iframe:

<iframe src="https://radio-player.europeana.eu/" border="0" frameborder="0" width="635" height="390"></iframe>

If you embed the player in this iframe, ensure to also include the following lines of CSS in your stylesheet to make the iframe adapt to a mobile viewport:

<style type="text/css">
@media all and (max-width: 545px) {
   .iframe {
       height: 600px;
       width: 370px;
   }
}
</style>

Optional URL parameters

When embedding the radio player, a number of optional URL parameters are available to customise the player's behaviour:

genre

Set genre to the identifier of a genre station ("classical", "folk to pre-select that station, otherwise the player will select one at random.

Example:

<iframe src="https://radio-player.europeana.eu/?genre=classical"></iframe>

hostname

Set hostname to the base URL of your radio station installation, otherwise this will default to "https://radio.europeana.eu".

Example:

<iframe src="https://radio-player.europeana.eu/?hostname=http://myradio.example.com"></iframe>

institution

Set institution to the name of an institution station to pre-select that station, otherwise the player will select a genre station at random.

Example:

<iframe src="https://radio-player.europeana.eu/?institution=Internet Archive"></iframe>

random

Set random to "false" and the player will begin at the start of the current playlist for the active station. Otherwise it will choose a random position in the playlist to start from.

Example:

<iframe src="https://radio-player.europeana.eu/?random=false"></iframe>

station

Deprecated

station has been replaced by genre and institution.

License

Licensed under the EUPL V.1.1.

For full details, see LICENSE.md.

radio-player's People

Contributors

rgardien avatar andyjmaclean avatar crmarcelino avatar davidhaskiya avatar rwd avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.