ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Can I use streaming files


  • 2004-11-11 00:52:58

    Can I use streaming files

    I uploaded a wmv file to my directory. and edited a link "<a href="chap1/a1.wmv">display</a> . But it cannot display the video content. How to solve this problem ?

  • 2004-11-11 06:06:10

    Should be similar to streaming Quicktime

    Here's how I stream Quicktime files. I assume using the proper embed command for .wmv will also work.

    <P><EMBED SRC="media/mymovie.mov" PLUGINSPAGE="http://quicktime.apple.com" WIDTH=325 HEIGHT=260 LOOP=false AUTOPLAY=false></embed></P>

    I keep my movie files in a folder called media in my course folder.
    ====

    An adaption of this code might work for you:

    <object id="MediaPlayer" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
    <param name="Filename" value="[red] http://yourserver.com/ATutor/courses/yourCourseFolder/media/yourmovie.wmv[/red].asx">
    <param name="TransparentAtStart" value="false">
    <param name="ShowControls" value="true">
    <param name="AutoStart" value="False">
    <embed width=160 height=165 autostart=0 src="[red] http://yourserver.com/ATutor/courses/yourCourseFolder/media/yourmovie.wmv[/red].asx">
    </object>


    The URL in red is the location of your clip (you might not need the absolute reference)

    The width and height settings are the dimensions of your clip (add 45 to the height of your clip) for the toolbar

    By changing the autostart parameters to true and 1, respectively, the clip will begin playing automatically.

    Include the paramter tag: <PARAM NAME="ShowDisplay" VALUE="true"> to include the clip details information below the controls
    ======

    See also http://www.webmasterworld.com/forum36/1663.htm

    good luck
    larry

  • 2004-11-11 06:22:51

    Posting of code above

    See the last link (or http://webmonkey.wired.com/webmonkey/01/49/index2a_page5.html?tw=multimedia") to see how the inclusion of http is required in the first two underlined urls that start with "yourserver"

    This forum cut that part (quote http colon slash slash) out of my posting in both of these lines. Also, what I thought wuld be red is actually underlined in these two lines as well.

    larry

  • 2004-11-15 22:21:03

    Thanks lelchuck,but ...

    I save the streaming file called test.asx outside atutor server and edit content like below
    <P><EMBED SRC="http://other_server/test.asx" WIDTH=325 HEIGHT=260 LOOP=false AUTOPLAY=false></embed></P>
    it work fine.
    If I save it on the atutor server ,it fail .
    <P><EMBED SRC="http://atutor_server/ATutor/get.php/chap1/test.asx" WIDTH=325 HEIGHT=260 LOOP=false AUTOPLAY=false></embed></P>

  • 2004-11-16 04:23:08

    This worked for me

    <P><EMBED SRC="http://myserver/ATutor/content/1/media/test.wmv" WIDTH=325 HEIGHT=260 LOOP=false AUTOPLAY=false></embed></P>

    where 1 is the course folder number assigned by ATutor. Create the media folder and place your .wmv file in it.

  • 2004-11-16 19:56:04

    still not understand

    you said
    <P><EMBED SRC="http://myserver/ATutor/content/1/media/test.wmv" WIDTH=325 HEIGHT=260 LOOP=false AUTOPLAY=false></embed></P>
    ----------------------------------------------------------------------------
    But how you know the url (.../content/......) of the file(test.wmv) ?
    if I make a upload course folder called "1" and upload the test.wmv. The url show me "http://atutor_server/ATutor/get.php/1/test.wmv" ?

  • 2004-11-16 20:08:30

    How I know the url

    When I created the course, ATutor assigned a course number to it for use in the mySQL tables. It also created a folder in the ATutor/content folder that has that same number. (the welcome course is 1; your first new course is 2; etc.)

    This is the folder that I created the media and images folders that allow me to point to these media in the html code as cited above

    larry

  • 2004-11-17 08:12:47

    Using get php

    One addition to Larry's comment, if you have located your content directory outside your server's web documents directory, you would use the get.php script to retrieve files from the content directory.


    something like:

    <P><EMBED SRC="http://myserver/ATutor/get.php/media/test.wmv" WIDTH=325 HEIGHT=260 LOOP=false AUTOPLAY=false></embed></P>

    One easy way to figure out the path to your content files is to copy the URL from the filemanger. On Windows you'd right click on the file name in the file manager, then click "copy link location", or whatever your browser calls this function, the paste the location into the EMBED tag.

    Incidentally the OBJECT tag has replaced EMBED, so it should be used instead on EMBED.

    see:
    http://www.w3schools.com/tags/tag_object.asp

  • 2004-11-17 20:44:38

    thanks reply but ...

    thanks larry, I know your way.
    But I setup my content directory outside web documents directory as greg said. And I know greg`s way to get the url path from filemanger(in fact I just use this method ), so my code is
    <P><EMBED SRC="http://atutor_server/ATutor/get.php/chap1/test.wmv" WIDTH=325 HEIGHT=260 LOOP=false AUTOPLAY=false></embed></P>
    but it cannot start the media player.
    Are you sure it can work to use get.php for wmv or asx streaming file ?
    Appreciated.