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. How to remove a video

How to remove a video

Scheduled Pinned Locked Moved C#
graphicsgame-devtutorialquestion
6 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.
  • S Offline
    S Offline
    Sokka93
    wrote on last edited by
    #1

    Hi! I'm using Microsoft.DirectX.AudioVideoPlayback to play a video on my application. I can add more than one video at run time. But I can't distinguish them and remove them. Panel panel=new Panel(); Video video=new Video(); video.Owner=panel; I use the code above. I can't remove the video. What should I do? Thanks in advance.

    C 1 Reply Last reply
    0
    • S Sokka93

      Hi! I'm using Microsoft.DirectX.AudioVideoPlayback to play a video on my application. I can add more than one video at run time. But I can't distinguish them and remove them. Panel panel=new Panel(); Video video=new Video(); video.Owner=panel; I use the code above. I can't remove the video. What should I do? Thanks in advance.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You have a major issue. AudioVideoPlayback is rubbish and it leaks memory like crazy. I wrote an article on this, if you read that ,you'll probably get an answer to your question, too. However, basically, you should have one player, and change what video it is playing, maintaining your own playlist. You should also dispose of videos that have played, the stupid control won't do that.

      Christian Graus Driven to the arms of OSX by Vista.

      S 1 Reply Last reply
      0
      • C Christian Graus

        You have a major issue. AudioVideoPlayback is rubbish and it leaks memory like crazy. I wrote an article on this, if you read that ,you'll probably get an answer to your question, too. However, basically, you should have one player, and change what video it is playing, maintaining your own playlist. You should also dispose of videos that have played, the stupid control won't do that.

        Christian Graus Driven to the arms of OSX by Vista.

        S Offline
        S Offline
        Sokka93
        wrote on last edited by
        #3

        Sorry but it didn't help.

        S 1 Reply Last reply
        0
        • S Sokka93

          Sorry but it didn't help.

          S Offline
          S Offline
          Sokka93
          wrote on last edited by
          #4

          Please help me!

          D 1 Reply Last reply
          0
          • S Sokka93

            Please help me!

            D Offline
            D Offline
            DaveyM69
            wrote on last edited by
            #5

            You already have been helped and given all the information you need. Did you even read his article[^]?

            Dave
            BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
            Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

            S 1 Reply Last reply
            0
            • D DaveyM69

              You already have been helped and given all the information you need. Did you even read his article[^]?

              Dave
              BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
              Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

              S Offline
              S Offline
              Sokka93
              wrote on last edited by
              #6

              Yes I did. I already know what the article tells.

              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