VB.Net and youtube videos - vb.net

Is it even possible to create a code that will
Contain in a textfile url addresses to youtube videos
Then the videos would be played inner the application via Media Player? maybe or something else
Would the program know when the video ended to start next one?
Would I be able to control start stop next shuffle pause from the program buttons?
Really thanks for your answers.
Please give me some hints meanwhile cause I couldn't find any solutions how to get something like that

You could create a webbrowser that would navigate to the page plus "/#movie_player" then it would only display the player and not the rest of the page. Use "Inspect Element" in firefox to see this.
Ex. youtube.com/video_url/#movie_player

you need a shock wave flash element and you can turn that using Flash
https://www.youtube.com/watch?v=oMYmnWdCxvs
convert = TextBox1.Text
convert = Replace(convert, "=", "/")
convert2 = Replace(convert, "watch?", "")

Related

Can i get screenshot of desktop using vuejs

i am working on tracking app using vue.js. I am a new developer.i wanna know is it possible to track mouse click and capture screenshots even if person is on desktop or any where else on browser
This has nothing to do with VueJs specifically. However, you can use HTML5/Canvas/Javascript to take a screenshot, but that's still experimental.
Take a look at this answer: Using HTML5/Canvas/JavaScript to take in-browser screenshots
i have found the solution
i followed the steps here
https://www.webrtc-experiment.com/getScreenId/
these steps allowed me the screen sharing on my webpage and then i use html to canvas to get the image of the video tag

OK.RU embed videos set start time and hide controls

I want to embed a video from Ok.ru and then specify the time on which the video should start (eg: the video should start from second 5), and to hide the controls, like on YouTube's embed API.
I just found their API, but I am unable to find how to do the above.
Ok.ru API is viewable here: English Documentation
How to do this? Thank you!
My two cents:
You can specify the start time by appending
?fromTime=...
to the URL, e.g.,
https://ok.ru/live/2001158479822?fromTime=38

Selector to get value of showing subtitle(caption) of video.js

I want to get as a sentence of showing subtitle(caption) of video.js when a user paused a video. Is there are any way to do that? Thanks.
I believe the answer you're looking for is .vjs-text-track. For example, to get the captions and/or subtitles text using jQuery, you would use:
var currentText = $('.vjs-text-track').text();

How to play a video file in a vb.net form

How to play a video file in vb.net ?
I need the video to automatically start playing on form load.
Using google will show many results. Here is one that seemed pretty easy to follow:
http://www.mitov.com/html/simple_video_player_in__net.html

Embedded video in WinForms (AxShockwaveFlash)

I have uploaded a couple of tutorial videos in youtube.
In my winforms application (by using the AxShockwaveFlash object) i reproduce the selected video by the user.
AxShockwaveFlash1.LoadMovie(http://www.youtube ..video1)
Here comes the story.
The first time the user selects a video, reproduction works like a charm.
When the user selects to see the second video
AxShockwaveFlash1.LoadMovie(http://www.youtube ..video2)
the ShockwaveFlash continues the reproduction of the first selection
Try to use
AxShockwaveFlash1.Stop();
AxShockwaveFlash1.Movie = "Your source";
AxShockwaveFlash1.Play();
Pattern to avoid leaving flash arguments behind.
Without knowing how you have integrated the video in your form, the method I would do is using a webBrowsercontrol in the form and embed the video in the control.
msdn on webBrowsercontrol
I had encountered this problem and resolved it by changing the Embed property of the Ax object control to False.
I embed the videos via the movie URL each time as follows:
http://www.youtube.com/v/targetmovie&feature=player_embedded
Works a treat
Tamir,
the video is embedded. Not stored locally
This is because your application is loading flash player loader from the cache and then it's loading the real player from the site , finally this yield a security exception.
In internet explorer , in internet options set to check for new versions of the documents each time you visit the page.
You first need to extract the FLV file like here:
Getting an FLV from YouTube in .NET