how can I make the video part of this project work? - javascript

i am trying to make the code on the following page : https://github.com/gnuns/omigo work on my computer locally, and the text-messaging part works, but the video part doesn't.
I Have tried to manipulate the code my self, but i didn't find the solution yet, someone talled me that the code is depreciated, so i tried to learn about the webrtc, but only found old books.
there is no error message, just the browser ask for the permission to use the micro and webcam, and then nothing.

This is the security enforced by browser when the application tries to use media devices.
see this link for more info https://developer.mozilla.org/en-US/docs/Web/API/MediaStream_Recording_API/Using_the_MediaStream_Recording_API

Related

Could I use tesseract.js to recognize text in a discord channel in a browser?

I'm trying to process messages/text from a discord channel on a server I'm a part of. The owners don't allow discord bots (for valid reasons, it's a subscription service). I'd still like to be able to parse the messages and respond to them with code. Assuming this would have to be in a browser. I looked into firefox extensions, but it looks like they have some kind of Content Security Policy to prevent the extension background script from loading or running. Again, makes sense. I'm not trying to do anything nefarious. Eventually just do some automated responses to the messages, to automate what I do manually to respond.
I thought about OCR and recently discovered tesseract.js. At a quick glance, it looks like it's focused on images, but there are chrome and firefox extensions, and another sub-project that processes videos. Looks like the extensions still focus on images.
Any other ideas?
Sorry if this is too broad for STO. I tried posting the same to the javascript subreddit and it got removed. Not sure if it's appropriate for [AskJS] there or not. Seemed to be kind of in between that and here.

How to add tracker to magnet link?

I'm kinda of a newbie to torrents and what not but I'm currently trying to play a video on a website I'm creating. I'm using popcorntime's API to receive movies magnet links which I am then using Webtorrents source code to test. When I change the torrentID to a movie's magnet link, nothing plays.
(Here's the link if anyone wants to look at the source code: https://webtorrent.io/intro)
I've done some researching and found out that I need a tracker on the magnet link but I'm unsure how I would go about doing that.
This is an example magnet link: 'magnet:?xt=urn:btih:6268ABCCB049444BEE76813177AA46643A7ADA88&tr=udp://glotorrents.pw:6969/announce&tr=udp://tracker.opentrackr.org:1337/announce&tr=udp://torrent.gresille.org:80/announce&tr=udp://tracker.openbittorrent.com:80&tr=udp://tracker.coppersurfer.tk:6969&tr=udp://tracker.leechers-paradise.org:6969&tr=udp://p4p.arenabg.ch:1337&tr=udp://tracker.internetwarriors.net:1337'
The weird thing I noticed is that when I copy the link above into Webtorrents desktop application, the video plays fine and even downloads.
If anyone could give me an insight into what I'm doing wrong, it would be very much appreciated.
webtorrent WebRTC and TCP/UDP/DHT in real client
To download content via webtorrent in browser you need at least one of:
another WebRTC peer f.e. from webtorrent Desktop (which is hybrid WebRTC/bittorrent client)
webseed with enabled and configured CORS
ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F
I am not sure, but there is a difference in url, as you see. There is no :// but %3A%2F%2F.
You can try play Sintel and check if it's working correctly.
magnet:?xt=urn:btih:08ada5a7a6183aae1e09d831df6748d566095a10&dn=Sintel&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fsintel.torrent
Also there is mismatch informations on webtorrent website. Archive.org don't work well with webtorrent cos of missing CORS headers.

403 (forbidden) on end user's console

I have an application that seems to be working across the internet. But I fielded a call from an end-user who is having difficulty using the website
I asked her to send a screenshot of the console error and recieved this:
From searching stackoverflow it looks like its a permissions issue, but the site works for everyone else. Is this on her end or mine?
UPDATE I should've mentioned that is user works from a school. Perhaps her IT admin has blocked some internet resources?
Have end-user tried different browser? i would say it's some plugin stopping to load that script. If your app is working everywhere then it can't be your app. Ask end-use to try another browser and for check if end-user has any plugin witch can also cause this.
The problem may also come from lealfet or google map.
We can se that the page is currently loaded, css ans content seems fine, only the map part seems to be broken. So i don't think there is a problem with your server/website, I would put the fault on the others.
Note : we see that leaflet only is concerned when looking carefully at the screenshot.
Edit : in some cases, you can make a local copy of these external file, check whether the user need them or not, then load them as rescue.
Update : Either the school did block leaflet, or leaflet did automatically block the school as their bandwich use can excess what they allows by user, or due to abuse of any kind.

Flash Video Spokesperson in Wordpress => Tweople

I am developing a Wordpress site for a manufacturing company. The company would like to have a Video Spokesperson on some of the pages. Specifically we are testing it here: http://beautifulimage.net/test-magazine
The scripts that they provide are here: http://tweople.com/client/embed/1401121859b
Unfortunately, the video will only play once (with one iteration of the script) or not at all. For the iteration that will play it, you can refresh the cookies and it will play again.
1) I started by following the documentation that was provided. I expressly followed every direction implicitly without consistent success (it worked occasionally on http) ... I verified that the script/video works on 3 other sites (not secured sites), which further confirms that their product does work, but that there is a conflict. This conflict maybe with scripts that we are using on our site or with cross domain calls, but it is definitely not working the way that it should be.
2) Upon realizing that the script doesn't work on our site. I went through extensive troubleshooting.
Here are major trouble shooting errors I went through:
creating a cross domain xml file (recommended by adobe)
for registering flash videos that can be cross domain using 3rd
partyflash player
trying the video as an html5 video alone (no transparency. the
background was white)
going through the initiation/video player script to see if I need to
hard code links
support withtwepeople email
deactivating all WP plugins that could be causing conflicts and testing all previous debugging measures
I asked mediatemple (hosting company) if there was anything in the hosting account that could be causing the error.
note: The javascript console was calling out cross domain errors when we were occasionally getting it to work on http. When I forced https the video spokesperson stopped working completely.
I currently have multiple scripts inside of the file (lines 406, one commented out). The company has been attempting to support the issue, but have been unable to.
Anything to help is appreciated.

