I am using Gmfbridge to play seamless play the clips from the list. My problem is that , I want to play the clips from the list dynamically that is
after loading the clips in the gmfbridge when i select such that 5th clip from the list then playing start from the 5th clip in the list not from first clip.
I have developed an application in VB6 that uses GMFBridge to have a seamless playback of any number of files in the hardisk. I developed this as a playout solution for a local TV station. What it does is that i have created 2 graphs which are loaded with video files and simultaneosly added those 2 into the bridge and as soon as the first graph finishes the second graphs begins to play and when the second graph begins another file is loaded to the first graph and again as soon as the second graph finish then the fist starts to play and this goes on...by doing this only 2 graphs( two video files ) are loaded into the memory at any given time so by swapping with different files you could play any no. of files in your harddisk. You just need a modification with the code available in GDCL site. Try it. reply me if you have any questions and note that i could only support u in vb6,vb.net or C# and a strict no no for VC++.
I am trying the samething for a local TV station and GMFBridge is doing almost the thing I wanted but my TV station also has a PCR where they want to play any file in the list randomly as well as list in a sequence. I did try alot but there is some problem in audio is left. When the video changes there are 3 initial pauses in the newer clip audio and by that time it plays well in terms of video. This is the only problem I am left. I just need support in VB only. Please help me.
Its been a pleasure to know that someone still uses vb6 and gmfbridge.dll to build video applications.
But sadly, i would not recommend you to use gmfbridge.dll any further bcz its not at all a stable component. At somepoint your application will certainly crash.
Further more, you will not get support anywhere from internet let alone from its author.
Instead, I would suggest you 2 options i.e either you can develop your own directshow component(you can learn by modifying the GMFbridge.dll source code itself in VC++) or you can go for any third party SDK components from medialooks.
But the second option has its own disadvantages too, bcz i can't assure you a 100% success by using a third party SDK for your unique requirement but you will certainly get someone to help you from these SDK guys so much so that over time your application will get more stable and can add more features as these SDKs get upgraded.
Further more, please be aware that these video based applications are always an expensive propositions. Only a handfull of expert developers are out there in the WORLD who can develop video based apps in a stable and more developer friendly way and no open source component alternatives are available. Infact, who will take pain and hard-work for years without being paid simply to spread knowledge to everyone ?. Of-course, there is VCL player but this player doesn't use Direcshow framework for playing video files and also its activex counter part is not at all developer friendly and no one is using its as far as i know. And if at all someone wants VCL player Framework to create/develop apps, then he MUST learn C++ thoroughly and MUST know the intricate details of how a pixel is lit from a file called "Titanic.avi"
As far as iam concerned, i have gone to the maximum extend of GMFbridge.dll and failed miserably. Even to this day my mails to its author are still not replied. So if you want any advise(experineced)
in using a third party SDK then pls feel free to contact me at this mail id:manutechalpy308atgmaildotcom. Iam very much interested to know your requirement and will help you as much as i can.
How to link a radio button to a command button to get an answer in the edit box?
example: a 3 radio buttons (10% discount, 5% penalty and 10% penalty) if supposing i will chose the first radio button (10% penalty) how to write the code so that by clicking the command button (compute) a result will be displayed in the edit box and wo with the other radio buttons?
Make sure the radio buttons belong to the same group.
You can do this by setting the group property of the first radio button to true.
And the rest of the radio button must follow the first in order.
Now associate an int variable with the first radio button by right clicking on it and selecting "Add Variable".
Similarly associate an int variable with the edit box.
In the button click handler, first call UpdateData.
This will update the UI selection to the variables just added.
Check the value of the radio button variable to determine the option selected.
It will be 0 for first, 1 for second and so on.
Do your calculation and set the result to the variable associated with the edit box.
Finally call UpdateData(FALSE) to set the variables back to the UI.
«_Superman_» I love work. It gives me something to do between weekends.
Superman please show me sample code on how to do it? I can only compute the result under command button but when i select one radio button nothing will happend, i do not know how to connect radio button and command button to get the result.
Superman has given a very good explanation on how to implement this problem. Go Ahead and do the implementation. i am sure it is not a difficult task to complete. When you are stuck there are people to help you.
On selecting the radio button you can pass the value to the function in the command button which does the calculation and display the result in the textbox.
thanks for the reply... my problem is that i dont have a sample code on how to pass the value of the function to the command button. If i tried to use if else statement the system will say syntax error
hehehe...that's the reason why i posted this query because i only have little knowledge on c++. I am still on the process of studying this language. Please sir give me website to where i can look for sample codes on c++. I really need samples very badly...
Lose the calls to UpdateData(). They are completely unnecessary and only add to your confusion. You can easily have a CButton member variable associated with each radio button, and can call the button's GetCheck() method to see if it is checked or not.
BTW, when pasting code snippets, see #5 here. As it is, your code will not compile.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
thanks david for your reply. i cannot continue with my code for the reason that i dont have enough knowledge on it. My code is successful if i will not use radio button in getting the reasult but when i used a radion button to connect to the command button i cannot successfully link to it coz i dont know the code on how to do it. I just need a sample code for my reference...can u send sample code to connect the radio button to a command button please...?
If you're talking about MFC, then look at the CalcDynamicLayout and CalcFixedLayout virtual functions of the CControlBar class - look at how CDialogBar handles it.
If you're talking about a .NET/C# thing... then this is the wrong forum.
If you can't tell the difference, then you may need more local help.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]
I am using a CDockablePane Derived class to show a shell tree control. I enabled docking in the left side of mainframe window. I want to limit its horizontal size, so that part of list view area should always be visible. I tried to use CalcFixedLayout() after its creation in mainframe, but nothing happened. Can you tell me how to use it exactly.