Dynamically load video?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jen_designs@hotmail.com

    Dynamically load video?

    I have a html page with an embeded video and a drop list. What I would
    like to do is have the user select a video from the drop list, then
    replace the embeded video on the screen. Is there a way to change the
    video that is embeded in a html page?

  • Martin Kurz

    #2
    Re: Dynamically load video?

    jen_designs@hot mail.com schrieb:[color=blue]
    > I have a html page with an embeded video and a drop list. What I would
    > like to do is have the user select a video from the drop list, then
    > replace the embeded video on the screen. Is there a way to change the
    > video that is embeded in a html page?[/color]

    For RealPlayer you can find the documents about scripting with embedded players
    on realnetworks:
    Welcome to the home of RealPlayer®, a media player app by RealNetworks®. Features include a video downloader, audio recording, and CD ripping. Official Site.


    There's a method called DoGotoURL(strin g url, string target) - I don't know if
    this is what you're looking for or if it's just for the use of realplayers
    integrated browser...

    There's another method desribed, PlayClip(url, clipinfo, related_info_ur l,
    width, height, media_browser_u rl, target, bnow_playing) - sounds better.

    Setting another src in the Sites sourcecode shouldn't bring you up to the
    desired result - at least I assume that the player should get reloaded or at
    least somehow triggered to load the new src.

    About WindowsMedia or Quicktime, I don't know anything.

    Comment

    • Xandax

      #3
      Re: Dynamically load video?

      I've not worked a lot with media on webpages but some quick testing
      yielded some result with Internet Explorer, and *.wmv movies (i'd think
      it would be possible with other movietypes and it shouldn't be that
      difficult to transfere to cross-browser compability.... .

      But anyways - If you have your movies embedded via the object tag, then
      you can access the object by getElementById( ObjectID), and then set the
      FileName property.
      In my quick testing in IE this gave me the new movie without needing to
      reload the page.

      So basically:
      var node = document.getEle mentById(yourOb jectID)
      node.FileName = newFileName.wmv

      gave me the new movie.

      For FireFox, which I didn't bother working out now (gotta leave
      something for yourself :)), I'd think you need to get access to the
      embed tag in a somewhat similar way because I belive that is the object
      used, and access the "src" property.

      Comment

      Working...