Selector to get value of showing subtitle(caption) of video.js - 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();

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

Titanium, Can you print a WebView webpage

In Titanium, is it possible to print a webpage, similar to printing a webpage from Safari? I'm using WebView.
It only needs to work with iOS, not Android.
If so, how? I haven't been able to find anything about this. One person told me it was impossible, but I thought I'd ask Stackoverflow - people here often surprise me :)
If you use the toImage() function on the WebView it takes a print to the visible area:
$.webview.toImage();
You want all the html content right?
If not, an possible workaround (I've didn't try this), but in order to do this, you need to know the html document height.
Create another WebView on an lower zIndex of your content app or place it out of the visible area like:
$.webview2.left = Ti.Platform.displayCaps.platformWidth;
Take a print of that copied WebView with:
$.webview2.toImage();
Than remove that view, obviously this wont work for all situations.

VB.Net and youtube videos

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?", "")

Generating a random preview image on a HTML5 video tag

Is it possible to capture a snapshot of a video that's loaded using the HTML5 video element and use that as a preview image until the video loads or the play event is triggered? I know about the poster attribute but I want the thumbnail to be self generated, like a random frame from the video. Sort of what YouTube/Vimeo does.
Thanks,
I don't think that this is possible in pure HTML5. Principally because the stream is not loaded when you see the 'object' in the webpage so the client can't get the desired frame.
However, the best option for you is to save / cache the 'random frame' before loading the page and then use it as the poster of the video. This will allow you to reduce the client work and save the bandwith.
check THIS, which is the first thing that I've found (if you're using PHP and you want a 'quick and dirty' way to get the frame)
Update
Apparently HERE there is a solution with popcorn.js BUT it seems that you can't do it in the way that (I suppose) you need.
This because it would be possible to do this only inside the same domain due to browser security issues.