This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Diagnostics; | |
namespace RTMP | |
{ | |
public class FlvStreamer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Diagnostics; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void SendFlv(FlvTag[] flvs) | |
{ | |
var memory = new MemoryStream(); | |
var writer = new EndianBinaryWriter(EndianBitConverter.Big, memory); | |
const byte chunkHeaderType = 0x03; | |
var chunkCount = 0; | |
for (var i = 0; i < flvs.Length; i++) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://gist.github.com/shvyrev/e90d4ea24275dc8ebf6b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LPDIRECT3DSURFACE9 Surface; | |
D3DXIMAGE_FILEFORMAT FileFormat; | |
// Grab the current image in our front buffer. | |
d3d_device->CreateOffscreenPlainSurface( ScreenWidth, ScreenHeight, D3DFMT_A8R8G8B8, D3DPOOL_SYSTEMMEM, &Surface, NULL ); | |
// Copy everything from the front buffer to our surface. | |
d3d_device->GetFrontBufferData( 0, Surface ); | |
// Write the contents of the surface to the given file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( SUCCEEDED( hr ) ) | |
{ | |
hr = pEncoder->get_Broadcast(&pBrdcst); | |
} | |
if ( SUCCEEDED( hr ) ) | |
{ | |
hr = pBrdcst->put_PortNumber(WMENC_PROTOCOL_HTTP, 8080); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var xhr:URLRequest = this.getRequest(); | |
loader = new URLStream(); | |
loader.addEventListener(IOErrorEvent.IO_ERROR, handler_ioError); | |
loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, handler_httpStatus); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[trace] url: http://msg-5-m9.webinar.ru:82/engine.io/?EIO=3&transport=polling&t=1412494317370 | |
[trace] connect status: 200 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /event/2307/screensharing.json HTTP/1.1 | |
Content-Type: application/x-www-form-urlencoded | |
Host: dev-api.webinar.ru | |
Content-Length: 42 | |
Expect: 100-continue | |
Connection: Keep-Alive | |
HTTP/1.1 100 Continue | |
sessionId=56ee2f81a53a9ead17b8dc367040b9a1HTTP/1.1 500 Internal Server Error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Return-path: <[email protected]> | |
Authentication-Results: mxs.mail.ru; spf=pass (mx64.mail.ru: domain of webinar.ru designates 209.85.217.171 as permitted sender) [email protected] smtp.helo=mail-lb0-f171.google.com | |
Received-SPF: pass (mx64.mail.ru: domain of webinar.ru designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; [email protected]; helo=mail-lb0-f171.google.com; | |
Received: from [209.85.217.171] (port=42726 helo=mail-lb0-f171.google.com) | |
by mx64.mail.ru with esmtp (envelope-from <[email protected]>) | |
id 1YVG2j-00085r-Aq | |
for [email protected]; Tue, 10 Mar 2015 12:01:38 +0300 | |
X-Mru-BL: 0:99 | |
X-Mru-PTR: off | |
X-Mru-NR: 1 |