how to make RTSP request in html5 or in javascript? - javascript

How to make request "rtsp://localhost:554/sample_100kbit.mp4"? (in HTML5 or Javascript)
I want to access video streaming data which source is present on Darwin server

I don't believe it's possible without an additional browser plugin.
The <video> tag in HTML5 requires the content to be served over HTTP.
Flash supports streaming using their own protocol (RTMP) and there are products available that will proxy between RTSP and RTMP. However that would require you to run your own server and provision the bandwidth between user -> proxy -> content.

HTML5 don't support rtsp URL, and maybe MSE or WebRTC can help
refer RTSP solution for JavaScript/HTML5

Related

How to stream audio live from browser to shoutcast-server

I am able to record audio direct in the browser from the device-microphone. I am using for this HTML5 (audio-tag) and JavaScript (.getUserMedia). Now I am looking for the best way to stream it live to my shoutcast-server. I found several threads to this topic but they are all >5 years old and do not really solve my problem.
What is the best way to to stream audio live from the browser to a shoutcast server?
The SHOUTcast source protocol is non-standard and cannot be streamed to directly from a browser. Some sort of translating proxy is required.
It's also likely that this proxy will need to transcode the audio as well, as the codecs available to you in-browser are not typically used in SHOUTcast streams.

How to see a livestream file with webrtc into html5 page

I need to embed a live video with url rtsp. I'm using webrtc, but I'm able to get just local camera live video. I'm streaming with vlc server several files, and I need to receive this video with rtsp live protocol due to network latency. How can I put it into html5 page using webrtc api?
I think webRTC is not the technology you are looking for.
What you need is just to use a HTML5 video element to receive the streaming. Take a look at https://github.com/Streamedian/html5_rtsp_player/wiki/HTML5-RTSP-Player

Show a RTSP stream in html

I want to show a stream of an IP camera in html website.IP camera send data with RTSP protocol. I used some codes like html5 RTSP && Google WebRTC. But I feeled these codes can't receive and show RTSP streams and not worked for me. I tested some methods that uses VLC but I wan't to show stream without using VLC and I want to implement this program as client side program.
There is no simple and good way to play RTSP directly in browser. It is possible to do it on old Android devices, on some STB or with VLC plugin which is not a good way to go.
You will have to install media server that will convert your RTSP to something for browser.
It is possible to take ffmpeg that will convert your rtsp to hls and have a live video translation from camera, but if you want more feature like stream management or recording you can look at commercial options like Flussonic (I'm working on it) or Wowza.
You can also google something like "streaming server" and look for RTSP and HLS/RTMP protocols in specification.
There has media source extensions(MSE) can support live h264 with very low latency(Chrome Firefox Safari below 1s). but there need a gateway to convert RTSP to fragmented MP4.

How to stream video over rtsp protocol for Live555 server on web browser

I am already using rtsp protocol to stream video on windows application and Silver-light web application. I have built rtsp server using Live555 library, which connects with video source and multicast with different users(clients).
But now I want to stream video source in web browser to replace silver-light component. So please some one can help me to do this on web browser.
Is there any standard way/solution to do rtsp video streaming on web browser? Please help me for video streaming over tcp socket on web browser. Currently, I am using rtsp over tcp protocol for video streaming.
You can do this in 3 ways:
Write a plug in for live555 server which converts RTSP stream into RTMP. Then stream RTMP to web browser. From web browser using Flash player open RTMP stream.
Use third party server (e.g. wowza) which take RTSP stream from live555 as a input and stream out as RTMP. From web browser using Flash player open RTMP stream.
Recently live555 developer has added webrtc streaming in library. You can use this feature for web browser streaming. live555-webrtc-demo. This feature stream direct to web browser. But you need webrtc compatible web browser (e.g. firefox, chrome, opera).
I personally used second option as a web browser streaming solution.
I hope this will help you.

Javascript library for recording user audio?

This isn't another one of those "How can I record audio in the browser?" questions... I know that the HTML5 Stream API is around the corner and Flash can already access the user's microphone and camera. I'm simply wondering, as a Javascript developer with little knowledge of Flash, if anyone has developed a JS library that hooks into Flash's device capabilities for recording but sends the results back to javascript (presumably using ExternalInterface).
In other words... libraries like SoundManager2 utilize a Flash fallback for audio playback, but they don't seem to allow for recording. Has anyone written a JS library that uses an invisible Flash movie to allow audio recording?
This does most of what you're looking for:
https://code.google.com/p/wami-recorder/
It records audio and sends it to a server via an HTTP POST (avoiding the need for a Flash Media Server.) A JavaScript API is available via ExternalInterface.
I'm not sure why you'd want the audio bytes in JavaScript, but it would probably be easy to modify it to do that too.
Unfortunately, you can't really do Flash audio recording in browser only. The Flash audio interfaces are all designed (surprise surprise) to talk to a Flash media server (or Red5): there is no interface to store recorded audio data locally and pass the recorded audio data to Javascript.
Once you have Red5/FMS setup you can control the recording process from Javascript: you can start/stop/playback the audio stream to/from the server. However, for security reasons you have to have a flash movie that is a minimum of 216 x 138 (see http://blog.natebeck.net/2009/01/tip-of-the-day-tricks-of-the-mic-settings-panel/ for a writeup) otherwise the settings manager won't be shown: this prevents people hiding an audio recording flash widget on a page and eavesdropping.
So no, no invisible flash controlled from javascript.

Categories