DIYgod 7 years ago
parent
commit
407a5ba951
1 changed files with 23 additions and 0 deletions
  1. 23 0
      README.md

+ 23 - 0
README.md

@@ -75,6 +75,29 @@ var dp = new DPlayer({
 
 [Read the Docs](http://dplayer.js.org/docs)
 
+## FAQ
+
+<details><summary>Why can't some videos be full screen?</summary><br>
+
+If player is contained in a iframe, try adding the allowfullscreen attribute to the iframe.
+
+For full browser support it should look like this:
+
+```html
+<iframe src="example.com"
+        allowfullscreen="allowfullscreen"
+        mozallowfullscreen="mozallowfullscreen"
+        msallowfullscreen="msallowfullscreen"
+        oallowfullscreen="oallowfullscreen"
+        webkitallowfullscreen="webkitallowfullscreen"></iframe> 
+```
+</details>
+
+<details><summary>Why can't player autoplay in some mobile browsers?</summary><br>
+
+Most mobile browsers forbid video autoplay, you wont be able to achieve it without hacks.
+</details>
+
 ## Join the Discussion
 
 - [Telegram Group](https://t.me/adplayer)