• I need help getting my videos to center on my web page. They work great, just will not center. I host the videos on my own web server and use the following code to embed them into my site.

    <object id=”Object1″ width=”480″ height=”360″ type=”application/x-shockwave-flash” data=”https://thedurhamcorporation.com/player_flv_mini.swf”&gt;
    <noscript>Install or enable JAVA</noscript>
    <param name=”movie” value=”https://thedurhamcorporation.com/player_flv_mini.swf&#8221; />
    <param name=”wmode” value=”opaque” />
    <param name=”allowScriptAccess” value=”sameDomain” />
    <param name=”quality” value=”high” />
    <param name=”menu” value=”true” />
    <param name=”autoplay” value=”false” />
    <param name=”autoload” value=”false” />
    <param name=”FlashVars” value=”flv=https://thedurhamcorporation.com/The_CCNP_Exam_Changes_What_You_Need_To_Know.flv&width=480&height=360&autoplay=0&autoload=0&buffer=5&playercolor=000000 &loadingcolor=9b9a9a&buttoncolor=ffffff&slidercolor=ffffff” />
    </object>

    My site where you can see the problem at is: https://www.certificationtrainingsolutions.com/ccnp-lab-kits/

    I tried using WordPress to center them, no luck. Then I added a param align center, still no luck.

    Any suggestions?

    Thank You,
    Michael

Viewing 4 replies - 1 through 4 (of 4 total)
  • There is a bit more going on there than just the object. From that page:

    <p><right><br>
    <div class="fluid-width-video-wrapper" style="padding-top: 56.25%;"><object id="Object1" type="application/x-shockwave-flash" data="https://thedurhamcorporation.com/player_flv_mini.swf"><noscript><a rel="nofollow" href ="https://www.java.com">Install or enable JAVA</a></noscript><param name="movie" value="https://thedurhamcorporation.com/player_flv_mini.swf"><param name="wmode" value="opaque"><param name="align" value="center"><param name="allowScriptAccess" value="sameDomain"><param name="quality" value="high"><param name="menu" value="true"><param name="autoplay" value="false"><param name="autoload" value="false"><param name="FlashVars" value="flv=https://thedurhamcorporation.com/Do_My_Exams_Still_Count_A_CCNP_Refresh_Update.flv&width=640&height=480&autoplay=0&autoload=0&buffer=5&playercolor=000000 &loadingcolor=9b9a9a&buttoncolor=ffffff&slidercolor=ffffff"></object></div></right>&nbsp;</p>

    First, you have the object in a <p>, then a ‘right’ (which is an HTML5 element), then you have some inline styling in a <div> with a class also.

    My guess is this is all output by your theme. Can you ask them (the folks you got this theme from) the best solution to this? Only theme’s from here are supported in this forum.

    I would also review why anyone needs ‘JAVA’ to play a video.

    Thread Starter mtdurham

    (@mtdurham)

    The <right> was me playing around trying anything. The styling came from a program that I have that converts mpg4 to flv (and others). it was their way to display a video on a web page.

    I just need a simple way to display .flv and or .mpg4 videos on my site, I host the videos on my own server and don’t want them on YouTube etc.

    Any recommendations for better code?

    WordPress 4.0 supports (from the Media Library) playing of multiple types of videos. Have you simply tried uploading the file to the Media Library then adding it the post/page using add media?

    You can even create video playlists now!

    In addition to that, your host environment must support each mime type to be used.

    There are plugins that help play .flv files. I do not use .flv anywhere and am not sure if they are natively supported or not (nor did I find a list of which ones are supported – perhaps someone can point us all to that?), but know other ones like .3gp and .mp4 are now.

    https://codex.www.ads-software.com/Version_4.0

    Thread Starter mtdurham

    (@mtdurham)

    I am stuck on WordPress 3.9.2 running The Retailer Child Theme theme. I have asked my web designer to update me. I know a little HTML, my specialty is Cisco. I don’t think my hosting company supports any mime type. Think of it just as a place to store a file. My have to wait til she does her job.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot get video to center on page’ is closed to new replies.