Home > Software engineering >  [for] vb how can you get a video to let players out, read the next?
[for] vb how can you get a video to let players out, read the next?

Time:09-23

I now have A, A program will be kept open the video, Windows media player will be the one in the latest open default play video, that is, before A haven't finished, opened A new video, began to sow A,
Now I want to have another program B, control the media player is playing the first out, to play the latest open video (broadcast is A open video is in the process of automatic ignore, don't play it)
The great spirit refers to the way genuflect is begged... Did not call the program A method of interface

CodePudding user response:

You can describe clearly, this description ability, it is incomprehensible

CodePudding user response:

If it is a direct call media player to play, it might not,
If it is similar to the "" ShellExecute, let the system to the default player to play, that your idea is possible,

This you can verify:
System when equipped with other players, open the program A video type instead of the default use third party player play;
If the program to open A video into with A third party player played, the idea of you want to achieve;
If still use the media player to open, it could have the feeling,

To install the system unless wmplayer. Exe name, and then used his program to wmplayer. Exe to replace it,
But for wen to death "system file protection mechanism, the method, I am afraid,

In "your ideas to meet your" conditions, to truly implement, another condition is:
You must be able to detect the player state of play (play, or pause, end of the play, leisure, etc.),
So your application can according to the player state, to achieve let "the next video player, or ignore it,

CodePudding user response:

If "can be achieved", of course, you may be able to open the program down all of the video,
Let the player one by one to play out,

CodePudding user response:

refer to the second floor Chen8013 response:
if it is a direct call media player to play, it might not,
If it is similar to the "" ShellExecute, let the system to the default player to play, that your idea is possible,

This you can verify:
System when equipped with other players, open the program A video type instead of the default use third party player play;
If the program to open A video into with A third party player played, the idea of you want to achieve;
If still use the media player to open, it could have the feeling,

To install the system unless wmplayer. Exe name, and then used his program to wmplayer. Exe to replace it,
But for wen to death "system file protection mechanism, the method, I am afraid,

In "your ideas to meet your" conditions, to truly implement, another condition is:
You must be able to detect the player state of play (play, or pause, end of the play, leisure, etc.),
So your application can according to the player state, to achieve let "the next video player, or ignore it,

That has to
See you wanna get
You can use the hook
Hook on the program to open the file API
And then decide when open play no can be completed.

CodePudding user response:

http://www.nirsoft.net/utils/opened_files_view.html

CodePudding user response:

reference 5 floor aspower_ reply:
Quote: refer to the second floor Chen8013 response:

If it is a direct call media player to play, it might not,
If it is similar to the "" ShellExecute, let the system to the default player to play, that your idea is possible,

This you can verify:
System when equipped with other players, open the program A video type instead of the default use third party player play;
If the program to open A video into with A third party player played, the idea of you want to achieve;
If still use the media player to open, it could have the feeling,

To install the system unless wmplayer. Exe name, and then used his program to wmplayer. Exe to replace it,
But for wen to death "system file protection mechanism, the method, I am afraid,

In "your ideas to meet your" conditions, to truly implement, another condition is:
You must be able to detect the player state of play (play, or pause, end of the play, leisure, etc.),
So your application can according to the player state, to achieve let "the next video player, or ignore it,

That has to
See you wanna get
You can use the hook
Hook on the program to open the file API
And then decide when open play no can be completed.

The problem is that you can detect "wen to death" media player play state,


Pay attention to what I said is the program in the system and is not in their program control,
But now the high version WMP. DLL interface "is very rich," just don't know if you could achieve "communication" with the existing instance objects,

CodePudding user response:

refer to 7th floor Chen8013 response:
Quote: refer to fifth floor aspower_ response:

Quote: refer to the second floor Chen8013 response:

If it is a direct call media player to play, it might not,
If it is similar to the "" ShellExecute, let the system to the default player to play, that your idea is possible,

This you can verify:
System when equipped with other players, open the program A video type instead of the default use third party player play;
If the program to open A video into with A third party player played, the idea of you want to achieve;
If still use the media player to open, it could have the feeling,

To install the system unless wmplayer. Exe name, and then used his program to wmplayer. Exe to replace it,
But for wen to death "system file protection mechanism, the method, I am afraid,

In "your ideas to meet your" conditions, to truly implement, another condition is:
You must be able to detect the player state of play (play, or pause, end of the play, leisure, etc.),
So your application can according to the player state, to achieve let "the next video player, or ignore it,

That has to
See you wanna get
You can use the hook
Hook on the program to open the file API
And then decide when open play no can be completed.

The problem is that you can detect "wen to death" media player play state,


Pay attention to what I said is the program in the system and is not in their program control,
But now the high version WMP. DLL interface "is very rich," just don't know if you could achieve "communication" with the existing instance objects,

Can filter system messages
Also, I remember can replace the media player files, use the MPC, replace the file also can achieve the effect.

CodePudding user response:

Use that to play, good control
  • Related