Skip to main content

How to add Fluid Player to Simple HTML5 Video Player in your website

How to add Fluid Player HTML5 Video Player in your website

 Here is the official Website :- https://www.fluidplayer.com/ 


See Demo on Repl :- https://repl.it/@SH20RAJ/Fluidplayer#index.html



 Style Your own Video Player Here :- fluidplayer


and Documentation Here.

A Sample Video Link :- https://bit.ly/bbsamplevideo



Use Custom JS maker for Designing Your Player


Integration using CDN

The Fluid Player provides a CDN build available for direct linking from https://cdn.fluidplayer.com.

IMPORTANT: As of v3.0.0, CDN version of Fluid Player ships with embedded CSS. Separate tag to include CSS is no longer required.

Automatically use the most recent version (recommended):

<script src="https://cdn.jsdelivr.net/gh/CDNSFree2/fluidplayer/fluidplayer.min.js"></script>

CDN integration example

<!-- Define a video with sources to attach Fluid Player to -->
<video id="example-player">
    <source src="video.mp4" type="video/mp4"/>
</video>

<!-- Place before </body> tag -->
<script src="https://cdn.jsdelivr.net/gh/CDNSFree2/fluidplayer/fluidplayer.js"></script>
<script>
    // fluidPlayer method is global when CDN distribution is used.
    var player = fluidPlayer('example-player');
</script>

Quality Switching

Multiple sources can be added as shown below. The title will be displayed to the user when switching sources, and should be set to the video quality as can be seen below ('1080p', '720p' etc).

<video id='my-video' controls style="width: 640px; height: 360px;">
    <source src='vid_1080p.mp4' title='1080p' type='video/mp4' />
    <source src='vid_720p.mp4' title='720p' type='video/mp4' />
    <source src='vid_480p.mp4' title='480p' type='video/mp4' />
</video>

Define Source as HD

The sources set for quality switching can be defined as HD by adding a data-fluid-hd attribute to the tag. The colour of this text will match the primary color. If you wish to override this colour you can do so using custom CSS on your own page. The class responsible for the colour is fp_hd_source. An example of overriding this colour is shown below.

.fp_hd_source { color: yellow !important; }

An example of how the HD is set in the sources is show below.

<video id='my-video' controls style="width: 640px; height: 360px;">
    <source data-fluid-hd src='vid_1080p.mp4' title='1080p' type='video/mp4' />
    <source data-fluid-hd src='vid_720p.mp4' title='720p' type='video/mp4' />
    <source src='vid_480p.mp4' title='480p' type='video/mp4' />
</video>

Setting additional options

Fluid Player can be customized by setting some optional parameters. The full list of parameters can be found under Configuration

<video id='my-video' controls style="width: 640px; height: 360px;">
    <source src='vid.mp4' type='video/mp4' />
</video>

<script type="text/javascript">
var player = fluidPlayer(
   'my-video',
    {
        layoutControls: {
            // Parameters to customise the look and feel of the player
        },
        vastOptions: {
            // Parameters to customise how the ads are displayed & behave
        }
    }
);
</script>
Note :- Use Script cdn before Video Tag .



Chats During Video Making :- 

    Let's add fluid player to a simple html5 video player ..
    Let's Design ......
    
    How to add VR and VPAID ads in next video .........
    
    Fluid Player not added because of a common mistake ....
    Once More 
    See here :- 
    
    Mistake = add ) in last Here...
    This is a mistake ..........
    
    Quality Switching ...
    Attach diffrent quality videos with title attribute ..........
    Let's see .....

Comments

DEXTER said…
Bro can you give the direct code where I can only change the video
∅ ÜÑKÑØWN said…
Bro What difficulty you are facing ...
It's Direct and Simple ...
∅ ÜÑKÑØWN said…
See the Video Carefully
how to add preview thumbnail on it ,kindly update the article mentioning that trick or make a video on that topic
∅ ÜÑKÑØWN said…
Use poster = " your image url " To add a thumbnail or poster..
I had mentioned it in the video...
Unknown said…
Can you please give direct full code.
infinitmedia said…
how to make our video with a link like this?

Popular posts from this blog

Top Free APIs Every Developer Should Know About

Top Free APIs Every Developer Should Know About In the world of software development, APIs (Application Programming Interfaces) are essential for integrating various functionalities into applications. Here’s a curated list of top free APIs categorized by their functionality: 1. Weather APIs OpenWeatherMap API : Provides current weather data, forecasts, and historical weather data for any location. Weatherstack API : Offers real-time weather information, including forecasts and historical data. 2. Maps and Geolocation APIs Google Maps API : Enables integration of interactive maps, geocoding, and route optimization. Mapbox API : Provides customizable maps, navigation, and location search capabilities. 3. Finance and Stock Market APIs Alpha Vantage API : Offers real-time and historical equity and cryptocurrency data. Yahoo Finance API : Provides access to financial news, stock market data, and por...

Google Drive Proxy Video Player - Bypass Limits - JW Player - Embed drive videos

GooDrive :- https://goodrive.stream/ Google Drive Proxy Player #1 :- https://youtu.be/9VQK8W2iUkg Dev.to Article

Making AI Song Covers with RVC - Google Colab

Making AI Song Covers with RVC * Google Colab or Local Install These are the two main options for making AI song covers. You can run RVC on your computer if you have a PC with a decent NVIDIA graphics card (GPU), or you can run it for free through the Google Colab web page. Running Google Colab This is the recommended Google Colab for using voice models: https://colab.research.google.com/drive/1Gj6UTf2gicndUW_tVheVhTXIIYpFTYc7?usp=sharing After enough time, Google limits your GPU usage and you have to wait to use the GPU again. This will slow down your conversion speeds, but it will still be usable as long as you use ‘rmvpe’ mode (considered to be the general best mode, tied with mangio-crepe). ~3 minute song took 9 minutes for me without the GPU. Some people make alternate Google accounts to get around the GPU limits, or they pay for Colab Pro. Most commonly happens for people training their own voices since that requires a lot of GPU power. Running Locally Check...

Random Posts