How to access video streams which are transferred by WebRTC in Chrome - google-chrome

guys.
I want to access my video streams which are generated by WebRTC in Chrome.
It seems impossible for javaScript to access my streams, am I right?
How to deal with?

How about you start by looking at this very simple tutorial:
http://www.html5rocks.com/en/tutorials/webrtc/basics/
It will teach you the basics of WebRTC web interface, then you can move up from there ;)

Related

Capture audio stream from NaCl with Web Audio API?

I have a compiled NaCl module that plays audio directly on the speakers. Is it possible to capture the audio buffer with the Web Audio API, or do I need to get the source code for the NaCl module and modify it (and learn Pepper and C++) to achieve this?
Not entirely sure (at all) how NaCl works, but https://github.com/mattdiamond/Recorderjs can be used to capture audio in Web Audio. It seems likely it'd work in this scenario too.

Media Server for WebRTC

We are trying to develop a web conferencing application using WebRTC. It's lack of support for IE browsers is really big pain point for us. Now we are trying to deploying a media server that can possibly do a http live streaming for non WebRTC browsers. We tried with Kurento Media Server, but unfortunately it doesn't go well with cloud. I'm clue less on how to proceed now. Can anyone help me with this regards.
P.s. Consider me as a rookie in WebRTC.
Priologic (easyRTC) just released an open source WebRTC plugin for IE.
HTTP Live Streaming has several seconds of delay. Not suitable for the real-time communication.
There are several alternative/complements that you can use in order to make videos work in IE.
First of all, please ask yourself if this is really needed. Are the people that will use your solution using IE ? If yes, could yo convince them to use a more decent another browser ?
If you really can't do that, then :
You could ask your users to install a plugin, like https://code.google.com/p/webrtc4all/
You could also use a fallback mechanism, like flash. Unfortunately, I don't know of any simple way to do that right now. You will probably have to build your solution from scratch. And the quality will probably suffer. EDIT : found this SO question, with a commercial Java applet.
Also see this SO question related to chrome frame and a google groups conversation
But really, I would just forget IE if I were you...

Sound Cloud and FLASH

I'm having troubles with connecting flash and sound cloud api so i would really appriciate if someone with bigger experience could help me out.
Is it possible to stream an audio file through flash without
embedding the sc player? What i mean is accessing the audio file
without any redirects plus granting access through crossdomain.xml.
Is there an up to date documentation how to autenticate an
application, how to get tokens and everything necessary?
Are there any sample solutions or tutorials in flash wich is up to date and really works (what i found was pretty much outdated)?
Thank you for your answer in advance.
Regards:
Gabe
Point 2) How to authenticate with Flash?
If you are building a flash web application, you could use the Javascript SDK to authenticate, then pass the access token back to the flash app via the flash external interface.
There's tons of information on how to authenticate in Javascript. One great walkthrough is on codecademy: http://www.codecademy.com/courses/javascript-intermediate-en-txGOj/0/1

Implementing RTMFP client in C

I am want to develop a client in C which uses RTMFP to communicate with Flash palyer for streaming video. I couldnt get much information on whether it is possible. I have looked into Cumulus project but i am not getting much insight into RTMFP specification.
If there is a workaround like writting a C wrapper around flex code is also fine. But i dont know if it is possible.
Any suggestion would be of great help.
Thanks.
Regards,
Jeeva
You could wrap the Flash OCX inside a C application and communicate with it, although I don't know if that would fulfill all your needs. I know multicast is possible without the need of a RTMFP server, but I don't know if that allows streaming video?
Sadly the RTMFP protocol uses a proprietary format which is not public and not fully known AFAIK, you can get some info here:
http://code.google.com/p/blue5/wiki/RTMPFPSpecs
But I don't know how valid it is.
Anyway, if you only want to stream video, and don't need any of the advantages of the RTMFP protocol, you could use RTMP with Red5, but maybe you already thought of it.
It seems that Adobe has finally published the RTMFP specifications.
See here:
http://blogs.adobe.com/standards/2014/04/17/adobes-rtmfp-profile-for-flash-communication-released
and here:
https://datatracker.ietf.org/doc/html/draft-thornburgh-rtmfp-flash-07

Get a stream from client microphone via web browser?

I want to implement something like voip communication that client doesn't need to install additional application, they just open the webpage and talk to a server. Is there anyway to access the audio stream from client microphone via web browser ? I don't want additional plugin like applet that user have to install.
I think flash can do this, but is there anyway else ?
Thank you,
Voteforpedro
Your four main options are:
Flash
Silverlight
ActiveX
Unsecure browser settings (e.g. javascript calling EXEs)
All of the above will be subject to various security limitations or require some acceptance by the end-user. I'm not even certain that the browser calling out to EXEs is even possible any more so it should be avoided at all costs.
Installing an ActiveX control will limit you to IE on Windows, so should probably be avoided. The user would have to agree to installing the ActiveX anyway.
Both Flash and Silverlight are cross-platform (Flash more so than Silverlight) but also require the user to agree to access to the Microphone/Webcam - this is done by the framework, not something you can control/influence. Obviously, if the user does not have Flash or Silverlight installed, you'd need to prompt the user that they need to install it!
As stated by #Oded, there are serious security and privacy issues related to microphone's and webcams, so do not expect future browsers to make this easier for you (e.g. the new family of HTML5 browsers).
There is no standard, I think flash is your best bet.
AS 3.0 Accessing a microphone.
There is no standard that gives you access to the client machine microphone.
I can imagine there are security implication to giving a browser such access, so don't expect to see anything soon, not without some sort of plug-in.
Chrome 11+ supports access to the microphone. Visit this page (with Google Chrome) and click on "Speech" and try it out. This is using Sencha Ext/Touch which is an open library. This specific addon to Sencha Touch is also open source and released here.
Edit: To clarify, this is JavaScript only. The user doesn't need to approve anything. But, it only works in Chrome and it uses Google voice recognition.
Good luck!