Solved

How to show live streaming video from RTSP server in asp.net website

Posted on 2014-10-11
4
2,258 Views
Last Modified: 2014-10-27
Hello Experts,


    I have an  RTSP server end point from which i need to show live streaming video in asp.net webpage , how do i achieve it. Please provide me some sample code to achieve it.


Thanks in advance for any suggestions and help.



Thanks:
Pramod M
0
Comment
Question by:Leverageconsulting
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 81

Expert Comment

by:David Johnson, CD, MVP
ID: 40375966
if you already have a real time server then simply create a url i.e.
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" autoplay="yes" loop="no" width="300" height="200" target="rtsp://10.20.50.15:554/0/888888:888888/main" />
<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab" 

Open in new window

style="display:none;"></object>
the important part is:
target="rtsp://10.20.50.15:554/0/888888:888888/main"

This is using the VideoLan codec.
vlc --logo-file C:\logo.png --logo-position 5 --logo-opacity 200 --logo-x 900 --logo-y -2 "mmsh://typeyoursourceIPhere:554" :sout=#transcode{vcodec=div3,vb=800,scale=0,acodec=mpga,ab=128,channels=2,samplerate=44100}:duplicate{dst=rtp{mux=ts,sdp=rtsp://:555/stream}} :sout-all :sout-keep

Open in new window


Souces and more
0
 

Author Comment

by:Leverageconsulting
ID: 40376575
Hello David,

Thank you for replying.

I am able to display rtsp stream visuals in web browser by creating URL as suggested by you in above code, but when i uninstall VLC media player in my PC i am not able to display the visuals and i am getting a message as shown in the screenshot attached.


1) How can i install vlc browser plugin without  installing vlc media player ?

2) Can you please explain on how can i use videolan codec in my asp.net web application ?

PFA

Thanks:
Pramod M
0
 

Author Comment

by:Leverageconsulting
ID: 40376578
Hello David,

Please find the Screenshot in the below attachment.


Plugin-NeededMessage.PNG
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40378866
Not something I really know about but jPlayer (very popular online player) can do RMTP streaming

http://support.jwplayer.com/customer/portal/articles/1430349-about-rtmp-streaming

Using VLC will require it to be installed.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question