Playing video on a html with jquery

Hi
I have a php/sql database that has thumb nails and videos in swf format and flv. On my html page I have an swf player. I have echoed
the thumbnails and have the url of the videos. How can I get the video url playing on the player after a person clicks the thumbnail with
out xml. Just by passing the url to the player. Kind of how youtube works thanks.
I have hand some sucess with xml passing but this can`t  work in this aspect. So I have been investigating jquery and other alternatives.
Hope you can help.
Thanks.

Hi
Thanks again for the help. I am almost there. Just made a first try on my server but without any luck.
Below is the html and the actionscript is the same as you posted. When I click play button in the code
the Videos/teleme.flv is supposed to be then passed and played. Nothing happens. I think I messed up the jquery part any help
will be appreciated.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="jquery/jquery-1.4.2.min.js"></script>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
function thisMovie(movieName) {
         if (navigator.appName.indexOf("Microsoft") != -1) {
             return window[movieName];
         } else {
             return document[movieName];
     function sendToActionScript(flv) {
         thisMovie("JQplay").sendToActionScript(flv);
</script>
<title>Untitled Document</title>
</head>
<body>
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400">
  <param name="movie" value="JQUERYPLAY/JQplay.swf" />
  <param name="quality" value="high" />
  <param name="wmode" value="opaque" />
  <param name="swfversion" value="6.0.65.0" />
  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
  <param name="expressinstall" value="Scripts/expressInstall.swf" />
  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
  <!--[if !IE]>-->
  <object type="application/x-shockwave-flash" data="JQUERYPLAY/JQplay.swf" width="550" height="400">
    <!--<![endif]-->
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="6.0.65.0" />
    <param name="expressinstall" value="Scripts/expressInstall.swf" />
    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
    <div>
      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
    </div>
    <!--[if !IE]>-->
  </object>
  <!--<![endif]-->
</object>
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>
<br/>
<input type="button" value="play" onClick="sendToActionScript('Videos/teleme.flv');" />
</body>
</html>
Videos.teleme.flv is inside the JQUERYPLAY Folder when the swf is also contained. JQplay.php is in the main folder of the site.
thanks.

Similar Messages

  • How can I play video in an HTML article targeting a Samsung Galaxy Tab

    I am trying to play video in an HTML article using the <a href="videofile://...m4v"> method but no there is on action on the link when I try to run the app on the Samsung Galaxy Tablet.
    I've also tried to link to an html file that contains the html video tag. That method only shows the controls and plays the audio, unless you click the full screen control, at which point it will play the video and audio.
    Snippet of the html video tag:
    <video id="video02" controls>
                     <source src="../../HTMLResources/common/videos/video.m4v">
                    <source src="../../HTMLResources/common/videos/video.ogv" type="video/ogg">
    </video>

    Not sure I fully understand the problem.  Does it not work when you take it out of mirrored and run the two displays in extended display mode (use Arrangment to arrange the two monitors)?  Of course you need to chang your Sound preferences to use the hdmi conneciton as well.

  • Problems embedding html with jquery content

    Hey muse people.
    i'm currently struggling with a very annoying issue:
    I have a piece of html code with jquery bits in it (it's a 360° plugin). For some reason, it doesn't seem to work when i upload to my server and try it.
    I have tried the steps suggested in this thread: HELP! Adding Jquery to Muse! , but whenever i remove parts of the "JS Include" section, i get warnings and errors entering the page. The plugin works, though..
    Does anyone know a workaround on this one?
    Thanks in advance

    Hi Abhishek,
    thank you for looking into it:
    Homepage  <-  this is a simple page from muse with the html code embedded - it does not work (the image should switch when you click the "type" buttons)
    http://www.lichtermeile.de/simple/ <- here i just made an index.html and added the same code i used to embed as html in the muse page above
    It works just fine when i remove parts of the JS Include and fully remove the "Other scripts" section that muse added to the end of each html file .. but i don't know if that's a healthy and compatible way.
    This is the code:
    <html> 
    <script src='http://code.jquery.com/jquery-1.9.1.min.js' type='text/javascript'></script>
        <script src='http://code.vostrel.cz/jquery.reel.js' type='text/javascript'></script>
        <img src="images/bild000.jpg" width="400" height="500"
          class="reel"
          id="image"
          data-images="images/bild###.jpg"
          data-cw="true"
          data-frames="36"
          data-duration="6"
          data-velocity="3"
          data-speed="-0.2"
          data-brake="0.2">
        <p>
          Please choose a product:
          <button id="image1">Type 1</button>
          <button id="image2">Type 2</button>
        </p>
        <script>
          $('#image1').click(function(){
            $('#image').reel('images', 'images/bild###.jpg');
          $('#image2').click(function(){
            $('#image').reel('images', 'images2/neu###.jpg');
        </script>
        <script> $.reel.def.indicator = 5; </script>
    </html>
    Thank you!!!

  • Playing video 5.1 (ac3) with Quicktime?

    Please, how can I play video with 5.1 audio (ac3) in Front Row or Quicktime? Every time, I am trying it, I got just horrible noise, undecoded sound. I have usb sound card M-Audio sonica theatre + Perian 1.1.1 + (Quicktime Pro). I don't know why, but vlc can play video even with 5.1 audio. Quicktime just stereo.
    A possible solution could be replacing Quicktime with vlc (in Front Row) but I can't suppose anyone from Apple will allow this ...
    So should I want for new fix of Quicktime or can I do something myself?

    Sorry I was gone for a couple of days, I went to Disneyland...
    You might check out this previous topic:
    http://discussions.apple.com/message.jspa?messageID=7812665
    I never did try it myself. But, as far as I know, the QuickTime Player application requires specific hardware to output multi-channel audio. The m-audio Sonica devices do not fulfill QuickTime's requirements.
    -Doug

  • Color Temperature changes when playing video via Dell 2713H with iMac

    Hi people,
    I'm having major issues with the above. This happens specifically when video is played, be it via youtube or through VLC or even XBMC.The color temperature of the video just shifts to a cooler blue and then after a while goes back to normal. This does not happen on the monitor of the iMac itself. Otherwise, viewing still photos or browsing the web works okay. It is really very irritating as you don't expect this to be happening.
    I've read that this could be an issue affecting macbooks with the ability to switch between integrated and dedicated video cards, but i can't seem to find any thing suggesting a fix for iMacs. Just so you guys know, it occurs on my macbook pro as well too.
    I'm running mountain lion 10.8.2 on the iMac and connecting the dell u2713h via an displayport to mini displayport cable supplied by Dell. iMac is a late 2009 model.
    If anyone could offer any insights, i'll really appreciate it.
    Thanks
    J

    I found this in another thread and it fixed the same problem for me. Apparently it's a Dell "feature" it detects video and changes the color settings for you... ? On the monitor just disable Display Settings>Smart Video Enhance.
    https://discussions.apple.com/message/25116072#25116072

  • Can no longer play video from Canon PowerShot with QT Pro

    Don't know what's changed. I have played these videos many times before. They were taken by my son who is active duty Navy overseas, so they are important to me. The "Movie Info" from QT says the format is: 8-bit Unsigned Integer, Mono, 11.024 kHz/MJPG, 320 x 240, Millions. QT "Movie Properties" list MVI_0025.mov, but the Audio Settings and Presentation choices are greyed out. The Video Trach is shown as MJPG as you would expect. I can't "save as" or "export" so re-encoding is out. I'm at a loss here. Why they played before and not now is beyond me. They were added to my Hard Drive via Iomega's Floppy plus 7-in-1 card reader. The actual video was taken with a Canon PowerShot A510 and recorded to a SanDisk 512MB SD Card which I copied to my hard drive through the card reader with no problems. My G4 runs great with no problems. These videos were added to two logins which both fail to play now. Sound is fine. Anyone have any ideas how this could have happened or what to do?

    QuickTimeKirk,
    Fortunately I can boot to OS9.2. The problem is that the OS goes so far back in time that I'm not sure I could figure out where to install a codec that would work. And I'm afraid the bigger problem is, where would I download the right codec? (In OS9 that would be a QuickTime plug-in, right?) I tried Classic, using QuickTime 5.0.2. No good. I get the standard message "Some necessary QuickTime software is missing. It may be available on the QuickTime Web site." I guess when I saw MJPG I was really thinking MJPEG and couldn't se why it wouldn't work. I see now that these are very different codecs. Thanks for bringing that to my attention. I did some digging and I believe the codec needed came with QuickTime 2.5. Also, if it makes any difference, I neglected to say that I use Flip4Mac WMV. I don't see how that would adversely effect a video file with a MJPG format but I thought I should mention it. Thanks for responding!

  • Weird problem with playing videos on v2009.08 with KDE desktop

    Hi all.
    my weird problem is; i see a transparent box instead of video, in all players!
    in addition VLC immediately be killed in case of playing vids.
    i also tried that with compiz effects disabled but it didn't work.
    plz help me about this.:(

    I don't know why but changing the video output driver in smplayer and vlc corrected it. But there is no option to change video output driver in dragon player.

  • ITunes freezes when playing video.

    I'm running Windows 7 Home Premium 64-bit. Let me start by saying I've seen many others complain about this with mostly no resolution.
    To elaborate, when initiating any video in iTunes (be it a movie, TV show, music video, or iTunes Store preview), the application immediately hangs. No errors -- iTunes just stops responding and can only be closed by killing its process. I've tried all the solutions people hash out time and again to no avail. This has been happening since iTunes 10, and ever since I've been playing all its videos through QuickTime (which works perfectly).
    In Safe Mode, however, a black box appears briefly (as if the video's about to play), before a Windows "iTunes has stopped responding" prompt comes up. Not only that, but I also get two error logs in Event Viewer:
    Application Error:
    Faulting application name: iTunes.exe, version: 11.0.1.12, time stamp: 0x50c8fc7e
    Faulting module name: QuickTime.qts, version: 7.73.80.64, time stamp: 0x50890e53
    Exception code: 0xc0000005
    Fault offset: 0x00880aba
    Faulting process id: 0x1714
    Faulting application start time: 0x01cdf55090e5ec83
    Faulting application path: C:\Program Files (x86)\iTunes\iTunes.exe
    Faulting module path: C:\Program Files (x86)\QuickTime\QTSystem\QuickTime.qts
    Report Id: d36de281-6143-11e2-9fbd-20cf30704519
    Windows Error Reporting:
    Fault bucket 3305968357, type 1
    Event Name: APPCRASH
    Response: http://oca.microsoft.com/resredir.aspx?SID=7277&iBucketTable=1&iBucket=-
    988998939&BucketHash=0ca2959e4da8580d00f4437ae9656186
    Cab Id: 0
    Problem signature:
    P1: iTunes.exe
    P2: 11.0.1.12
    P3: 50c8fc7e
    P4: QuickTime.qts
    P5: 7.73.80.64
    P6: 50890e53
    P7: c0000005
    P8: 00880aba
    P9:
    P10:
    Attached files:
    C:\Users\Krotera\AppData\Local\Temp\WERC754.tmp.WERInternalMetadata.xml
    These files may be available here:
    C:\Users\Krotera\AppData\Local\Microsoft\Windows\WER\ReportArchive
    \AppCrash_iTunes.exe_b9a5dae41cf0405f9ed736a58658946f78bfd2c6_0c59d71c
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: d36de281-6143-11e2-9fbd-20cf30704519
    Report Status: 0
    I don't know how helpful these logs are, but I've never seen anyone post anything similar when reporting this issue. Microsoft's link in the second one's header tells you to install a "newer" version of iTunes 64-bit even if you have the newest one (and I've done it with no improvement). In one post, iTunes wouldn't play video for somebody until they were told to uninstall Klite Codec Pack. This was the only time I came across this suggestion, and, having Klite, did it too, but with no improvement. iTunes still hangs when trying to play video, it crashes "properly" with a Windows prompt when trying to play video in Safe Mode, and QuickTime works fine (which I guess is my only solution).
    Some insight from Apple would be appreciated. This has been happening since iTunes 10, so I consider the problem to be on iTunes' end rather than my system's, which has by and large been a constant the whole time.

    Codec packs are notorious for causing iTunes problems.
    Try searching c:\windows\SysWOW64 for files with Quicktime in the name.
    There should be just two:
    Quicktime.qts
    QuicktimeVR.qtx
    If there are any other files or folders, try dragging them to the desktop ot any temporary folder.
    Does that make any difference.
    After doing that, do you have the latest Quicktime installed, if not update it.
    http://www.apple.com/quicktime/download/win.html
    Earlier versions of Quicktime can upset iTunes.

  • My apple tv will not play videos from my iphone 6

    I have an iPhone 6 and two separate Apple TVs.  Neither of the televisions with their respective Apple TV device will play any video taken on the iPhone 6.
    I can plan videos from Facebook or an emailed video, but not the videos taken with the iPhone.

    my iPhone 6 can play videos that I shot with the the phone to the AppleTV I have a 1080p version and a older 720p it works with both,  it cannot however  play slow-motion videos recorded with the phone most likely because the frame rate is not supported by either the AppleTV or the television itself at 120 frames per second or 240. Make sure you have the latest updates on both your phone and the AppleTV.

  • How to play videos directly in player using html hyperlink in Mac??

    hi all, i am using Mac, i have a issue that i want to play flv videos directly in flv player when user clicks on video link.
    In windows when i click on html video link then windows automatically play that video in corresponding player but in Mac it just opens that folder location where i kept those videos but dont play them.
    how can i play videos directly in player using html hyperlink in Mac???

    What does any of this have to do with Java?
    It sounds like you've misconfigured your browser, but I'm not sure what you're even talking about.
    You know that apple.com has all sorts of forums for mac users, right?

  • PrObLeM WiTh IpOd pLaYiNg ViDeOs WiTh No SoUnD!! HELP ME!!

    i have a ipod nano 8gb 3rd generation i just got a couple of weeks ago. i got it, read the directions, got the latest downloads, loaded itunes, put my music, videos, everything on itunes, and connected my i sync all of my music on mai ipod with no problem. but when i sync my videos onto my ipod....THERE IS NO SOUND!! the videos were previously converted before i synced them on the ipod. PLEASE HELP ME RESOLVE THIS PLEASE!!

    QuickTime expects video files with separate video and audio tracks, but many MPEG formats used a muxed (multiplexed) single track that contains both. Therefore, when you convert videos in iTunes to iPod format they only show the video and no sound since iTunes (really QuickTime) is not looking for the audio track within the video track and it gets lost.
    iPod plays video but not audio of some exported files
    http://docs.info.apple.com/article.html?artnum=302588
    One way to work around this is to use MPEG Streamclip to convert the files to fix this issue...
    http://www.squared5.com/
    but there are other applications besides MPEG Streamclip you can try as well.
    Frequently asked questions about viewing and syncing video with iTunes and iPod
    http://docs.info.apple.com/article.html?artnum=302758
    The Complete Guide to Converting Video to iPod Format (Mac)
    http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-convert ing-video-to-ipod-format-mac/
    See other tutorial articles over at iLounge...
    http://www.ilounge.com/index.php/articles/tutorials/
    Patrick

  • My lap hp envy 17-j130us problem with playing videos and audio

    when i am playing videos it freezes up to 2 seconds and playing continously as well as playing audio in music player also.i have downloaded videos in youtube mkv file with high resoluton 1080p video it was freezing at starting and after playing too fastly and them i have loaded the videos from pen drive that videos ae alos having the same trouble in above process how can i fix the problem i just have buy this pc 20 days ago my model is HP ENVY 17-J130US TOUCH SMART

    Hi,
    Which software are you using to play videos (offline). Please try the following software, it will play nearly all video formats:
         http://www.videolan.org/vlc/download-windows.html ​   
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Issue with playing video on 4400g

    Hello, guys. I'm using dmps 4400G, almost all of them are running under 5.2.3 software version.. I wish some of my DMPs (standalone) to start playing video file in loop. Used a html script to do it for 5.2.1 - everything works properly. But under 5.2.2 or 5.2.3 i have some problems while playing video using the same script.
    I followed next:
    "2. Create your own html page to have the content playing from the DMP flash (usb_1) or USB key (usb_2).
    https://supportforums.cisco.com/docs/DOC-14752
    https://supportforums.cisco.com/message/3194092
    So when under 5.2.2 or 5.2.3 video suddenly stops playing, DMP and Monitor state becomes off. After that player starts playing video again. And at the same moment it stops again. Red light indicates that DMP tries to obtain an IP-address via DHCP, but DHCP is disabled (static IP is used).
    Also I have a problem with image. When I want from my DMP in standalone mode to show an image using hmtl script, it just shows nothing (and red light is on).
    How can I rectify this? Or maybe there is another way to play file in loop at 5.2.3 software version. Do not want to downgrade.
    Thanks in advance.

    Excuse me? Doesn't the title say trouble playing video on utube etc? I am having trouble playing videos that don't jump. I am just looking for a solution to a problem that seems to be inherent in MBP and the new operating system. If you have a solid solution, please respond.

  • Whenever I export my interactive indesign file to swf the videos won't play in the resulting html file, it's just a black screen. I'm using .mp4 videos as well.

    Whenever I export my interactive indesign file to swf the videos won't play in the resulting html file, it's just a black screen. I'm using .mp4 videos as well.
    Does anyone know what may be causing this problem?
    Thank you

    Unless you held down the Command key when dragging the iPhoto Library package to the flash drive you only copied the library.  How is the flash drive formatted?  If it was not OS X Extended (journaled) the integrity of the library's internal structure was probably compromised.
    If you don't have a current backup of your library do the following:
    1 - launch iPhoto with the Command+Option keys held down to open the First Aid window. Be sure to follow the circled recommendation in the screenshot.
    2 - run Option #4, Rebuild Database.

  • Firefox plays video, but no sound. when I type about:plugins in location bar, it shows the firefox default plugin is not enabled. When I look at my plugins, it says it is enabled. I have uninstalled 3.6 and re-installed with the same result.

    firefox plays video, but no sound. when I type about:plugins in location bar, it shows the firefox default plugin is not enabled. When I look at my plugins, it says it is enabled. I have uninstalled 3.6 and re-installed with the same result. Why do I have no sound. Computer plays I-tunes and all other sounds, just no web browser sounds.

    Glad you seem to have sorted things out.
    The warning about the warranty is light hearted, I think at one stage it warned "here be dragons" but also intended to make us think as it warns that making changes may produce problems.

Maybe you are looking for

  • Formatting an Export to Excel

    Can anyone tell me how to force a column being exported to Excel to be interpreted by Excel as a text field? The column contains only digits, but has values such as '0000' where all four zeroes are to be considered significant.

  • PM Notification - Hide fields based on other field's value

    Hello experts, I am looking for an user exit which allows me to hide some fields based on other field's value. For example, I have field 1 and field 2. When I open my notification, if the value of field 2 is 'aaa', field 1 has to be hidden. There sho

  • PhoneGap for iOS build error with Dreamweaver CS5.5, PhoneGap 1.2, XCode 4.2.1 (4D502)

    Hi, I was trying to build and emulate a PhoneGap project with following environment, but it failed: OS X Lion 10.7.2 Adobe Dreamweaver CS5.5 (11.5 Build 5344) PhoneGap 1.2 (I updated from DW's original version following this instruction) The build of

  • G/L Account assigned to Asset's Account determination.

    Hi All, I have a asset number 13858 and sub-asset number as 0 and Acct determination as 40000. The G/L Account assigned to Acct determination is 10600010. I can get all the details by going to AS03. I am looking to get G/L Account from table where As

  • Gift song from another country

    I live in the US and my friend lives in Canada.  She purchased an album on itunes Canada (with her Canadian credit card) and sent it to me as a gift.  I am unable to redeem this gift...it says that I must be in Canada.  How can I get around this?  Is