Loading Screen Problem

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
Rockit14
New to forums
New to forums
Posts: 3
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Jul 07, 2015 9:55 am

Loading Screen Problem

Post by Rockit14 »

Hello!

I am having a problem with my loading screen. For some reason when players join the server they do not here any music at all they only see the photo. But, when you view the loading screen on a webpage you see the loading screen.

Here is the index.html

Code: Select all

<html>
        <head>
                <title>ModernLifeRP Loading Screen</title>
               
                <style type="text/css">
                        body {
                                margin:0px;
                                padding:0px;
                                background-color:#000000;
                        }
                </style>
               
        </head>
        <body>
                <object style="height:0px; width:0px;">
                        <embed src="http://www.youtube.com/v/4NdSfVU-wSE?version=3&autoplay=1&loop=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="0" height="0">
                </object>
       
                <img src="LoadingScreen.jpeg" style="max-width:100%; max-height:100%;" alt="" />
        </body>
</html>
Am i doing something wrong?
Any help would be greatly appreciated :D
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Loading Screen Problem

Post by soja »

Is there a reason you made the youtube video invisible? If you want to embed audio in a webpage, putting a flash based video in it is an extremely poor way to do it. The flash plugin has been known to cause players games to crash when loading the MOTD. Extract an MP3 from the video using a "youtube downloader" website, and embed the mp3.
Not a NFO employee
Rockit14
New to forums
New to forums
Posts: 3
Joined: Tue Jul 07, 2015 9:55 am

Re: Loading Screen Problem

Post by Rockit14 »

soja wrote:Is there a reason you made the youtube video invisible? If you want to embed audio in a webpage, putting a flash based video in it is an extremely poor way to do it. The flash plugin has been known to cause players games to crash when loading the MOTD. Extract an MP3 from the video using a "youtube downloader" website, and embed the mp3.
I'm not that great at website coding so what would I put in my index.html in order to access this file.
Post Reply