SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Apr 2010
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to retrieve jwplayer video player files from the database

    Hi i am trying to load video to jwplayer you can do it from by putting the name of the files directly into the script like this

    Code:

    Code:
    <a href="#" onClick="jwplayer().load({'file': 'video_SD.mp4', 'hd.file': 'video_HD.mp4'})">
    but now i want the names to come from the database so i tried it like this
    Code:

    Code:
    echo "<td><a href=\"#\" onClick=\"jwplayer().load('file':" . $row['first_vidoe'] . "'file.hd':" . $row['2ndvideo_HD'] .  "' )\">" . $row['FirstName'] . "<a/></td>";  echo "<td>" . $row['Age'] . "</td>";
    but it doesnt upload the videos
    can somenone please help please
    thanks in advance

  2. #2
    SitePoint Addict
    Join Date
    Apr 2010
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this my site
    Untitled Document

    the problem is the following line i am trying to retrive data from the database

    <code>echo "<td><a href=\"#\" onClick=\"jwplayer().load('file':" . $row['FirstName'] . "'file.hd':" . $row['FirstName'] . "' )\">" . $row['FirstName'] . "<a/></td>"; echo "<td>" . $row['Age'] . "</td>";
    </code>

    the video on the site that is meant to work is the link name peter griffin
    hofbell30732_SD.mp4


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
  •