Multiple players on your site

Follow

If you have created more than one player, the reEmbed script will need to know which player to use. Player Rules allow you to define URL paths for each player to appear on.

For example, your site has a category "Sports" and a category "Tech", and you've created a separate player for each category.  Assuming your site uses the following URL structure:

Sports:  http://www.mysite.com/sports/article/...
Tech:    http://www.mysite.com/tech/article/...

You can add the following rules to assign the correct player to each category

Sports player => /sports/ 
Tech player => /tech/

The reEmbed script will try to match a rule to the URL of the current page, and if it matches a rule, it will use the corresponding player.

In the case that no rules are matched, your default player will be used.

Have more questions? Submit a request

Comments

  • Avatar
    Seyong Cho

    Hi,

    Is there a workaround for single-page web-application that doesn't separate categories by the URL naming?

    For example, if I want to separate the player style in same URL, is there a javascript alternative to select non-default players?

  • Avatar
    Dimitrios Elissaios

    Hi Seyong,
    unfortunately at the moment the players are limited to the url.
    Does your url change using the hashbang (#)?
    Can you send us a link to your site at help@reembed.com

  • Avatar
    Blessusall

    What about creating multiple players in an account to run on multiple different sites? I run several blogs I want to brand.

  • Avatar
    Dimitrios Elissaios

    Hi Blessusall,

    you can use exactly the same technique for different sites.
    In the rule, just write the site's domain.

    For player 1: www.site.com
    For player 2: www.myothersite.com

Powered by Zendesk