Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Friday, January 26, 2007 10:39:20 AM(UTC)

Groups: Registered
Posts: 1

I have a requirement to play file segments "seemlessly", that is, "file1.avi" is playing and then transit to "file2.avi" as though they were one file. I have everthing set up (two player instances wiih files loaded and ready).

What I wanted to do was use the SetWindowNotify() with ltmmPlay_Notify_StateChanged notification to tell me when "file1.avi" reached the end (state goes from "Running" => "Paused or Stopped".) and then start "file2.avi" playing. The problem is I seem to get a 1 to 2 second delay between the time "file1.avi" stops and the notification is received by the SetWindowNotify message handler. I see no other way to get notification of EOF from a "Running" file.

I experimented with the PlayWnd.cpp DriectShow example, and the corresponding event interface handler gets the EC_COMPLETE within milliseconds (which would allow starting the next file playing without a noticable delay). But if I have to use DirectShow directly that sorta sorta kills the deal, hmmm?

Anyway, it would be a great hep if anyone has any ideas about why the delay in notification and how to eliminate it.






Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, January 28, 2007 7:14:53 AM(UTC)

Adnan Ismail  

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

You could use the ltmmPlay_Notify_TrackingPositionChanged
notification value to know where exactly playback has reached, and when it reaches the end, continue playing back the next video.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.095 seconds.