Im using a trackbar to change the current time position of the video displayed on a windows media player.
The trackbar maximum value is whatever the length (in seconds) of the video is.
So i need help with how to change the current time on a windows media player.
I am not having difficulty i just need to know how to do it.
Im not sure if there are several ways to embed windows media player into vb, so im just gonna clarify that i didnt install/download anything i just used the one that came with windows media player.
Use The currentPosition property of CtlControls.
player.Ctlcontrols.currentPosition = CDbl(10.4)
Related
i'm working on a Windows 8 Store App and i am trying to use different icon resolutions for different screen sizes.
But somehow
ResolutionScale resolutionScale = Windows.Graphics.Display.DisplayProperties.ResolutionScale;
always returns Scale100Percent. I tried it on my Desktop PC, which runs at 1080p and i also tried it with the simulator in all different resolutions it offers but the ResolutionScale Property stays 100%.
Using DisplayInformation instead of DisplayProperties is not an option because i still want to support Windows 8.0.
Does anyone know if there is another way to get the current resolution scale in Windows 8.0 or if i am doing something wrong?
Thanks in advance
Khrimm
Edit: Using the actual screen resolution to determine the scale factor seems to be another possibility.
How to integrate vlc player in vb.net? Can anybody help me ? I am using visual studio 2008.
In my project i was using Windows media player before,but because of some problems occured in project.I wanted to switc my video player to vlc player..
My pc configuration:-
1)64 bit
2)Windows 8 pro 9200
Hoping that someone will help me.
My email Id - mayurpatil0123#gmail.com
AxWindowsMediaPlayer1.Ctlcontrols.currentPosition=reader.getString(5)
AxWindowsMediaPlayer1.Ctlcontrols.play()
Above code i have used for windows media player, I am searching for foe alternative for same code wic relates to vlc player.
Download the latest version of VLC, i'm sure it will work anyway, but just to have the same setup as me.
Add the VLC ActiveX as a component to the VB5 /6 project, it will put 2 traffic cones into the toolbox, called VLCPLugin and VLCPlugin2.
Place a new VLCPlugin control on your form and size it suitably, and add the following code to a button or the form load:
VLCPlugin1.addTarget "c:\winvideo\sample.avi", Null, VLCPlayListInsert, -666
VLCPlugin1.play
If you turn on autoplay, or use a vlc play list option with the word "go" in it, it will play the clip automatically.
You can use the fullscreen option to put it into fullscreen mode.
SOURCE
I have a question in vb.net
I want to make a short intro then people open my program but I have a little problem. Only way to put this video, is throung windows media player (incorporated in vb.net). Can I remove Windows media play skin (play, stop, contour and other "tools") from form? I need to appear only video in form.
Thanks.
if you are using the AxWindowsMediaPlayer, there is a property named uiMode which controls the level of UI displayed. Set it to "none" (a string) to remove the UI:
myAxWMP.uiMode = "none"
I've passed many hours searching the web for a solution to something which seems obvious, but without results.
I need to automate a task in a Flash application running on my intranet.
I can't change the Flash application nor do I have access to the source code.
it's not a Flash movie but an application.
I can't download the swf.
I'm using a WebBrowser in a form. The Flash app is displaying without issues.
So far, I have been able to automate the task (clicking on some buttons, then inputting text and finally saving the results on a server). It works but it's not clean at all because I use hard-coded timers to wait a given action is done and then I click on very specific point at given coordinates in the application.
What I would like to do:
Avoid hard-coded timers. the Flash application takes some time to display all elements on the window (from 20 to 60+ sec). I would like to be able to detect when all elements are loaded. I tried to retrieve the text of the windows handle, but while I can retrieve the Flash hwnd, I can't retrieve the content (through messages).
In brief, instead of waiting 60sec (and not being 100% sure it's enough), if the last element to load in the Flash app has "ABC" written in it, I would like to detect it's displayed so that I can continue the sequence (click on the next button).
I'm using VB.net. Any hints to achieve that would be appreciated.
Lol. I am trying to do the same thing but with no results. You can try to see if there are POST/GET codes that can help you if the application has an online nature. Other than that you can only simulate clicks, because flash can't be easily interacted with. This is why most of the things are going to swap with HTML5 now.
At the moment I'm working on a project. Which contains streaming from an IP camera to the Silverlight 4 MediaElement. The stream that goes through the MediaElement, needs to be cut when a button is clicked.
So is it possible to record MediaElement's content on demand? When that's done, write the recorded part of MediaElement to disk.
If it is possible, what's the most efficient way to do this?
Thank you in advance,
AFAIK, extract part of the entirely video, you can just use a program which has record screen function to record silverlight video on demand. Then you just play the video and use it to start recording from desired beginning and finish recording at intended ending. Thus you will get demand content.