Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Getting two videos to play at near enough exactly the same time

Getting two videos to play at near enough exactly the same time

Scheduled Pinned Locked Moved Visual Basic
csharptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    offroaderdan
    wrote on last edited by
    #1

    Hi, I am using windows media player in .net and have two videos that i need to play at exactly the same time on separate players. These players are WMP and WMP2 These videos are exactly the same time limit. They are both 21.34 seconds long I think the code went something like If label1.visble = true then WMP.url = ............ .wmv ' url of vide WMP2.url= .......... .WMV End if This code does work up to a point and i would have copied and pasted it in, but i am on a different computer. This works however this is a massive "lag" between one video starting up and the next. Does anyone have any ideas as to how to get both videos starting at the same time on button click? I didn't know if perhaps the videos could be preloaded so when the user does click the correct button the videos play straight away, and the videos don't take time loading :) Many thanks Dan

    D 1 Reply Last reply
    0
    • O offroaderdan

      Hi, I am using windows media player in .net and have two videos that i need to play at exactly the same time on separate players. These players are WMP and WMP2 These videos are exactly the same time limit. They are both 21.34 seconds long I think the code went something like If label1.visble = true then WMP.url = ............ .wmv ' url of vide WMP2.url= .......... .WMV End if This code does work up to a point and i would have copied and pasted it in, but i am on a different computer. This works however this is a massive "lag" between one video starting up and the next. Does anyone have any ideas as to how to get both videos starting at the same time on button click? I didn't know if perhaps the videos could be preloaded so when the user does click the correct button the videos play straight away, and the videos don't take time loading :) Many thanks Dan

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Using Media Players? It's not going to happen. You'd have to play the videos yourself using DirectX DirectShow or some other technology.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups