I want to capture the video using device camera using native code and stream it to local html page in webview.
There is no information on how to stream to a local html page which is loaded in the WKWebView
AFAIK I couldn't find any way to achieve this and it seems impossible to achieve ?
Thanks !
Related
I am trying to detect mask on a live video using Google Colab. ALthough i can use the camera to capture images but not to stream a live video. How can that be done?
Thanks in advance :)
Check this example. Since colab is running in a browser, you need to give proper permissions for the site to access webcam
https://colab.research.google.com/notebooks/snippets/advanced_outputs.ipynb#scrollTo=2viqYx97hPMi
Since the video is a sequence of image, you can save the images with mask detected as a video file.
I am writing a desktop application (web wrapper) that might require streaming youtube video.
Which application layer protocol is best suited for streaming YouTube videos? Do Chrome, Firefox, and Safari use the same application layer protocol for streaming YouTube videos?
(1) If you're using some web component of your programming language then just point it towards a Youtube video url. This displays full video page within your app.
webComponent.load("https://www.youtube.com/watch?v=xxxxxx");
(2) If you want just the Youtube player only (without comments and side thumbnails. etc) then :
Replace: https://www.youtube.com/watch?v=xxxxxxxx
With: https://www.youtube.com/embed/xxxxxxxx
(3) If you want the video file (without Youtube player) to display through your own player:
Look at Yoututue API for your language : https://www.googleapis.com/youtube/
(or else use a library like Youtube-DL to get MP4 files returned into your app).
If my web app is not single page app, how can I build an audio streaming with audio player which continue playing while paginating.
You can :
use javascript for reloading other part of your web app (it's not only for single web app page)
use system like symfony for rending part of the page with single controller without reload all. (Ok this solution is based on AJAX call)
use iframe
use iframe with other domain
I want to capture Ipad's video output into a browser using html5 tag(may be canvas or some other)..
How is that possible??
Also i assume that iPad streams video as component output format.
There exist an API called getUserMedia() to open streams of webcams, microphone, screencast and such fort streaming.
However Apple does not provide this API for iOS yet, so you basically cannot do it with web app. I am not sure if ti is even possible with a native app.
I've to show a video source (WebCam or Video Grabber) in an HTML page.
I have NO need to stream or capture the signal, but I need only to overlay the video on the HTML page, since the PC that has to show the signal it the same that receive it.
I tried the following, but all of them are too jerkily or with a sort of "interlaced" view:
HTML5 and Chrome Canary
Adobe Flash with Camera.getCamera
VideoCapX (an ActiveX recorder)
Java applet
I think that for obtain the smoothness I've to find an element that handle the "overlay" method.
Remember that I can install what I want on this PC since I don't have to stream the signal.
Thank you very much in advance.