How to livestream a video from camera to videojs using webrtc url [closed] - webrtc

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 days ago.
Improve this question
I have set up the https://github.com/aler9/rtsp-simple-server locally. I am capturing live feed from a camera and have a webrtc url: http://localhost:8889/stream1 . On front end, I am using videojs player. How can I stream the live stream to the videojs player in frontend without using cloud services.
Questions:
Does Videojs player play the video from webrtc url? Is that a compatible format? Or, should this be converted to another format?
It would help if you can point me to ready to use code on github and get the required services set up locally on my laptop to come up with a POC. Thank you
I have tried to put the webrtc url: http://localhost:8889/stream1 as a src into the videoJSOptions
{
src: '//127.0.0.1:8889/stream1/',
type: 'application/x-mpegURL',
},
I see the following message in console.
VM2576 react_devtools_backend.js:4012 VIDEOJS: WARN: Problem encountered with playlist 0-http://127.0.0.1:8889/stream1/. Trying again since it is the only playlist.

Related

Whatsapp api to let visitors contact us on whatsapp [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
In my holiday site I want to add whatsapp communication with visitor. I need whatsapp api to let visitors contact us on whatsapp. I have check multiple solution for this but don't find any solution yet for this.
I need functionality like below
WhatsApp provides a custom URL (whatsapp://send?text=) to send message with WhatsApp.
WhatsApp's Click to Chat feature allows you to begin a chat with someone without having their phone number saved in your phone's address book. As long as you know this person’s phone number, you can create a link that will allow you to start a chat with them. By clicking the link, a chat with the person automatically opens. Click to Chat works on both your phone and WhatsApp Web.
https://api.whatsapp.com/send?phone=number here
usage :
<a href=" https://api.whatsapp.com/send?
phone=whatsappphonenumber&text=urlencodedtext">send</a>
where whatsappphonenumber is a full phone number in international format and urlencodedtext is the URL-encoded pre-filled message.

Data crawling using import.io [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i have crawled some data from import.io. That data are in my import.io account. I have another import.io account. Now I want to tranfer data of my previous account to my new account. How can i do it? Is it even possible? I found no option for that
Thanks in advance
Do you mean to port the actual data extracted, or the API you defined?
There is a way to port the APIs, although one by one:
Open two browser windows and log in to your OLD and NEW accounts, respectively
Click on an API inside the OLD account, and copy the URL
Paste the URL inside the NEW account window: you'll be able to "duplicate" the API in the new one. This will be a copy of the original API definition, and you will be able to run it and edit it with your new account.

Windows 8 store certificate: Uploaded app package invalid because of certification (publisher id) [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I receive following error when attempting to upload my app to the Windows 8 store:
Validation error: The Publisher attribute of the Identity element
in the app manifest doesn't match your publisher ID, which is:
CN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
I manually updated the app manifest file with the publisher id displayed within the error message.
However, the value that I provided ended up getting overwritten when I uploaded the file to the store second time.
In conclusion, I am unable to upload my solution to the Windows 8 store because of a certificate issue.
Please help.
Not a lot to go on here. I suspect you may have missed a step. Did you associate your application with the Windows Store?
To do so, right click on your project in the solution explorer in Visual Studio. Select Store --> Associate App With the Store... Then follow the dialogs that come up.

sync older photos and videos on Google+ instant upload [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I use an android 4.2 phone and google plus instant upload to sync media to the cloud.
I notice that only my new photos are being synced.
Is there a way to sync older photos and videos on my device?
http://support.google.com/plus/bin/static.py?hl=en&page=ts.cs&ts=2769098
Instant Upload is designed to upload photos taken while you're signed into the app and the Instant Upload feature is turned on. Use Upload all to upload photos already on your mobile device.
To use the Upload all feature:
Open the Google+ app
Tap Menu and select Settings
If your device has a physical Menu button, press Menu and select Settings
Tap Instant Upload
Tap Upload all to initiate upload.
Keep in mind that the process of cataloging and uploading the photos on your device may take some time depending upon the number of photos on your device and the speed of your data connection.

How can I stream only the sound of a video from YouTube? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I would like to stream only sound from youtube. I need this for IOS but others can be ok. I have searched on stackoverflow but I couldn't find. Because I don't want to use another software, I want to directly stream only sound of youtube video by code. Also It should work on background.
Flashgot (for Firefox) has a way to download only the audio of a Youtube video. It exposes links to the audio that looks like this:
https://r3---sn-p5qlsu7d.googlevideo.com/videoplayback?id=887ce37c617a3225&itag=141&source=youtube&requiressl=yes&gcr=ca&ratebypass=yes&mime=audio%2Fmp4&gir=yes&clen=4012348&lmt=1409362978343745&dur=125.828&signature=0A00B9B16BB6EF3192DF33EEF9B2AB67F66F501F.0B649D407144B914A7CC7BE00E795B5BD1B9D932&upn=VFAbXgDGSU8&key=cms1&fexp=900718%2C924231%2C924637%2C927622%2C930809%2C931354%2C932404%2C9405454%2C941004%2C943917%2C945066%2C947209%2C947218%2C948124%2C952302%2C952605%2C952901%2C955301%2C957103%2C957105%2C957201&sver=3&ip=24.235.37.181&ipbits=0&expire=1419930614&sparams=clen,dur,expire,gcr,gir,id,ip,ipbits,itag,lmt,mime,mm,ms,mv,ratebypass,requiressl,source&cmbypass=yes&req_id=3eb2c618c54ca3ee&redirect_counter=2&cms_redirect=yes&mm=26&ms=tsu&mt=1419909012&mv=m
OK, so that is a very big link. This is the same link dissected into pieces:
https://r3---sn-p5qlsu7d.googlevideo.com/videoplayback?id=887ce37c617a3225
&itag=141
&source=youtube
&requiressl=yes
&gcr=ca
&ratebypass=yes
&mime=audio/mp4 #Here's where audio only is specified.
&gir=yes
&clen=4012348
&lmt=1409362978343745
&dur=125.828
&signature=0A00B9B16BB6EF3192DF33EEF9B2AB67F66F501F.0B649D407144B914A7CC7BE00E795B5BD1B9D932
&upn=VFAbXgDGSU8
&key=cms1
&fexp=900718,924231,924637,927622,930809,931354,932404,9405454,941004,943917,945066,947209,947218,948124,952302,952605,952901,955301,957103,957105,957201
&sver=3
&ip=24.235.37.181 #Oh, look. My IP address.
&ipbits=0
&expire=1419930614
&sparams=clen,dur,expire,gcr,gir,id,ip,ipbits,itag,lmt,mime,mm,ms,mv,ratebypass,requiressl,source
&cmbypass=yes
&req_id=3eb2c618c54ca3ee
&redirect_counter=2
&cms_redirect=yes
&mm=26
&ms=tsu
&mt=1419909012
&mv=m
Very interesting. This enables Flashgot to download only the audio and skip the video, thus saving bandwidth. I'm missing details, like how Flashgot created this link, but if Flashgot has a way to do it, it stands to reason that other HTTP clients could do it too.
You can't. The data stream that you receive from youtube includes both video/audio streams.
What you do with the data, it's up to you. This thread has interesting info on the subject.
According to the Youtube API blog post, the only options you have of playing youtube on iOS is to link to the video (and have the internal YouTube app play the video), or link from a UIWebView and play from there.
Audio-only playback is not supported.
I would use a MPMoviePlayerController and hide it's view.
Using Audacity software, you could record the audio played on your computer from any source. Since Audacity is open source and you can find open source browsers, you could combine them and get the audio from youtube. Of course its a lot of work, but I am only saying it could be possible unlike others.
In Linux:
mps-youtube a CLI solution. More details here.
VLC can do that too if started without video - more here.
mplayer can be used with the command mplayer -novideo URL
mpv can be used with the command mpv --no-video URL
Youtube Viewer, a CLI video player can be also used as indicated here.
A cross-platform solution:
As indicated in another answer the Flashgot addon for Firefox can identify in order to download an audio of a Youtube video. It will display a list of available streams for each video.
The idea is to start the youtube stream in an external player, but to be able to select only the audio stream with the Flashgot addon in Firefox by adding the external player as Flashgot "downloader" (like here) and then, after starting the youtube video in Firefox, using Flashgot to play only the audio stream by going to 'Available formats/DASH (separate audio and video tracks)'
[
and select the specific audio track.
[
Multimedia players can be assigned in Flashgot instead of a downloader, like VLC or SMPlayer, as most video players seem able to do the job (in Linux; for Windows, see below update); or even audio players like Clementine, although some audio players may not work.
It will start after a few seconds, some players after more than others. The fastest in Linux seems to be SMPlayer .
UPDATE:
Flashgot has to be up to date.
In Windows, Flashgot seems to display some audio streams in a different location than in the above image, that is already on the first list (before the DASH list). SMPlayer works the best AFAICT. VLC works, but not with all the audio streams listed by Flashgot. Clementine, Foobar2000 and XMPlay failed. It may be an overall-Windows codecs problem. MPC-HC starts but doesn't buffer correctly and stops long before it should.
There are separate streams for audio and video. This is by default in mp4 to flash conversion.
You can get the combined stream in flash format or separate in mp4 form.
Exemple:
[Headphones Stereo Test (HD)][youtube.com/watch?v=ZjAQylVPU3I]
contain
[the flash stream][youtube.com/v/ZjAQylVPU3I]
containing the combination of
audio stream and video stream in mp4 format.
*I'm sorry but the links will not work because they are customized based on ip , expire data , and other things.
To get these links i used uBlock origin for chrome because it has the logger function showing all connections made to server.
search for : mime=video and you can see all links then remove the range to get full length. Same with mime=audio and also you can use that for stream in other flash players but it is against the Terms of Service.