Announcement

Collapse
No announcement yet.

playmp4 file with kmplayer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • playmp4 file with kmplayer

    hi
    i want to run my mp4 files with kmplayer. can it be possible that AMS play mp4 files with kmplayer?

  • #2
    Hi Sahar
    you can do that with two function

    1) File.Open

    File.Open("MP4 Path", "", SW_SHOWNORMAL);

    Above function will play MP4 file in default windows MP4 viewer
    first argument of above action is your MP4 file path

    2) Shell.Execute

    Shell.Execute("KMPlayer Path", "open", "MP4 path", "", SW_SHOWNORMAL, false);

    Above function will run the kmplayer and then pass MP4 video pass to it

    first argument of above action is your kmplayer file path like :
    "C:\\Program Files (x86)\\The KMPlayer\\KMPlayer.exe"

    second argument of above action is your mp4 file path like :
    "E:\\Show\\The Lord of the Ring.mp4"

    Comment

    Working...
    X