CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2008
    Posts
    11

    playing video from MemoryStream

    I was wondering if anyone knows how to play a video directly from the memory stream, using the windows media player component? I dont want to have to save the video to a file and then provide the player with the file path as the URL. I know that there are other methods of playing videos, but i wanna keep it simple, so I would prefer to use the simple windows media player component.

  2. #2
    Join Date
    Jan 2008
    Posts
    11

    Re: playing video from MemoryStream

    Bump

  3. #3
    Join Date
    Nov 2003
    Posts
    2,185

    Re: playing video from MemoryStream

    Just open the url to the media stream... You can use DirectShow to fully control the streams.

  4. #4
    Join Date
    Jan 2008
    Posts
    11

    Re: playing video from MemoryStream

    I havent really worked with DirectShow before. Any pointers on how to go about doing it? How exactly do i control the stream using DS?

  5. #5
    Join Date
    Nov 2003
    Posts
    2,185

    Re: playing video from MemoryStream

    What's wrong with developers nowadays.....

    Next time, google first please!

    DirectShowLib

  6. #6
    Join Date
    Jan 2008
    Posts
    11

    Re: playing video from MemoryStream

    lol... a little too lazy i guess... thanks btw

  7. #7
    Join Date
    Jun 2011
    Posts
    1

    Re: playing video from MemoryStream

    Hello Guys ,

    We would like to develop a video player which needs to play from memory stram . Basically the files would be encrypted in local system and we need to decrypt them into memory and play them , not saving in temp location or file .

    Please let me know your comments or thoughts / sample code etc /

    Advanced thanks for your help or comments .

    Thanks
    Ravi k

  8. #8
    Join Date
    Dec 2011
    Posts
    1

    Question Re: playing video from MemoryStream

    Hi,
    Did u find any solution for the problem?
    I have the same problem now.

    Tnx

  9. #9
    Join Date
    Aug 2014
    Posts
    7

    Re: playing video from MemoryStream

    Hi,

    Yes, one possible solution I've found during working on a player that could play encrypted video files, is the following. Instead of having a real file on a disk you create a "file", a thing that is not present at a disk, but all files calls like SetFilePointer, ReadFile, GetFileSize are being redirected to appropriate memory stream methods. I like this really rich idea, for instance, you may read more about this approach here: http://boxedapp.com/encrypted_video_streaming.html

    So it seems it's possible to provide video data not only from an array of bytes, but actually from any source!

    Hope this helps!

  10. #10
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: playing video from MemoryStream

    Sure. Bypass encryption is possible on the device, not another.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured