Play sound and video in J#

Hello. How import sound to J# . for example you select word in combobox and then go sound , at that moment then you select. Better then it will be taken from resources.
And how with video

Sound is more important, but i want to know how to import video to.
i need code.



Answer this question

Play sound and video in J#

  • Cabadam

    Hmm.. 1 link it's not for me, because I don't player, i just need sound then select word in combobox. Second is better, but then i will finish my program, and want to share with others, they will be need that DirectX9 libarries or it just tool in my program

  • ozy

    I think i don't need video, i need just sound, With Direct SDK is not good, bevause others clients must have it too. I need just simple example, code in J# , how to play sound.
    You preesbutton and you automaticly goes sound, ( on event OnClick) , please help, who can.

  • unit107

    Hi,

    PLease take a look at following links..

    1. http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwmt/html/playingdigitalmediainavisualbasicnetapplication.asp - this white papet addresses the issue in context of VB .Net. But it should not be difficult to change it to J#. YOu just need to change the code to J# syntax.

    2. http://www.codeproject.com/dotnet/DirectSoundJsharp.asp - This article is about J# only but it requires the DirectX9 runtime libraries to be installed on the machine. Go for it if you are ok with having this dependency.

    Please let us know if it doesn't help or you face any issues in changing the code to J# syntax.

    Thanks.



  • Play sound and video in J#