IMFMediaSession::Start method stops working on second intance

I have created a test app modeled on the playlist example in the vista sdk. I modified it a bit to play video and loop with the skip function. I then set it up to create two windows with a player in each. Now with one window it plays just fine and loops
as expected. When I add a second window with another playlist something strange begins to happen. The first window plays and loops just fine, but when it comes to the second window, when it gets to the end of the sequencer source, it triggers the MEEndOfPresentation
event. The code is set to call the skip function, which it executes fine. Then the player just goes black. It must still be playing or something, because if I wait the player will start playing again. If I wait even longer it will go black again. Now the whole
time the first window is running fine.
I have built this test app with the following example
https://msdn.microsoft.com/en-us/library/ms697285(v=vs.85).aspx
I could post the code for the test app, but it is quite a bit. I am hoping someone might have a clue to what the problem is before I fill this thread with code. I would appreciate it if someone could help me work through this problem.
Edit: I have put the code, sample files I used, and a mftrace file here
https://onedrive.live.com/?cid=C549C64FC840D296&id=C549C64FC840D296%21109
Thank You

uploaded the code^^^^^

Similar Messages

  • Siri mic starts and stops in 1 second

    Hi all,
    So,
    - quit messages app to clear it out
    - I start the Messages app - click on a person - then click at bottom to message area
    - then click on MIC for dictation
    - 1st time siri starts - then stops after 1 second
    - then after that I try again and it stays on while I talk
    Q: HOW DO I FIX IT SO THAT IT WORKS AND STAYS ON = THE 1ST TIME?

    I am still having this issue - any ideas how to fix it?

  • My imessage isn't working when i send messages to people with iphones that have imessage it works with very few people, now it's starting to stop working with those people. help please.

    my imessage doesn't work between my friends and i. i have a new iphone 5. my messages only work with some people. with others imessage doesn't work in the first place and now its starting to stop working with other people help please.
    & yes we all have imessage on.

    Hi there,
    I see that you are having IMessage problems. Some of the problems might be:
    - Your friends IMessage is not activated (you have to activiate it with your apple id)
    - Your IMessage is not activated
    Here is some links to another person`s Imessage problems:
    https://discussions.apple.com/message/17301880#17301880
    https://discussions.apple.com/message/20142285#20142285
    https://discussions.apple.com/message/18988318#18988318
    Hope that helps!

  • Ui:hyperlink and ui:button "action" methods stopped working in IE

    Hi
    I'm developing my application for few months, but few days ago all ui:hyperlink and button action methods stopped working in IE. They are not invoked at all... No javascript errors, everything works fine in Firefox. Can anybody tell me where to look as I'm sitting 6h in front of screen and cannot find anything wrong...
    The only thing I have changed was adding a filter which changes encoding to UTF-8. Class below:
    * CharsetFilter.java
    * Created on 17 maj 2007, 11:18
    package tools.filter;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.text.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    * @author  Michal
    * @version
    public class CharsetFilter implements Filter {
        public CharsetFilter() {
        private String encoding;
        public void init(FilterConfig config) throws ServletException {
            encoding = config.getInitParameter("requestEncoding");
            if( encoding==null )
              encoding="UTF-8";
        public void doFilter(ServletRequest request, ServletResponse response, FilterChain next)
             throws IOException, ServletException
    //          request.setCharacterEncoding(encoding);
              next.doFilter(request, response);
         * Destroy method for this filter
        public void destroy() {
    }

    anyways, it can't be a problem becasue new application is facing the same problem and there's no filter. I'm using tomcat 5.5.18 on jboss 4.0.5.

  • Ui:hyperlink action methods stopped working in IE

    Hi
    I'm developing my application for few months, but few days ago all ui:hyperlink action methods stopped working in IE. They are not invoked at all... No javascript errors, everything works fine in Firefox. Can anybody tell me where to look as I'm sitting 6h in front of screen and cannot find anything wrong...

    anyways, it can't be a problem becasue new application is facing the same problem and there's no filter. I'm using tomcat 5.5.18 on jboss 4.0.5.

  • Why do some videos from some website stop working after seconds or minutes on a new iPad

    I subscribe to some website posting videos. The videos will start as it should and then stop after, sometimes seconds, and sometimes minutes after the beginning.
    The iPad is less than 3 weeks old. it is already the second. The first was a 16 GB this one is a 32 GB. no difference. This issue does not happen with only one website but other posted videos from other websites.

    This and other answers helped me to understand better why I cannot view these videos and search for answers. I found that the videos posted by this website end in .cfm, and doing research cfm is Adobe and is not compatible with apple software ? why this is not resolved is surprising to me - Several other people experience the same issue as I (dating 2007-to 2013) I am not computer literate but I know how to find information on the web and know +or -  how to use the programs. There seems to be nothing that will convert these videos into a format that the iPad could process and allow. should I buy quicktime for my windows device and transfer/sync it to the ipad (?)(3 weeks old I paid $900) will this work. I have tried to upgrade the firmware to my router but no luck there either; even following all the steps religiously. the unzip is not working? I get a file the upgrade button rejects.
    if it is this cfm format that is doing that, then there is no reason to spend x$ into a new router : the issue will remain the same- is this statement correct ?
    your help is greatly appreciated.

  • Sound stops working, 3 seconds after plugging in headphones

    I have a strange issue on my phone where the sound stops working after about 3 seconds (consistently), after plugging in headphones.
    I have the latest software update and I don't have any special sound modifying apps. No software I've installed ruined this, it has worked fine before, until about two weeks ago. I've also dust-cleaned the headphone jack.
    Without headphones, the sound works great.
    Here's an example of what happens
    1. I start a video on YouTube / play a song / start a call with someone / start a game
    2. The sound works well, nothing is strange at all
    3. I plug in my headphones
    4. The sound now works in the headphones
    5. About 3 seconds later, the sound stops working completely, in all the cases above
    6. The sound never returns, until I unplug my headphones
    I'm clueless as to what could be causing this. Does anyone have any idea?

    I've tried that, but it doesn't work
    It seems like a software/firmware issue, since the 3 seconds of working is 100% the same every time

  • SSRS Execution Service Render Method stopped working

    Hello SSRS Profis!
    I'm having the following Problem:
    I was trying to integrate SSRS in my Company-Software, and until today it went quite good:
    Its an ASPMVC 5 project with WCF-Services, and in these i had methods to render reports with the help of the ReportExecution - Webservice (2005), the Version of the MSSQL Server we use is 2008R2, reports use stored procedures as data sets.
    Everything worked fine, i could render all my reports in the services, gave the result back to the Frontendprojects to present it there, it worked fast and properly.
    Until today: For some reason, the call of the ReportExection.Render() - Method gives no more results back.
    Debugging shows me that it works approx. the same time as it did before for every report, but the result now is only "null" for every report i integrated until now:
    Here is the code I use to execute the service (for network credentials i use a user with administrator privilegue who can access all the reports (tested in private session), Parameter constructio also should work properly because it did before, same
    for the Report path...
    Any Ideas would be helpful!
    private byte[] getPDFFromReport(string ReportPath, Dictionary<string, string> parameterDicitionary)
    ReportExecutionService rs = new ReportExecutionService();
    // private method to set a user with enough permissions
    rs.Credentials = SetServiceAccount();
    // Render arguments
    byte[] result = null;
    string reportPath = ReportPath;
    string format = "PDF";
    string historyID = null;
    string devInfo = @"<DeviceInfo><Toolbar>False</Toolbar></DeviceInfo>";
    // Prepare report parameter.// mapping Parameters, gives back ReportExecution.ParamaterValue Array, still works as it should
    ParameterValue[] parameters = SetReportParameters(reportPath, parameterDicitionary); DataSourceCredentials[] credentials = null;
    string showHideToggle = null;
    string encoding;
    string mimeType;
    string extension;
    Warning[] warnings = null;
    ParameterValue[] reportHistoryParameters = null;
    string[] streamIDs = null;
    ExecutionInfo execInfo = new ExecutionInfo();
    ExecutionHeader execHeader = new ExecutionHeader();
    rs.ExecutionHeaderValue = execHeader;
    execInfo = rs.LoadReport(reportPath, historyID);
    rs.SetExecutionParameters(parameters, "de-de");
    // rs.Timeout = 300000;
    String SessionId = rs.ExecutionHeaderValue.ExecutionID;
    Console.WriteLine("SessionID: {0}", rs.ExecutionHeaderValue.ExecutionID);
    try
    result = rs.Render(format, devInfo, out extension, out encoding, out mimeType, out warnings, out streamIDs);
    execInfo = rs.GetExecutionInfo();
    Console.WriteLine("Execution date and time: {0}", execInfo.ExecutionDateTime);
    catch (SoapException e)
    Console.WriteLine(e.Detail.OuterXml);
    // Write the contents of the report to an MHTML file.
    return result;
    Edit:
    I tested the methods with the same user in an WindowsForms Project and got a result. In a former Version, it also still works. I changed nothing since the last deploy in this methods, so can't imagine why it suddenly stopped working....

    Found the solution!
    After checking team-foundation-changelogs of the last checkins, it turned out that somehow automatically some value in the reference.cs of the reportexecution - webservice was changed from:
            [return: System.Xml.Serialization.XmlElementAttribute("Result", DataType="base64Binary")]
    to
            [return: System.Xml.Serialization.XmlElementAttribute("Value", DataType="base64Binary")]
    After deleting and readding the webreference to the Project, it worked again.
    The next Thing to Research for me is how it can be, that this value automatically changes. Possibly because of different Versions of VS in the dev-Team.. (Ultimate and premium) In any case, this issue is solved, thank you for reading :)

  • 3RD GENERATION IPOD NANO STOPPED WORKING THE SECOND I CONNECTED IT TO ITUNES TO UPDATE MY LIBRARY ... I TRIED EVERYTHING POSSIBLE AND NOTHING IS WORKING ... AND IT WAS WORKING PERFECT RIGHT BEFORE I CONNECTED TO ITUNES ... HMMM.

    I DONT KNOW WHERE TO START BUT OR STARTERS LET ME JUST SAY I TOOK GREAT CARE OF MY IPOD NANO 3RD GEN AND THERE IS NO REASON ON MY PART WHY IT STOPPED WORKING... BUT IT DID STOP WORKING AS SOON AS I CONNECTED IT TO MY ITUNES LIBRARY... SO I AM A BIT SUSPICIOUS TO SAY THE LEAST... I ALSO HAVE AN IPOD TOUCH AND THAT'S WORKING JUST FINE. BUT BACK TO MY IPOD NANO 3RD GEN... WHAT THE **** IS GOING ON WITH IT

    Try restoring the iPod via iTunes. First from backup and if problem persists, restore to factory defaults/new iPod.
    If still problem make an appointment at the Genius Bar of an Apple store. If your iPod is with in the one-year warrranty, not abused and defective Apple will replace it.

  • I can't update my ipod. When I check for updates it says "can't connect to server"(despite internet connection being fine). Also, when I try and update software it starts then stops after 2 seconds

    I can't update my Ipod. When I check for updates it says "can't connect to server" despite internet connection being fine. When I receive a software update message;I say install and it starts updating then stops after 2 seconds. Help! (It is a 3rd gen IPod touch(I think)). Presumably as a result of this, I have tried to put my library onto my gf's new iPod touch and it just charges it..doesn't download my library onto the touch).

    Update Server
    Try:
    - Powering off and then back on your router.
    - iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    - Change the DNS to either Google's or Open DNS servers
    Public DNS — Google Developers
    OpenDNS IP Addresses
    - For one user uninstalling/reinstalling iTunes resolved the problem
    - Try on another computer/network
    - Wait if it is an Apple problem

  • Mic Starts and Stops Working

    So I'm sitting here looking at the audio settings for my mic because it stops working after less than a minute of unplugging and replugging it to get it to work, and the little grey bar for the mic volume will drop all the way to low and the mic won't work, but if I click anything, say Sounds, then Audio settings again, it starts working then stops again in under a minute. I went into playback devices and it says the mic is working properly and it's pratically brand new. I've already tried reinstalling Skyp

    I suggest the following:
    1. Make sure the mic is working with other programs.
    2. Install the latest version of Skype.
    3. Disable the automatic volume adjustment in Skype audio settings.
    4. If problem is not resolved then provide logs as described in this link  under Skype for Windows Desktop and attach it to your post.

  • IPod shuffle snyc starts then stops after 2 seconds

    iPod shuffle snyc starts then stops after 2 seconds

    If there is nothing new to automatically sync to the shuffle from your iTunes library, the sync probably lasts about two seconds...
    What are expecting the iTunes and the shuffle to do, when click the Sync button?

  • Sound suddenly starts and stops working?

    My iPhone 4S isn't making sound. My settings have not changed and I have turned my phone on and off several times. When I click the buttons on the side to adjust, the icon shows on the screen, but the dots for volume are not there. In my music, it plays, but the sound bar is grayed out, and it won't adjust at all when I click it. In some apps, like YouTube, the sound bar is gray as well, but again, I didn't make any adjustments to my phone. I haven't dropped it. It had stopped and started working multiple times. It went in and out while I was getting ready for work this morning. I got a text alert and then the next text it vibrated but made no noise. I don't get the sound when it sends a text or the noise when it locks my phone. It's like the phone suddenly mutes itself but I didn't tell I too. My music has started and stopped as I wrote this message but again, I have done nothing to the phone itself. I assumed this was a hardware glitch because all the advise I have found for this issue is to clean out the sound docks on my phone. I did that already but the issue has persisted. Turning it on and off has not made a difference. I also can't hear calls. My phone is pretty useless without sound.

    Hello there, Mac990.
    The following Knowledge Base article provides some great steps for resolving your issue:
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Photoshop Adobe 3.2 starter edition stopped working

    A couple of days ago my Adobe 3.2 starter edition quit working.  It asked me to re register then when I did I got an email reply saying that: The Adobe Starter edition is no longer available....What's up with that?

    I believe that there is a separate forum on Photoshop Starter, but have to admit that I could not find the link to offer it up to you. It seems that John Joslin has posted it before, as have some others. Maybe your boolean is better than mine, and you'll be able to find the exact forum.
    Good luck,
    Hunt

  • Iphone4, starts and stops charging every second.

    Hi,
    super frustrated here. I have an iPhone 4. I recently replaced the battery in an Apple store. for the first 2 weeks everything was fine, but recently everytime I plug it in to charge it vibrates twice to indicate that its charging then stops and starts again about every 1-2 seconds. I have taken it to apple so they could re seed the battery and clean out the ports and make sure its nothing on the wear and tear end but nothing works. and since my warrenty is out im out of luck in terms of a free swap. has anyone heard of this issue or any fixes? is it a hardware issue or could it be software? maybe a bad app install? any thing helps here. thanks
    Evan

    I checked today
    the battery started the charging loop at 99%, BUT (each time it re-started charging) there was 1 hour left for full charge.
    I hope somebody can help me

Maybe you are looking for

  • SSRS expression for division

    Hi All, Below is the my table with SSRS expressions marked as A and B  Expression A gets the serial number 1, 2, 3 etc I need to get expression A/B Any help on this much appreciated Thanks  Pradnya07

  • TS1538 PC won't recognize iPhone

    I have tried (almost) everything, but my iPhone (and iPod touch, and other iPhones) still isn't recognized by my pc. I recently re-installed windows xp on my computer and formatted my harddisk, that's when my problems started: If I try to connect my

  • MDB on MQSeries queue undeployment

    I just started testing MDBs listening on MQSeries queues. WLS 6.1 and MQ 5.1. I followed the instructions in the BEA foreign JMS providers white paper, deployed the MDBs, queued messages and things seemed to work. But shutting down the server reveale

  • Can not perform local client copy

    Hi Expert, I am not able to perform the local client copy for newly created on production server as system not accepting standard password 'PASS' for user SAP*.  Same is working fine at IDES server. Please help Thanks Gaurav

  • Can An Individual Item be Deleted from Time Machine Backup?

    I'm beginning to notice that my disk space is getting limited on my external drive that Time Machine uses to do its backups. Is it possible to go into TimeMachine and delete individual items i.e., a movie etc. in order to regain disk space? If it doe