none
WMP unable to play .ts buffer file RRS feed

  • Question

  • i am trying to play a video stream in VC++. but when i try to play buffer file wmp gives an error saying it cannot play file since it is being used by another program.

    while i am writing buffer it won't play. however when i stop the program and try to play the buffer file it would play fine.

    how can i make wmp play this buffer file?

    i am using wmp10, XP sp2. buffer file is in .ts format. i have required codecs installed. 

    Friday, December 31, 2010 10:34 AM

Answers

  • You are trying to play a file at the same time you are writing it. You need special writer and reader filters in order to be able to do this (filters that do not lock the file exclusively, i.e. that open the file in fmShareDenyNone).
    Michel Roujansky, http://www.roujansky.com
    • Marked as answer by himrwt Monday, January 24, 2011 5:31 AM
    Friday, December 31, 2010 5:42 PM
    Moderator

All replies

  • You are trying to play a file at the same time you are writing it. You need special writer and reader filters in order to be able to do this (filters that do not lock the file exclusively, i.e. that open the file in fmShareDenyNone).
    Michel Roujansky, http://www.roujansky.com
    • Marked as answer by himrwt Monday, January 24, 2011 5:31 AM
    Friday, December 31, 2010 5:42 PM
    Moderator
  • I just found that my writer is not locking the file. I found that accessibility to my buffer file is in coherency with the share mode i applied while writing the file.

     

    however when i open .ts file in notepad while i am playing it in WMP it would not allow me to edit it. this is in contrast to the case with .wmv file. i can edit .wmv file with notepad while it is playing WMP.

     

    only difference in two cases, i can think of, is that of filters used by WMP to render these files. this gives raise to suspicion that my codecs for .ts file are locking .ts file exclusively.

     

    however these test were done on an XP system. whereas in Vista and Win7 i was not able to edit any file, while it is playing in WMP, at all.

     

    can anybody give some more light on conclusion of these results?

     

    is there anyway i can tell WMP not to lock the file?

    or is it entirely with the design of filters to whether lock it or not?

     

    is there any way around this problem? i don't know how to design filters, so would not comfortable with the idea to design one on my own.

     

     

    regards!!

    himanshu rawat


    himanshu rawat
    Thursday, January 6, 2011 6:30 AM