DIYgod / DIYgod/APlayer

When a page loads two or more players, how do you set it up? For example, a fixed mode, a normal mode.

Open
#430 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

## What I do :
### 1.diff id
```

--> container: document.getElementById('aplayer'),
--> container: document.getElementById('aplayer1'),
```
if not will not work.

### 2.diff function

```
const ap = new APlayer({
const ap1 = new APlayer({
```
if not will happen `Uncaught SyntaxError: Identifier 'ap' has already been declared at ......`

## In fact, it also has problem

It has two `aplayer-list-index`,just like the following img

![image](https://user-images.githubusercontent.com/45334066/75087631-f3561780-557d-11ea-8db2-5590be1c7574.png)

## But

I found that the official website() uses many players, but there seems to be no problem. I want to know how to set this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.