Results 1 to 9 of 9

Thread: Looking for a script to display video files without buttons (like play, rewind, ff)

  1. #1
    Join Date
    Apr 2007
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Looking for a script to display video files without buttons (like play, rewind, ff)

    1) Script Title: Looking for a script to display video files without buttons (like play, rewind, ff)

    2) Script URL (on DD):

    3) Describe problem: Hello!

    Since I installed IE7 (XP Pro), I've had some serious problems to display slideshows and videofiles published on my Frontpage website.

    Thanks to this forum, I was able to resolve my slideshow problems, but I still don't know how to manage my videoproblems.

    As I already explained before, getting back to an earlier IE version is not a solution, since Microsoft proposes the ugrade automatically.

    I would prefere not to use Flash, since not everyone has the possibility to install a Flash Player on their computer.

    I know that videohosting exists and that on the internet you can find a lot of free software to make your videos work.
    The problem is that I don't want videos displaying buttons (like Play, Pause, Forward or Rewind). I am looking to make videos that appear like images (if possible with an image that appears while downloading)...


    Any tips?

    Thanks in advance.

  2. #2
    Join Date
    Apr 2007
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi.

    I think a found a solution.

    The only thing I would like to know is how to autosize the media player in the following script (see link):

    http://www.dynamicdrive.com/forums/s...7975#post87975

    If someone could help me with that, I would be very gratefull.

    Thanks.

  3. #3
    Join Date
    Apr 2007
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I found one!

    <?> Copy & paste the following...

    <!-- begin embedded WindowsMedia file... -->
    <table border='0' cellpadding='0' align="left">
    <tr><td>
    <OBJECT id='mediaPlayer' width="320" height="285" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
    codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
    standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
    <param name='fileName' value="http://servername/path/to/media.file">
    <param name='animationatStart' value='true'>
    <param name='transparentatStart' value='true'>
    <param name='autoStart' value="true">
    <param name='showControls' value="false">
    <param name='loop' value="true">
    <EMBED type='application/x-mplayer2'
    pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
    id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
    bgcolor='darkblue' showcontrols="true" showtracker='-1'
    showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
    src="http://servername/path/to/media.file" autostart="true" designtimesp='5311' loop="true">
    </EMBED>
    </OBJECT>
    </td></tr>
    <!-- ...end embedded WindowsMedia file -->
    <!-- begin link to launch external media player... -->
    <tr><td align='center'>
    <a href="http://servername/path/to/media.file" style='font-size: 85%;' target='_blank'>Launch in external player</a>
    <!-- ...end link to launch external media player... -->
    </td></tr>
    </table>




    To autosize, just replace

    <OBJECT id='mediaPlayer' width="320" height="285"

    by

    <OBJECT id='mediaPlayer' autosize='-1'

  4. #4
    Join Date
    Apr 2007
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by kama View Post
    I found one!

    <?> Copy & paste the following...

    <!-- begin embedded WindowsMedia file... -->
    <table border='0' cellpadding='0' align="left">
    <tr><td>
    <OBJECT id='mediaPlayer' width="320" height="285" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
    codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
    standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
    <param name='fileName' value="http://servername/path/to/media.file">
    <param name='animationatStart' value='true'>
    <param name='transparentatStart' value='true'>
    <param name='autoStart' value="true">
    <param name='showControls' value="false">
    <param name='loop' value="true">
    <EMBED type='application/x-mplayer2'
    pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
    id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
    bgcolor='darkblue' showcontrols="true" showtracker='-1'
    showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
    src="http://servername/path/to/media.file" autostart="true" designtimesp='5311' loop="true">
    </EMBED>
    </OBJECT>
    </td></tr>
    <!-- ...end embedded WindowsMedia file -->
    <!-- begin link to launch external media player... -->
    <tr><td align='center'>
    <a href="http://servername/path/to/media.file" style='font-size: 85%;' target='_blank'>Launch in external player</a>
    <!-- ...end link to launch external media player... -->
    </td></tr>
    </table>




    To autosize, just replace

    <OBJECT id='mediaPlayer' width="320" height="285"

    by

    <OBJECT id='mediaPlayer' autosize='-1'


    Could anyone still help me with this line?

    <a href="http://servername/path/to/media.file" style='font-size: 85%;' target='_blank'>Launch in external player</a>
    I would in fact like to have the text 'Launch in external player' in Arial and Bold.

    In my code, I normaly use something like <font size="2" face="Arial, Verdana, Helvetica">

    Thanks.

  5. #5
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    <a href="http://servername/path/to/media.file" style='font-size: 85&#37;;' target='_blank'>Launch in external player</a>
    Code:
    <a href="http://host/path/file.extension" style="font-size: 85%; font-family: Arial, Verdana, Helvetica; font-weight:bold" target='_blank'>Launch in external player</a>
    highlighted in bold are changes, however I would suggest that you possibly move it out of inline and make it more globalized.
    If you only want to use these styles on 1 page then embed it in the head script.
    Code:
    <style type="text/css">
    <!--
    .anchors a {
     font-family: Arial, Verdana, Helvetica;
     font-weight: bold;
     font-size: 85%;
    }
    // -->
    </style>
    If you want to use that style type thruout a number of pages then embed a link in the head
    Code:
    <link type="text/css" rel="stylesheet" href="path.css" />
    then add the embedded styles into that file without the <style> tags

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by kama View Post
    Could anyone still help me with this line?

    <a href="http://servername/path/to/media.file" style='font-size: 85%;' target='_blank'>Launch in external player</a>
    I would in fact like to have the text 'Launch in external player' in Arial and Bold.

    In my code, I normaly use something like <font size="2" face="Arial, Verdana, Helvetica">

    Thanks.
    That should actually work:

    Code:
    <a href="http://servername/path/to/media.file"><font size="2" face="Arial, Verdana, Helvetica"><b>Launch in external player</b></font></a>
    But, would be better like so (the font tag is no longer standard):

    Code:
    <a href="http://servername/path/to/media.file" style="font:bold 82% Arial, Verdana, Helvetica, sans-serif;">Launch in external player</a>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Apr 2007
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you so much (the 2 of you)!

    It works!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  8. #8
    Join Date
    Nov 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Javascript and HTML object reference on hard drive problem

    <BASE HREF="http://leonardito.com/">

    When I try to reference a mp3 object on my hard drive I can't.

    This is in the html document.
    <OBJECT
    ID="mediaPlayer"
    CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
    CODEBASE="http://activex.microsoft.com/activex/
    controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
    STANDBY="Loading Microsoft Windows Media Player components..."
    TYPE="application/x-oleobject">
    <PARAM NAME="fileName"VALUE="\mymusiclyrics\hoyesadios.mp3">
    <PARAM NAME="animationatStart" VALUE="true">
    <PARAM NAME="transparentatStart" VALUE="true">
    <PARAM NAME="autoStart" VALUE="true">
    <PARAM NAME="showControls" VALUE="true">
    </OBJECT>

    On my hard drive it plays with

    <PARAM NAME="fileName"C:\matt\music\mymusiclyrics\hoyesadios.mp3">

    Say I in the html on the harddrive I put
    <BASE HREF="C:\matt\music\">
    How can I make it so it can play on my website dand hard drive with changing having to change the file name.

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Don't use base href. It's fine for local stuff or for making a local copy of a live page without downloading all of the live resources. But, when you publish a live page, it should have all the actual (either networked, absolute, or relative) paths on it. The only exception is if your host requires a base href so that users can find your redirected domain, that is very rare. And, on the web, a path uses / not \.

    So I think you want:

    Code:
    <param name="fileName" value="http://leonardito.com/mymusiclyrics/hoyesadios.mp3">
    or:

    Code:
    <param name="fileName" value="http://www.leonardito.com/mymusiclyrics/hoyesadios.mp3">
    Either is probably fine.

    This assumes that there is a folder named mymusiclyrics off the root of the leonardito.com domain, and that it has a valid mp3 file in it named hoyesadios.mp3.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •