Web Player
The user experience of playing videos is one of the most important aspects of any video platform service. The Arvancloud Web Player is easy to use on different devices, browsers, and applications. Our unique framework is compatible with various devices to provide a pleasant experience for all users.

This document will go through the features, installation, shortcuts, and event structure.
Features
Our player’s features include playing videos and audios, live streaming, supporting multiple dubbed languages, PiP, subtitles, controlling playback speed, choosing different qualities, adding logos and ads, size adaptability, and chapter.
The table below shows all of the features and their descriptions:
| Feature | Description |
|---|---|
| Video / Audio | Supports HLS(.M3u8), DASH(.Mpd), MP3, MP4 |
| On-Demand / Live Stream | Playing Live and On-Demand Videos |
| Touch | Compatible With Touch Screens |
| Responsive | Compatible With All Screen Sizes |
| Multi-Instance | Using Multiple Instance Versions with Different Configurations on The Same Page |
| Language | Supports Both Persian and English Languages |
| Customizable | Changing Settings and Configurations |
| Resume Playback | Supports Resuming Videos |
| Fullscreen / Picture-In-Picture (Pip) | Supports Full-Screen and Picture-In-Picture Modes |
| Logo | Displays Logo |
| Multiple Audio | Supports Multiple Audio Files for A Video |
| Subtitle | Supports Subtitles |
| Chapter | Supports Dividing the Content into Parts |
| Speed Control | Changing The Playback Speed |
| Shortcuts | Supports Shortcut Keys |
| Events | Supports All Player Events or Ads |
| Advertising | Compatible With The 2 Standard Modes of Pre-Roll, VAST (V3, V4), And the Other Modes of Mid-Roll, And Post-Roll (Only for The Arvancloud Video Platform) |
| Quality Selector | Manual Change in Quality |
Installation
The Arvancloud player is hosted on Arvancloud’s main domain through the config file you receive.
https://player.arvancloud.ir/?config={CONFIG_URL}
You can use it through the player address, iFrame, HTMLElement, or JavaScript.
iFrame
This code will be accessible to you in your user panel after the video conversion process.
<!DOCTYPE html>
<html lang="en">
<head>
<title>ArvanPlayer</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="icon" href="favicon.png" />
</head>
<body>
<iframe id="ir1p" width="560" height="315" frameborder="0" title="{TITLE}" src="https://player.arvancloud.ir/?config={CONFIG_URL}"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
</body>
</html>
HTMLElement
<!DOCTYPE html>
<html lang="en">
<head>
<title>ArvanPlayer</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="icon" href="favicon.png" />
<script type="application/javascript" src="https://player.arvancloud.ir/arvanplayer.min.js"></script>
<style>
html {
/* default */
font-size: 16px;
}
</style>
</head>
<body>
<div id="r1p_container">
<div id="r1p" class="arvanplayer" style="width: 560px; height: 315px;" config="{CONFIG_URL}" data-config='{
"currenttime": 0,
"autostart": false,
"repeat": false,
"mute": false,
"preload": "auto",
"controlbarautohide": true,
"lang": "en",
"aspectratio": "",
"color": "",
"controls": true,
"touchnativecontrols": false,
"displaytitle": true,
"displaycontextmenu": true,
"logoautohide": true
}'></div>
</div>
</body>
</html>
JavaScript
<!DOCTYPE html>
<html lang="en">
<head>
<title>ArvanPlayer</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="icon" href="favicon.png" />
<script type="application/javascript" src="https://player.arvancloud.ir/arvanplayer.min.js"></script>
<style>
html {
/* default */
font-size: 16px;
}
</style>
</head>
<body>
<div id="r1p_container">
<div id="r1p" style="width: 560px; height: 315px;"></div>
<script type="application/javascript">
const ele = document.getElementById('r1p');
// client-side customization, If you don't want to change anything, pass it empty (objConfig = {}).
const objConfig = {
currenttime: 0,
autostart: false,
repeat: false,
mute: false,
preload: "auto",
controlbarautohide: true,
lang: "en",
aspectratio: "",
color: "",
controls: true,
touchnativecontrols: false,
displaytitle: true,
displaycontextmenu: true,
logoautohide: true
};
const player = new ArvanPlayer(ele, // element
'{CONFIG_URL}', // remote config
objConfig, // client-side settings
false); // SecureLink enabled
</script>
</div>
</body>
</html>
Shortcut Keys
The Arvancloud player gives access to a number of shortcut keys to make video control more efficient.
| Key | Function |
|---|---|
| Space | Pause/Resume |
| K | Pause/Resume |
| ← | Rewind a Few Seconds |
| → | Fast Forward a Few Seconds |
| ↑ | Volume Up |
| ↓ | Volume Down |
| M | Mute/Unmute |
| F | Full-Screen Mode On / Off |
| I | Pip Mode On / Off |