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. C#
  4. truble with videos

truble with videos

Scheduled Pinned Locked Moved C#
graphicsgame-devquestion
4 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.
  • Y Offline
    Y Offline
    yftah1989
    wrote on last edited by
    #1

    i'm using Microsoft.DirectX.AudioVideoPlayback in order to play some videos simultaneous . i want the user to be able to pick one of the videos as the lead audio and then i mute the others with video.audio.volume=-10000 normally its working great but if one of the movies dont have audio this action throws exception how i can know if certain video have audio in it ? does DirectX.AudioVideoPlayback.video.audio have any property for it? thanks in advence...

    R 1 Reply Last reply
    0
    • Y yftah1989

      i'm using Microsoft.DirectX.AudioVideoPlayback in order to play some videos simultaneous . i want the user to be able to pick one of the videos as the lead audio and then i mute the others with video.audio.volume=-10000 normally its working great but if one of the movies dont have audio this action throws exception how i can know if certain video have audio in it ? does DirectX.AudioVideoPlayback.video.audio have any property for it? thanks in advence...

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      Can you just check if the Audio property is null? /ravi

      My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

      Y 1 Reply Last reply
      0
      • R Ravi Bhavnani

        Can you just check if the Audio property is null? /ravi

        My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

        Y Offline
        Y Offline
        yftah1989
        wrote on last edited by
        #3

        thenks for your help , i found an article in msdn that explains that when you try to get audio property from video exception will be throwen if the video has no audio , the sulotion for this problem acordding to msdn is just catch the exception and ignore it...

        R 1 Reply Last reply
        0
        • Y yftah1989

          thenks for your help , i found an article in msdn that explains that when you try to get audio property from video exception will be throwen if the video has no audio , the sulotion for this problem acordding to msdn is just catch the exception and ignore it...

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          Ah. /ravi

          My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

          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