Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I add a video player to my mainform???
#1
Hello,
I watched all the brandonio's video tutorials on youtube..

I worked according to his video tutorials....

Now in my program's main form I want to add a custom branded video player which will have the play,stop,pause,rewind,forward,fullscreen,quality features and it will show a play button and the first snap of the video when anyone run my software...then after clicking on the play button it will play the video...I want the player to play video from a direct link of the video and the video format will be mp4...and there will be more than one link for different quality...and I want that the player will catch the links from my mysql database...

Please help me how can I do this or by which codes I can make a player like this...I am a beginner in vb.net..

Please help me...

Thanks in advance.....
#2
What player do you want to use ?

Windows Media Player, VLC Media Player or Flash Media Player ?
#3
I have described what facilities the player will contain and it will be a custom branded player and it will play different qualities of the video from different direct links....for the reuirements I have told before which player will be the best and how could I add the player....

Please help me....
#4
mnxford Wrote:custom branded player and it
Well, before you are able to add this custom branded player to the form, you must first construct the player itself - which is entirely different. VB.NET does not allow you to simply brew up your own unique video player, but easily allows you to use existing players. This is why flatfish suggested that you use pre-existing players.
My Blog | My Setup | My Videos | Have a wonderful day.
#5
ow i got your point brandonio.....

If so then how can I add a video player like youtube which will play videos of different quality from links retrieved from my database. Youtube is an existing player so i think that there will be no problem with iteragting this player and make it connected with the database and play videos from direct link...

Please provide me the code or a close project with this player.

Thanks you brandonio for helping me..
Thanks in advance again......
#6
Youtube and most of the website players out there are usualy based on ShockwaveFlash Objects so to add it on to your form just right click on your Toolbox select Chose Items... then in the window that apears select the COM tab and search for ShockwaveFlash check the box next to it and presto !!! then just drag and drop it on to your form.

I havent worked with ShockwaveFlash in a wile but if i'm not mistaking to play a link just add it to the "Movie" property
Sssssssssoftware developer...
#7
after adding the component how can i use it to sh0w a player like youtube????

any code there???
#8
The player doesn't have to be visible in the designer or in form load. You can load a specific youtube video on form load but in order to do that the link must be modified

Normal link:
http://www.youtube.com/watch?v=QK8mJJJvaes

Modified link:
http://www.youtube.com/v/QK8mJJJvaes

As i said in my previous post asign this link to the movie property like this :

[code2=vbnet]AxShockwaveFlash1.Movie = "http://www.youtube.com/v/QK8mJJJvaes"[/code2]

Also the link accepts several parameters like "autoplay"
, and to use them they must be added at the end of the link with an & sign example:

http://www.youtube.com/v/QK8mJJJvaes&autoplay=1
autoplay parameter at the end means that the video will start when the link is loaded.
A full list of parameters can be found at :

https://developers.google.com/youtube/pl...eters.html

But bear in mind that several Youtube videos can only be watched on the site and dont know if this is the best aproach
Sssssssssoftware developer...
#9
using ur code and shockwave player component i get an error. the error is give below...
[Image: zv683b.png]

Please help me why this error ooccured.....
Thanks in advance....
#10
It seems that the solution is simple. I never encountered this error but after a quiq search it seems that you have to have to download and instal owc11 (office web components) you can do that at the folowing link :

http://www.microsoft.com/en-us/download/...x?id=22276
Sssssssssoftware developer...
#11
i have d0wnl0aded and install the c0mp0nenets and als0 add the office c0mp0nent 0n my pr0ject but the same err0r is occurring.....

Please help me snake bro.....


Possibly Related Threads…
Thread Author Replies Views Last Post
  Opening a video automatically from a directory K_Mccormic 3 14,252 03-14-2012, 10:53 AM
Last Post: Vinwarez

Forum Jump:


Users browsing this thread: 1 Guest(s)