How To Insert A Player On The Site

Table of contents:

How To Insert A Player On The Site
How To Insert A Player On The Site

Video: How To Insert A Player On The Site

Video: How To Insert A Player On The Site
Video: Insert a HTML5 video player to your website's simple video's (https://plyr.io) Dynamic Video Player 2024, December
Anonim

If you have your own site, then you can host a player on it. With its help, you can make the resource more interesting, thus you will attract visitors.

How to insert a player on the site
How to insert a player on the site

Instructions

Step 1

First, you need the code for the player itself. Please note: it is not at all necessary to write it yourself, since you can find ready-made code on the Internet. Copy it and paste it into any text file (eg Notepad). Don't forget to save your document in html format. The finished code might look something like this: var s1 = new SWFObject ("Flash Player URL", "ply", "320", "160", "9"); s1.addParam ("allowfullscreen", "true"); s1.addParam ("allowscriptaccess", "always"); s1.addParam ("wmode", "opaque"); s1.addParam ("flashvars", "file = URL of the file to show"); s1.write (" container ");.

Step 2

For convenience, place the created file in a separate folder. In the future, you can copy other necessary elements there, for example, the image of your player. It is necessary to make the external interface of the program look more interesting and beautiful. As already mentioned, after saving the logo, place it in the same folder with the html file.

Step 3

Now you can start posting the copied code to your site. Be sure to save all the changes you make (otherwise the element will not appear on the page).

Step 4

If you want to somehow change the appearance of the player, you will not need to install a new code on the site. There is another way: you can simply replace the cover of the active element. There are a wide variety of design styles on the Internet, and you can download any of them. Don't forget to put the cover code in the same folder as all the previous files.

Step 5

By the way, installing the player on the site is possible not only manually, as suggested in the previous steps, but also through a special control panel on the site in automatic mode. In the admin panel, click on the "Design" column. Then select the line titled "CSS Design Control". To directly insert the code, go to the "Top of the site" section. Don't forget to save the result.

Recommended: