a1q123456 / harmonic Goto Github PK
View Code? Open in Web Editor NEWA high performance and scalable RTMP live streaming application framework
License: MIT License
A high performance and scalable RTMP live streaming application framework
License: MIT License
Make mistakes according to your example
C# code:
Timer timer = new Timer((s) => { cts.Cancel(); throw new TimeoutException(); }, null, ReceiveTimeout, Timeout.Infinite);
I find websocket has removed.
The project will continue to support websocket?
Version tested: tag: V0.0.2
I tested the server is working I can see the video through vlc coming from:
rtmp://192.168.1.109/living/fe
But when I tested:
ws://127.0.0.1:8080/living/fe
It didn't work I tried different ways: i always got error messages coming from the players
This error:
[MSEController] > MediaSource onSourceOpen
[IOController] > Loader error, code = undefined, msg = undefined
[TransmuxingController] > IOException: type = Exception, code = undefined, msg = undefined
[MSEController] > MediaSource onSourceOpen
And a player I did:
Uncaught TypeError: Cannot read property 'flushStashedSamples' of null
How could I make work the WEBSOCKETS?
Thanks in advance.
I'm study the protocol, but I only find rtsp protocol, may I ask where I can find the RTMP protocol
Hi,
How can we use X509Certificate2 option?
Would you like to make an example and Cert file for test.
Thanks,
Hello, if i try to connect with rtmp camera(android app) i have this error:
System.Net.ProtocolViolationException Message: Operation is not valid due to the
current state of the object.
at Harmonic.Networking.Rtmp.HandshakeContext.ProcessHandshakeC2(ReadOnlySeque
nce`1 buffer, Int32& consumed) in C:\Users\Administrator\Desktop\Harmonic-master
\Harmonic\Networking\Rtmp\HandshakeContext.cs:line 106
at Harmonic.Networking.Rtmp.IOPipeLine.Consumer(PipeReader reader, Cancellati
onToken ct) in C:\Users\Administrator\Desktop\Harmonic-master\Harmonic\Networkin
g\Rtmp\IOPipeLine.cs:line 197
at Harmonic.Hosting.RtmpServer.AcceptCallback(IAsyncResult ar, CancellationTo
ken ct) in C:\Users\Administrator\Desktop\Harmonic-master\Harmonic\Hosting\RtmpS
erver.cs:line 116
I am publishing multiple streams on RTMP server(on each call I made custom job like updating stream status in db). -> This part is easy since in RTMP create stream message you have publishingName(StreamKey).
I am asking where is the right place to do custom work on stream stop (to do custom api call for updating stream status in db)
I made this part in RtmpController in DeleteStreamAsync method (first mapped streamID with streamName) but when running multiple stream - that custom API call is not made.
Does this part need to be handle on different part or am I doing something wrong?
I opened the solution with vs2017 and told me a project rtmp-server can not be loaded. Then I opened the "rtmp-sharp.sln", it showed the following section:
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "rtmp-server", "..\Document\Visual Studio 2015\Projects\rtmp-server\rtmp-server.csproj", "{4FDCBB5D-89FF-4689-94D5-8E911F61E97E}"
now the path is not exist on my computer.
I forked your project and modify code to make it to work in asp.net core web application. ffmpeg playback is working well, but websocket playback is not. flv.js will throw exception. And I try to use http-flv playback, but it is not work.
You can run my code:
forked project
https://github.com/CoreDX9/Harmonic/tree/a6318ce95ae7ad322ca01b904fd6756d884cf24b
webapp project
https://github.com/CoreDX9/IdentityServerDemo/tree/c1335f39206d285bf2761c65815d8b68e73b092d
download projects
relink project ref Harmonic to IdentityServer
run DemoApp/IdentityServer in solution IdentityServer
go to "https://localhost:5001/RtmpManage/Index" and click start rtmp service
use ffmpeg publish rtmp stream to "rtmp://localhost/living/touhou"
then flv.js will log error in console. I don't know why. Can you help me?
I have a task to make an application that will capture the flow from OBS and proxy it to different services such as twitch, facebook, youtube, can I use your solution for this?
Thanks for an incredible live stream server.
Do you have a plan to integrate with Google Cloud Speech to text?
Hi! I'm using this labrary for the first time, and I see the demo, but I want to record a streaming, I actually read the documentation but I can't understant how to implemente the recordcontroller to save a streaming, can anyone help me?
hi, at the first ,thanks a lot for this amazing library :)
i run harmonic on my server as console application (exe file). now every one can push stream an watch it .
how can i protect it with authentication , credentials ?
I can see in the new release there is an option to record video, do you have an example or how could I record?
Thanks,
For the same stream address, the number of pull streams is almost proportional to the increase of CPU utilization. I see that the CPU utilization of livego rises slowly。
please add proper docs for websocket
I've tried and run ffmpeg command to push stream but none of then working.why?
I need stream video from one client device to many other clients in the same network ?
so I need multicast , so the [server client device] can only transport once
I followed the doc to overrite the recording configuration and push video to rtmp://127.0.0.1/record/StreamName, but vs always show me that
'System.IO.DirectoryNotFoundException' in System.Private.CoreLib.dll
even if I don't change anything, there is no video saved in default directory.
FInally I saved the video successfully by changing the
public virtual string RecordPath { get; set; }= @"Record"
to
public virtual string RecordPath { get; set; } = System.IO.Directory.GetCurrentDirectory()
Are the instructions correct? Or Did I do something wrong above?
By the way , is there any method to saved the video at regular time or regular size, i don't want to lose the video after the program terminated by accident.
how to use cdn cache
1、能不能做到即保存又可以Living的流
2、我用杏林推流也报错,obs没问题。谁能帮我看一下吗?
Are you planning to migrate to. NET core?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.