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. Show a still image in wondows media player

Show a still image in wondows media player

Scheduled Pinned Locked Moved C#
tutorial
3 Posts 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I want to show one of the frames(First frame for example) of a video as a still image in windows media player control.( I have set the URL of the control to the video file address. Playing the video and pausing didn't work :confused: ) I would be so happy if anybody have any idea. Yasamin

    N A 2 Replies Last reply
    0
    • L Lost User

      I want to show one of the frames(First frame for example) of a video as a still image in windows media player control.( I have set the URL of the control to the video file address. Playing the video and pausing didn't work :confused: ) I would be so happy if anybody have any idea. Yasamin

      N Offline
      N Offline
      Nader Elshehabi
      wrote on last edited by
      #2

      Hello Since no one replied for more than 5 hours I'd try -as much as i can- guide you to what I think.. Media player be default -just as any other media player BTW- displays the video by hardware acceleration. This means that it doesn't just display a sequence of still images, when you pause it it will keep displaying the last one!! Anyway, if you want to display a still frame of a video you'd beter use managed DirectX library. Revise the video section in C# multimedia articles for more informations.

      Regards:rose:

      1 Reply Last reply
      0
      • L Lost User

        I want to show one of the frames(First frame for example) of a video as a still image in windows media player control.( I have set the URL of the control to the video file address. Playing the video and pausing didn't work :confused: ) I would be so happy if anybody have any idea. Yasamin

        A Offline
        A Offline
        Arjun Mjolnir Bahree
        wrote on last edited by
        #3

        Simple. Get the pointer to the Frame buffer through the WM API. Then from that display the first entry through Render call. It shall be done. Clicking on Play will restart the movie from the beginning though. To circumvent, put in a WM Hook to intercept the play button click, and continue from second frame onwards. I kno it seems a little complex, but trust me its easy adn you can find built code fo this.

        Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!

        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