Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

80
Views
PHP loading JS video player

So I have this PHP script to show my videos in Fluid Player, it looks like this:

    while($video = mysqli_fetch_array($resultat_video, MYSQLI_ASSOC)) 
        {  
        echo "<video id='video-id'><source src='mov/$video[filnavn]' type='video/mp4' />";
        }

Loading the Javascript to load Fluid players looks like this:

<script>
    var myFP = fluidPlayer(
        'video-id', {
    "layoutControls": {
        "controlBar": {
            "autoHideTimeout": 3,
            "animated": true,
            "autoHide": true
        },
        "htmlOnPauseBlock": {
            "html": null,
            "height": null,
            "width": null
        },
        "autoPlay": false,
        "mute": true,
        "allowTheatre": true,
        "playPauseAnimation": false,
        "playbackRateEnabled": false,
        "allowDownload": false,
        "playButtonShowing": false,
        "fillToContainer": false,
        "posterImage": ""
    },
    "vastOptions": {
        "adList": [],
        "adCTAText": false,
        "adCTATextPosition": ""
    }
});
</script>     

This works perfectly for one video, but i guess I can't call the same ID in my PHP ID and expet it to work, so I guess it needs some sort of invidual ID both in the PHP and also in the Javascript?

I'm very new to Javascript so all help is apprichiated alot :)

Regards, Jan

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!