RTSP stream for QuickTime player does not show movie

Did anybody faced to problem when QuickTime cannot play streaming video and shows blue question mark instead or errors - 400 (Bad Request) and 10060 (Disconnected)? I have already tried to switch getting stream from UFP to HTTP protocol with custom port in QuickTime settings but this did not help.
And does anybody know where can i find streaming video using RTSP protocol just for testing, links to online streams (not downloaded trailers) are appreciating.
These links do not work for me due to issue mentioned above:
http://mac.sillydog.org/qt/mov/embed_stream.php
And here only last one works (among other streaming types) :
http://quicktime.tc.columbia.edu/users/iml/movies/mtest.html
Thanks, for any links and advices.
The best way I've found to get rtsp streams to play in a browser window is using Apple's own javascript. I've tried hard coding tags with exactly the same parameters, and the embed tags won't work, but the js will. The js file itself is called AC_Quicktime.js. Just google it and you should be able to find a link to it easily enough. Use the one from Apple's site to make sure that you're getting unmodified code. Load that in your HTML page, and in your body, insert this:
<script>
QT_WriteOBJECT(*url*,*width*,*height*,*ActiveX Version*,*parameter1*,*value1*,*parameter2*,*value2*,*parameter3*,*value3*);
</script>
This will draw the appropriate code in whatever container you place the script. ActiveX Version can be an empty string (''), and as many parameters as you like can be entered one after the other. Apple has fairly exhaustive documentation on their website for all their stuff.Apple Developer Connection.
Hope that was marginally helpful.
it appears that this was just a security issue and stream was stopped by private policy of Quick Time so to turn on the ability to play RTSP stream in Safari i needed to check some option in browser settings ...
http://www.niehs.nih.gov/news/video/help/

Categories