├── CODE_NAME ├── RELEASE_NUMBER ├── sources ├── common │ └── include │ │ ├── .gitignore │ │ ├── common.h │ │ └── utils │ │ ├── buffering │ │ └── buffering.h │ │ ├── misc │ │ ├── format.h │ │ ├── misc.h │ │ └── variantmap.h │ │ ├── utils.h │ │ └── logging │ │ └── formatter.h ├── applications │ ├── admin │ │ ├── flex │ │ │ ├── .settings │ │ │ │ ├── com.adobe.flexbuilder.project.prefs │ │ │ │ └── org.eclipse.core.resources.prefs │ │ │ ├── .flexProperties │ │ │ ├── .project │ │ │ ├── .actionScriptProperties │ │ │ └── src │ │ │ │ └── com │ │ │ │ └── rtmpd │ │ │ │ └── Engine.as │ │ ├── include │ │ │ ├── admin.h │ │ │ └── cliappprotocolhandler.h │ │ └── src │ │ │ ├── admin.cpp │ │ │ └── cliappprotocolhandler.cpp │ ├── flvplayback │ │ ├── flex │ │ │ ├── .settings │ │ │ │ └── org.eclipse.core.resources.prefs │ │ │ ├── .flexProperties │ │ │ ├── .project │ │ │ └── .actionScriptProperties │ │ ├── include │ │ │ ├── flvplayback.h │ │ │ ├── tsappprotocolhandler.h │ │ │ ├── rtpappprotocolhandler.h │ │ │ ├── httpappprotocolhandler.h │ │ │ ├── rtspappprotocolhandler.h │ │ │ └── liveflvappprotocolhandler.h │ │ └── src │ │ │ ├── flvplayback.cpp │ │ │ ├── rtpappprotocolhandler.cpp │ │ │ ├── httpappprotocolhandler.cpp │ │ │ ├── liveflvappprotocolhandler.cpp │ │ │ └── rtspappprotocolhandler.cpp │ ├── applestreamingclient │ │ ├── flex │ │ │ ├── .settings │ │ │ │ └── org.eclipse.core.resources.prefs │ │ │ ├── html-template │ │ │ │ ├── playerProductInstall.swf │ │ │ │ └── history │ │ │ │ │ ├── history.css │ │ │ │ │ └── historyFrame.html │ │ │ ├── .flexProperties │ │ │ ├── .project │ │ │ └── src │ │ │ │ └── com │ │ │ │ └── rtmpd │ │ │ │ └── Engine.as │ │ ├── include │ │ │ ├── applestreamingclient.h │ │ │ └── protocols │ │ │ │ ├── m3u8 │ │ │ │ └── masterm3u8protocol.h │ │ │ │ ├── genericprotocol.h │ │ │ │ ├── aes │ │ │ │ └── aesappprotocolhandler.h │ │ │ │ └── key │ │ │ │ └── keyappprotocolhandler.h │ │ └── src │ │ │ └── applestreamingclient.cpp │ ├── misc_flash_resources │ │ ├── FridgeMagnets │ │ │ ├── fridge.fla │ │ │ ├── fridge.swf │ │ │ ├── pointy.ttf │ │ │ ├── caurina │ │ │ │ └── transitions │ │ │ │ │ ├── SpecialPropertySplitter.as │ │ │ │ │ └── SpecialPropertyModifier.as │ │ │ └── Fridge.as │ │ ├── videochat │ │ │ ├── collimator.gif │ │ │ ├── .settings │ │ │ │ └── org.eclipse.core.resources.prefs │ │ │ ├── src │ │ │ │ └── Engine.as │ │ │ ├── .flexProperties │ │ │ └── .project │ │ ├── amf3tests │ │ │ ├── .settings │ │ │ │ └── org.eclipse.core.resources.prefs │ │ │ ├── .flexProperties │ │ │ ├── .project │ │ │ ├── .actionScriptProperties │ │ │ └── src │ │ │ │ └── amf3tests.mxml │ │ ├── simplelive2 │ │ │ ├── .settings │ │ │ │ └── org.eclipse.core.resources.prefs │ │ │ ├── .flexProperties │ │ │ ├── .project │ │ │ └── .actionScriptProperties │ │ ├── generic_flex_components │ │ │ ├── .settings │ │ │ │ ├── com.adobe.flexbuilder.project.prefs │ │ │ │ └── org.eclipse.core.resources.prefs │ │ │ ├── .project │ │ │ ├── .flexLibProperties │ │ │ ├── src │ │ │ │ └── com │ │ │ │ │ └── rtmpd │ │ │ │ │ └── generics │ │ │ │ │ ├── Logging.as │ │ │ │ │ └── ui │ │ │ │ │ └── components │ │ │ │ │ └── LogsWindow.mxml │ │ │ └── .actionScriptProperties │ │ └── SimpleBallDemo │ │ │ ├── SimpleBallDemo.fla │ │ │ └── SimpleBallDemo.swf │ ├── vmapp │ │ ├── src │ │ │ ├── vm │ │ │ │ └── lua │ │ │ │ │ └── luaapi_handler_mpegts.cpp │ │ │ ├── vmapp.cpp │ │ │ ├── rtpappprotocolhandler.cpp │ │ │ └── rtspappprotocolhandler.cpp │ │ └── include │ │ │ ├── vmapp.h │ │ │ ├── vm │ │ │ └── lua │ │ │ │ ├── luaapi_handler_mpegts.h │ │ │ │ ├── luaapi_protocols.h │ │ │ │ ├── luaapi_generics.h │ │ │ │ └── luaapi_application.h │ │ │ ├── rtpappprotocolhandler.h │ │ │ └── rtspappprotocolhandler.h │ ├── vptests │ │ ├── include │ │ │ └── vptests.h │ │ └── src │ │ │ └── vptests.cpp │ ├── appselector │ │ ├── include │ │ │ ├── appselector.h │ │ │ └── httpappprotocolhandler.h │ │ └── src │ │ │ ├── appselector.cpp │ │ │ └── httpappprotocolhandler.cpp │ ├── stresstest │ │ ├── include │ │ │ └── stresstest.h │ │ └── src │ │ │ └── stresstest.cpp │ ├── samplefactory │ │ ├── include │ │ │ ├── localdefines.h │ │ │ ├── samplefactory.h │ │ │ └── echoappprotocolhandler.h │ │ └── src │ │ │ ├── echoappprotocolhandler.cpp │ │ │ └── samplefactory.cpp │ └── proxypublish │ │ ├── include │ │ ├── proxypublish.h │ │ ├── rtpappprotocolhandler.h │ │ ├── rtmpappprotocolhandler.h │ │ ├── rtspappprotocolhandler.h │ │ └── liveflvappprotocolhandler.h │ │ └── src │ │ ├── proxypublish.cpp │ │ ├── rtpappprotocolhandler.cpp │ │ ├── liveflvappprotocolhandler.cpp │ │ ├── jobstimerappprotocolhandler.cpp │ │ └── rtspappprotocolhandler.cpp ├── vm │ └── src │ │ └── basevm.cpp ├── thelib │ ├── src │ │ ├── protocols │ │ │ ├── rtmp │ │ │ │ └── channel.cpp │ │ │ ├── baseprotocolfactory.cpp │ │ │ └── http │ │ │ │ └── basehttpappprotocolhandler.cpp │ │ ├── streaming │ │ │ ├── baseinnetstream.cpp │ │ │ ├── baseoutnetstream.cpp │ │ │ └── baseoutfilestream.cpp │ │ └── mediaformats │ │ │ └── readers │ │ │ └── mp4 │ │ │ ├── atomurl.cpp │ │ │ ├── atommfhd.cpp │ │ │ └── atomnull.cpp │ └── include │ │ ├── protocols │ │ ├── rtmp │ │ │ ├── amfserializer.h │ │ │ └── messagefactories │ │ │ │ └── messagefactories.h │ │ ├── ssl │ │ │ ├── inboundsslprotocol.h │ │ │ └── outboundsslprotocol.h │ │ ├── rtp │ │ │ └── connectivity │ │ │ │ └── baseconnectivity.h │ │ ├── http │ │ │ └── basehttpprotocolhandler.h │ │ └── variant │ │ │ └── jsonvariantprotocol.h │ │ ├── netio │ │ ├── epoll │ │ │ └── iohandlermanagertoken.h │ │ ├── iohandlertype.h │ │ └── kqueue │ │ │ └── iohandlermanagertoken.h │ │ ├── streaming │ │ ├── baseinnetstream.h │ │ ├── baseoutnetstream.h │ │ └── baseoutfilestream.h │ │ ├── mediaformats │ │ └── readers │ │ │ ├── ts │ │ │ ├── tsboundscheck.h │ │ │ ├── piddescriptor.h │ │ │ ├── tsframereaderinterface.h │ │ │ └── pidtypes.h │ │ │ ├── mediafile.h │ │ │ ├── mp4 │ │ │ ├── atomuuid.h │ │ │ ├── atomurl.h │ │ │ ├── atommfhd.h │ │ │ ├── atomnull.h │ │ │ ├── atomdinf.h │ │ │ ├── atomsmhd.h │ │ │ ├── atomvmhd.h │ │ │ ├── atomilst.h │ │ │ ├── atomudta.h │ │ │ ├── atommvex.h │ │ │ ├── ignoredatom.h │ │ │ ├── atomco64.h │ │ │ ├── atomstco.h │ │ │ ├── atomstss.h │ │ │ ├── atomavc1.h │ │ │ ├── atomwave.h │ │ │ ├── atomdref.h │ │ │ ├── atomftyp.h │ │ │ └── atomstsz.h │ │ │ └── flv │ │ │ └── flvdocument.h │ │ └── utils │ │ └── readyforsendinterface.h ├── vmtests │ ├── src │ │ ├── testvmv8.cpp │ │ └── testvmlua.cpp │ └── include │ │ ├── testvmv8.h │ │ └── testvmlua.h ├── tests │ ├── src │ │ ├── basetestssuite.cpp │ │ └── main.cpp │ └── include │ │ └── thelibtestssuite.h └── androidapplestreaming │ └── include │ └── variantconnection.h ├── appscaffold └── templates │ ├── builders │ ├── netbeans │ │ └── osx │ │ │ └── nbproject │ │ │ ├── project.properties │ │ │ ├── private │ │ │ ├── private.properties │ │ │ ├── private.xml │ │ │ └── configurations.xml │ │ │ ├── project.xml │ │ │ └── Makefile-variables.mk │ └── cmake │ │ └── CMakeLists.txt │ ├── crtmpserver.lua │ └── sources │ ├── #APPNAME_LC#.h │ ├── #APPNAME_LC#.cpp │ ├── rtmpappprotocolhandler.cpp │ └── rtmpappprotocolhandler.h ├── configs ├── run_all.sh ├── run_flvplayback.sh ├── run_all_daemon.sh ├── run_flvplayback_daemon.sh └── users.lua ├── docs ├── server.xlsx ├── diagrams.cdd ├── RTMPEHandshake.pdf ├── ApplicationProtocols.doc ├── simpleLive │ └── simpleLive.swf └── stream_from_vlc.txt ├── constants └── branding.lua └── 3rdparty └── lua-dev ├── lapi.h ├── linit.c ├── lstring.h ├── lundump.h ├── ldebug.h ├── ltm.h ├── lualib.h ├── lfunc.h ├── lvm.h └── ltable.h /CODE_NAME: -------------------------------------------------------------------------------- 1 | Gladiator -------------------------------------------------------------------------------- /RELEASE_NUMBER: -------------------------------------------------------------------------------- 1 | 1.1_rc1 2 | -------------------------------------------------------------------------------- /sources/common/include/.gitignore: -------------------------------------------------------------------------------- 1 | version.h 2 | 3 | -------------------------------------------------------------------------------- /appscaffold/templates/builders/netbeans/osx/nbproject/project.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /appscaffold/templates/builders/netbeans/osx/nbproject/private/private.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /configs/run_all.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ./crtmpserver ./configs/all.debug.lua 4 | 5 | -------------------------------------------------------------------------------- /docs/server.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiretu/crtmpserver/HEAD/docs/server.xlsx -------------------------------------------------------------------------------- /docs/diagrams.cdd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiretu/crtmpserver/HEAD/docs/diagrams.cdd -------------------------------------------------------------------------------- /configs/run_flvplayback.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ./crtmpserver ./configs/flvplayback.lua 4 | 5 | -------------------------------------------------------------------------------- /configs/run_all_daemon.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ./crtmpserver --daemon ./configs/all.debug.lua 4 | 5 | -------------------------------------------------------------------------------- /docs/RTMPEHandshake.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiretu/crtmpserver/HEAD/docs/RTMPEHandshake.pdf -------------------------------------------------------------------------------- /configs/run_flvplayback_daemon.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ./crtmpserver --daemon ./configs/flvplayback.lua 4 | 5 | -------------------------------------------------------------------------------- /docs/ApplicationProtocols.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiretu/crtmpserver/HEAD/docs/ApplicationProtocols.doc -------------------------------------------------------------------------------- /docs/simpleLive/simpleLive.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiretu/crtmpserver/HEAD/docs/simpleLive/simpleLive.swf -------------------------------------------------------------------------------- /constants/branding.lua: -------------------------------------------------------------------------------- 1 | BRANDING_COMPANY_NAME="C++ RTMP" 2 | BRANDING_WEB="www.rtmpd.com" 3 | BRANDING_EMAIL="contact@rtmpd.com" 4 | 5 | -------------------------------------------------------------------------------- /sources/applications/admin/flex/.settings/com.adobe.flexbuilder.project.prefs: -------------------------------------------------------------------------------- 1 | #Fri Apr 16 00:20:50 EEST 2010 2 | eclipse.preferences.version=1 3 | upgradeSDK/fb4= 4 | -------------------------------------------------------------------------------- /sources/applications/admin/flex/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | #Fri Apr 09 19:50:48 EEST 2010 2 | eclipse.preferences.version=1 3 | encoding/=utf-8 4 | -------------------------------------------------------------------------------- /sources/applications/flvplayback/flex/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | #Sat May 16 21:38:44 EEST 2009 2 | eclipse.preferences.version=1 3 | encoding/=utf-8 4 | -------------------------------------------------------------------------------- /sources/applications/applestreamingclient/flex/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | #Thu Jun 17 15:07:24 EEST 2010 2 | eclipse.preferences.version=1 3 | encoding/=utf-8 4 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/FridgeMagnets/fridge.fla: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiretu/crtmpserver/HEAD/sources/applications/misc_flash_resources/FridgeMagnets/fridge.fla -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/FridgeMagnets/fridge.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiretu/crtmpserver/HEAD/sources/applications/misc_flash_resources/FridgeMagnets/fridge.swf -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/FridgeMagnets/pointy.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiretu/crtmpserver/HEAD/sources/applications/misc_flash_resources/FridgeMagnets/pointy.ttf -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/videochat/collimator.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiretu/crtmpserver/HEAD/sources/applications/misc_flash_resources/videochat/collimator.gif -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/amf3tests/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | #Tue Apr 13 13:01:05 EEST 2010 2 | eclipse.preferences.version=1 3 | encoding/=utf-8 4 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/videochat/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | #Fri May 27 12:08:54 EEST 2011 2 | eclipse.preferences.version=1 3 | encoding/=utf-8 4 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/simplelive2/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | #Tue Oct 26 18:16:29 EEST 2010 2 | eclipse.preferences.version=1 3 | encoding/=utf-8 4 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/generic_flex_components/.settings/com.adobe.flexbuilder.project.prefs: -------------------------------------------------------------------------------- 1 | #Fri Apr 16 00:20:50 EEST 2010 2 | eclipse.preferences.version=1 3 | upgradeSDK/fb4= 4 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/SimpleBallDemo/SimpleBallDemo.fla: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiretu/crtmpserver/HEAD/sources/applications/misc_flash_resources/SimpleBallDemo/SimpleBallDemo.fla -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/SimpleBallDemo/SimpleBallDemo.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiretu/crtmpserver/HEAD/sources/applications/misc_flash_resources/SimpleBallDemo/SimpleBallDemo.swf -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/generic_flex_components/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | #Wed Dec 16 11:11:10 EET 2009 2 | eclipse.preferences.version=1 3 | encoding/=utf-8 4 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/amf3tests/.flexProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /sources/applications/applestreamingclient/flex/html-template/playerProductInstall.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiretu/crtmpserver/HEAD/sources/applications/applestreamingclient/flex/html-template/playerProductInstall.swf -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/videochat/src/Engine.as: -------------------------------------------------------------------------------- 1 | package 2 | { 3 | import com.rtmpd.generics.Connection; 4 | 5 | public class Engine extends Connection 6 | { 7 | public function Engine() 8 | { 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /sources/applications/admin/flex/.flexProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /sources/applications/applestreamingclient/flex/.flexProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/simplelive2/.flexProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/videochat/.flexProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /sources/applications/flvplayback/flex/.flexProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /appscaffold/templates/builders/netbeans/osx/nbproject/private/private.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /appscaffold/templates/crtmpserver.lua: -------------------------------------------------------------------------------- 1 | { 2 | name="#APPNAME_LC#", 3 | description="#APP_DESC#", 4 | protocol="dynamiclinklibrary", 5 | aliases= 6 | { 7 | "#APPNAME_LC#_alias1", 8 | "#APPNAME_LC#_alias2", 9 | "#APPNAME_LC#_alias3", 10 | }, 11 | validateHandshake=false, 12 | --default=true, 13 | }, 14 | -------------------------------------------------------------------------------- /3rdparty/lua-dev/lapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lapi.h,v 2.2.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Auxiliary functions from Lua API 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lapi_h 8 | #define lapi_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | LUAI_FUNC void luaA_pushobject (lua_State *L, const TValue *o); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /sources/applications/applestreamingclient/flex/html-template/history/history.css: -------------------------------------------------------------------------------- 1 | /* This CSS stylesheet defines styles used by required elements in a flex application page that supports browser history */ 2 | 3 | #ie_historyFrame { width: 0px; height: 0px; display:none } 4 | #firefox_anchorDiv { width: 0px; height: 0px; display:none } 5 | #safari_formDiv { width: 0px; height: 0px; display:none } 6 | #safari_rememberDiv { width: 0px; height: 0px; display:none } 7 | -------------------------------------------------------------------------------- /configs/users.lua: -------------------------------------------------------------------------------- 1 | users= 2 | { 3 | broadcast="vbrick", 4 | user1="password1", 5 | user2="password2", 6 | user3="password3", 7 | gigi="spaima", 8 | a="a", 9 | } 10 | 11 | realms= 12 | { 13 | { 14 | name="My realm...", 15 | method="Basic", 16 | users={ 17 | "user1", 18 | "user3" 19 | }, 20 | }, 21 | { 22 | name="My second realm...", 23 | method="Basic", 24 | users={ 25 | "user2", 26 | "broadcast", 27 | "user1", 28 | "gigi" 29 | }, 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /sources/applications/admin/flex/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | flex 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | 15 | com.adobe.flexbuilder.project.flexnature 16 | com.adobe.flexbuilder.project.actionscriptnature 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /sources/applications/flvplayback/flex/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | flvplayback 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | 15 | com.adobe.flexbuilder.project.flexnature 16 | com.adobe.flexbuilder.project.actionscriptnature 17 | 18 | 19 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/amf3tests/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | amf3tests 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | 15 | com.adobe.flexbuilder.project.flexnature 16 | com.adobe.flexbuilder.project.actionscriptnature 17 | 18 | 19 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/videochat/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | videochat 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | 15 | com.adobe.flexbuilder.project.flexnature 16 | com.adobe.flexbuilder.project.actionscriptnature 17 | 18 | 19 | -------------------------------------------------------------------------------- /sources/applications/applestreamingclient/flex/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | applestreamingclient 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | 15 | com.adobe.flexbuilder.project.flexnature 16 | com.adobe.flexbuilder.project.actionscriptnature 17 | 18 | 19 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/simplelive2/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | simplelive2 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | 15 | com.adobe.flexbuilder.project.flexnature 16 | com.adobe.flexbuilder.project.actionscriptnature 17 | 18 | 19 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/generic_flex_components/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | generic_flex_components 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | 15 | com.adobe.flexbuilder.project.flexlibnature 16 | com.adobe.flexbuilder.project.actionscriptnature 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/stream_from_vlc.txt: -------------------------------------------------------------------------------- 1 | /Applications/VLC.app/Contents/MacOS/VLC -I dummy /tmp/lg.mp4 --sout='#rtp{dst=10.0.1.2,port=1234,sdp=rtsp://0.0.0.0:8080/test.sdp}' 2 | 3 | /Applications/VLC.app/Contents/MacOS/VLC -I dummy /tmp/lg.mp4 --sout='#transcode{soverlay,ab=42,samplerate=44100,channels=1,acodec=mp4a,vcodec=h264,width=320,height=180,vfilter="canvas{width=320,height=180,aspect=16:9}",fps=25,vb=200,venc=x264{vbv-bufsize=500,partitions=all,level=12,no-cabac,subme=7,threads=4,ref=2,mixed-refs=1,bframes=0,min-keyint=1,keyint=50,trellis=2,direct=auto,qcomp=0.0,qpmax=51}}:gather:rtp{dst=10.0.1.2,port=1234,sdp=rtsp://0.0.0.0:8080/test.sdp}' 4 | 5 | 6 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/generic_flex_components/.flexLibProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /appscaffold/templates/builders/netbeans/osx/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.cnd.makeproject 4 | 5 | 6 | #APPNAME_LC# 7 | 0 8 | 9 | cpp 10 | h 11 | UTF-8 12 | 13 | ../thelib 14 | ../common 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/generic_flex_components/src/com/rtmpd/generics/Logging.as: -------------------------------------------------------------------------------- 1 | package com.rtmpd.generics 2 | { 3 | import com.rtmpd.generics.ui.components.LogsWindow; 4 | import flash.display.DisplayObject; 5 | import mx.managers.PopUpManager; 6 | 7 | public class Logging 8 | { 9 | private static var DEBUG:int=0; 10 | private static var INFO:int=1; 11 | private static var WARN:int=2; 12 | private static var ERROR:int=3; 13 | 14 | [Bindable] 15 | public static var LogMessages:Array=new Array; 16 | 17 | 18 | private static function LogMessage(lvl:int, msg:String):void{ 19 | LogMessages.push({level:lvl, message:msg}); 20 | } 21 | 22 | public static function Debug(msg:String):void{ 23 | LogMessage(DEBUG,msg); 24 | } 25 | 26 | public static function Error(msg:String):void{ 27 | LogMessage(ERROR,msg); 28 | } 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /sources/applications/applestreamingclient/flex/src/com/rtmpd/Engine.as: -------------------------------------------------------------------------------- 1 | package com.rtmpd 2 | { 3 | import com.rtmpd.generics.Connection; 4 | import com.rtmpd.generics.Logging; 5 | 6 | import flash.events.Event; 7 | import flash.events.EventDispatcher; 8 | 9 | import mx.controls.Alert; 10 | import mx.utils.ObjectUtil; 11 | 12 | public class Engine extends com.rtmpd.generics.Connection 13 | { 14 | private var _streamName:String; 15 | private var _client:Object; 16 | 17 | public function Engine() { 18 | super(); 19 | } 20 | 21 | public override function Initialize():void{ 22 | super.Initialize(); 23 | } 24 | 25 | public function streamAvailable(streamName:String):void{ 26 | _streamName=streamName; 27 | _client.StreamAvailable(_streamName); 28 | } 29 | 30 | public function set Client(client:Object):void{ 31 | _client=client; 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /3rdparty/lua-dev/linit.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: linit.c,v 1.14.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Initialization of libraries for lua.c 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #define linit_c 9 | #define LUA_LIB 10 | 11 | #include "lua.h" 12 | 13 | #include "lualib.h" 14 | #include "lauxlib.h" 15 | 16 | 17 | static const luaL_Reg lualibs[] = { 18 | {"", luaopen_base}, 19 | {LUA_LOADLIBNAME, luaopen_package}, 20 | {LUA_TABLIBNAME, luaopen_table}, 21 | {LUA_IOLIBNAME, luaopen_io}, 22 | {LUA_OSLIBNAME, luaopen_os}, 23 | {LUA_STRLIBNAME, luaopen_string}, 24 | {LUA_MATHLIBNAME, luaopen_math}, 25 | {LUA_DBLIBNAME, luaopen_debug}, 26 | {NULL, NULL} 27 | }; 28 | 29 | 30 | LUALIB_API void luaL_openlibs (lua_State *L) { 31 | const luaL_Reg *lib = lualibs; 32 | for (; lib->func; lib++) { 33 | lua_pushcfunction(L, lib->func); 34 | lua_pushstring(L, lib->name); 35 | lua_call(L, 1, 0); 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /3rdparty/lua-dev/lstring.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lstring.h,v 1.43.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** String table (keep all strings handled by Lua) 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lstring_h 8 | #define lstring_h 9 | 10 | 11 | #include "lgc.h" 12 | #include "lobject.h" 13 | #include "lstate.h" 14 | 15 | 16 | #define sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char)) 17 | 18 | #define sizeudata(u) (sizeof(union Udata)+(u)->len) 19 | 20 | #define luaS_new(L, s) (luaS_newlstr(L, s, strlen(s))) 21 | #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ 22 | (sizeof(s)/sizeof(char))-1)) 23 | 24 | #define luaS_fix(s) l_setbit((s)->tsv.marked, FIXEDBIT) 25 | 26 | LUAI_FUNC void luaS_resize (lua_State *L, int newsize); 27 | LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e); 28 | LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); 29 | 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /sources/vm/src/basevm.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #include "basevm.h" 22 | 23 | BaseVM::BaseVM() { 24 | } 25 | 26 | BaseVM::~BaseVM() { 27 | } 28 | -------------------------------------------------------------------------------- /sources/applications/applestreamingclient/flex/html-template/history/historyFrame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 27 | Hidden frame for Browser History support. 28 | 29 | 30 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/amf3tests/.actionScriptProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /sources/thelib/src/protocols/rtmp/channel.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_PROTOCOL_RTMP 21 | 22 | #include "protocols/rtmp/channel.h" 23 | 24 | 25 | #endif /* HAS_PROTOCOL_RTMP */ 26 | 27 | -------------------------------------------------------------------------------- /sources/applications/vmapp/src/vm/lua/luaapi_handler_mpegts.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_LUA 21 | #include "vm/lua/luaapi_handler_mpegts.h" 22 | namespace app_vmapp { 23 | 24 | } 25 | #endif /* HAS_LUA */ 26 | -------------------------------------------------------------------------------- /sources/vmtests/src/testvmv8.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_V8 21 | #include "testvmv8.h" 22 | 23 | TestVMV8::TestVMV8() { 24 | 25 | } 26 | 27 | TestVMV8::~TestVMV8() { 28 | } 29 | 30 | #endif /* HAS_V8 */ 31 | -------------------------------------------------------------------------------- /sources/common/include/common.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _COMMON_H 21 | #define _COMMON_H 22 | 23 | #include "defines.h" 24 | #include "platform/platform.h" 25 | #include "utils/utils.h" 26 | 27 | #endif /* _COMMON_H */ 28 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/amf3tests/src/amf3tests.mxml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /3rdparty/lua-dev/lundump.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lundump.h,v 1.37.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** load precompiled Lua chunks 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lundump_h 8 | #define lundump_h 9 | 10 | #include "lobject.h" 11 | #include "lzio.h" 12 | 13 | /* load one chunk; from lundump.c */ 14 | LUAI_FUNC Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name); 15 | 16 | /* make header; from lundump.c */ 17 | LUAI_FUNC void luaU_header (char* h); 18 | 19 | /* dump one chunk; from ldump.c */ 20 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); 21 | 22 | #ifdef luac_c 23 | /* print one chunk; from print.c */ 24 | LUAI_FUNC void luaU_print (const Proto* f, int full); 25 | #endif 26 | 27 | /* for header of binary files -- this is Lua 5.1 */ 28 | #define LUAC_VERSION 0x51 29 | 30 | /* for header of binary files -- this is the official format */ 31 | #define LUAC_FORMAT 0 32 | 33 | /* size of header of binary files */ 34 | #define LUAC_HEADERSIZE 12 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/generic_flex_components/.actionScriptProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /sources/common/include/utils/buffering/buffering.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _BUFFERING_H 21 | #define _BUFFERING_H 22 | 23 | #include "utils/buffering/iobuffer.h" 24 | #include "utils/buffering/bitarray.h" 25 | 26 | #endif /* _BUFFERING_H */ 27 | 28 | -------------------------------------------------------------------------------- /sources/tests/src/basetestssuite.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #include "basetestssuite.h" 22 | 23 | int BaseTestsSuite::_testsCount = 0; 24 | 25 | BaseTestsSuite::BaseTestsSuite() { 26 | 27 | } 28 | 29 | BaseTestsSuite::~BaseTestsSuite() { 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /sources/vmtests/src/testvmlua.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_LUA 22 | 23 | #include "testvmlua.h" 24 | 25 | TestVMLua::TestVMLua() 26 | : BaseVMLua() { 27 | 28 | } 29 | 30 | TestVMLua::~TestVMLua() { 31 | } 32 | 33 | #endif /* HAS_LUA */ 34 | 35 | 36 | -------------------------------------------------------------------------------- /sources/applications/vmapp/include/vmapp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _VMAPP_H 21 | #define _VMAPP_H 22 | 23 | #include "common.h" 24 | 25 | extern "C" DLLEXP BaseClientApplication *GetApplication_vmapp(Variant configuration); 26 | 27 | #endif /* _VMAPP_H */ 28 | 29 | -------------------------------------------------------------------------------- /sources/applications/admin/include/admin.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _ADMIN_H 22 | #define _ADMIN_H 23 | 24 | #include "common.h" 25 | 26 | extern "C" DLLEXP BaseClientApplication *GetApplication_admin(Variant configuration); 27 | 28 | #endif /* _ADMIN_H */ 29 | 30 | 31 | -------------------------------------------------------------------------------- /sources/applications/vptests/include/vptests.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _VPTESTS_H 22 | #define _VPTESTS_H 23 | 24 | #include "common.h" 25 | 26 | extern "C" DLLEXP BaseClientApplication *GetApplication_vptests(Variant configuration); 27 | 28 | #endif /* _VPTESTS_H */ 29 | -------------------------------------------------------------------------------- /sources/applications/appselector/include/appselector.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _APPSELECTOR_H 22 | #define _APPSELECTOR_H 23 | 24 | extern "C" DLLEXP BaseClientApplication *GetApplication_appselector(Variant configuration); 25 | 26 | #endif /* _APPSELECTOR_H */ 27 | 28 | 29 | -------------------------------------------------------------------------------- /sources/applications/flvplayback/include/flvplayback.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _FLVPLAYBACK_H 22 | #define _FLVPLAYBACK_H 23 | 24 | extern "C" DLLEXP BaseClientApplication *GetApplication_flvplayback(Variant configuration); 25 | 26 | #endif /* _FLVPLAYBACK_H */ 27 | 28 | 29 | -------------------------------------------------------------------------------- /appscaffold/templates/sources/#APPNAME_LC#.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _#APPNAME_UC#_H 21 | #define _#APPNAME_UC#_H 22 | 23 | #include "common.h" 24 | 25 | extern "C" DLLEXP BaseClientApplication *GetApplication_#APPNAME_LC#(Variant configuration); 26 | 27 | #endif /* _#APPNAME_UC#_H */ 28 | 29 | -------------------------------------------------------------------------------- /sources/common/include/utils/misc/format.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _FORMAT_H 21 | #define _FORMAT_H 22 | 23 | #include "platform/platform.h" 24 | 25 | DLLEXP string format(const char *pFormat, ...); 26 | DLLEXP string vFormat(const char *pFormat, va_list args); 27 | 28 | #endif /* _FORMAT_H */ 29 | -------------------------------------------------------------------------------- /sources/thelib/include/protocols/rtmp/amfserializer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_PROTOCOL_RTMP 22 | #ifndef _AMFSERIALIZER_H 23 | #define _AMFSERIALIZER_H 24 | 25 | #include "amf0serializer.h" 26 | 27 | #endif /* _AMFSERIALIZER_H */ 28 | 29 | #endif /* HAS_PROTOCOL_RTMP */ 30 | 31 | -------------------------------------------------------------------------------- /sources/applications/stresstest/include/stresstest.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _STRESSTEST_H 22 | #define _STRESSTEST_H 23 | 24 | #include "common.h" 25 | 26 | extern "C" DLLEXP BaseClientApplication *GetApplication_stresstest(Variant configuration); 27 | 28 | #endif /* _STRESSTEST_H */ 29 | 30 | 31 | -------------------------------------------------------------------------------- /sources/applications/samplefactory/include/localdefines.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _LOCALDEFINES_H 21 | #define _LOCALDEFINES_H 22 | 23 | #define PT_ECHO_PROTOCOL MAKE_TAG2('E','P') 24 | #define PT_HTTP_DOWNLOAD_PROTOCOL MAKE_TAG7('H','T','T','P','D','L','D') 25 | 26 | #endif /* _LOCALDEFINES_H */ 27 | 28 | -------------------------------------------------------------------------------- /sources/applications/proxypublish/include/proxypublish.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _PROXYPUBLISH_H 22 | #define _PROXYPUBLISH_H 23 | 24 | #include "common.h" 25 | 26 | extern "C" DLLEXP BaseClientApplication *GetApplication_proxypublish(Variant configuration); 27 | 28 | #endif /* _PROXYPUBLISH_H */ 29 | 30 | 31 | -------------------------------------------------------------------------------- /sources/applications/vmapp/include/vm/lua/luaapi_handler_mpegts.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_LUA 21 | #ifndef _LUAAPI_HANDLER_MPEGTS_H 22 | #define _LUAAPI_HANDLER_MPEGTS_H 23 | 24 | #include "common.h" 25 | 26 | namespace app_vmapp { 27 | 28 | }; 29 | 30 | #endif /* _LUAAPI_HANDLER_MPEGTS_H */ 31 | #endif /* HAS_LUA */ 32 | -------------------------------------------------------------------------------- /sources/common/include/utils/utils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _UTILS_H 21 | #define _UTILS_H 22 | 23 | #include "utils/buffering/buffering.h" 24 | #include "utils/logging/logging.h" 25 | #include "utils/lua/luautils.h" 26 | #include "utils/mempool/mempool.h" 27 | #include "utils/misc/misc.h" 28 | 29 | #endif /* _UTILS_H */ 30 | 31 | -------------------------------------------------------------------------------- /appscaffold/templates/builders/netbeans/osx/nbproject/Makefile-variables.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Generated - do not edit! 3 | # 4 | # NOCDDL 5 | # 6 | CND_BASEDIR=`pwd` 7 | CND_BUILDDIR=build 8 | CND_DISTDIR=dist 9 | # Debug configuration 10 | CND_PLATFORM_Debug=GNU-MacOSX 11 | CND_ARTIFACT_DIR_Debug=../Debug/GNU-MacOSX/applications/#APPNAME_LC# 12 | CND_ARTIFACT_NAME_Debug=lib#APPNAME_LC#.dylib 13 | CND_ARTIFACT_PATH_Debug=../Debug/GNU-MacOSX/applications/#APPNAME_LC#/lib#APPNAME_LC#.dylib 14 | CND_PACKAGE_DIR_Debug=dist/Debug/GNU-MacOSX/package 15 | CND_PACKAGE_NAME_Debug=lib#APPNAME_LC#.dylib.tar 16 | CND_PACKAGE_PATH_Debug=dist/Debug/GNU-MacOSX/package/lib#APPNAME_LC#.dylib.tar 17 | # Release configuration 18 | CND_PLATFORM_Release=GNU-MacOSX 19 | CND_ARTIFACT_DIR_Release=../Release/GNU-MacOSX/applications/#APPNAME_LC# 20 | CND_ARTIFACT_NAME_Release=lib#APPNAME_LC#.dylib 21 | CND_ARTIFACT_PATH_Release=../Release/GNU-MacOSX/applications/#APPNAME_LC#/lib#APPNAME_LC#.dylib 22 | CND_PACKAGE_DIR_Release=dist/Release/GNU-MacOSX/package 23 | CND_PACKAGE_NAME_Release=lib#APPNAME_LC#.dylib.tar 24 | CND_PACKAGE_PATH_Release=dist/Release/GNU-MacOSX/package/lib#APPNAME_LC#.dylib.tar 25 | -------------------------------------------------------------------------------- /sources/applications/vmapp/src/vmapp.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #include "application/baseclientapplication.h" 21 | #include "vmapp.h" 22 | #include "vmappapplication.h" 23 | using namespace app_vmapp; 24 | 25 | extern "C" BaseClientApplication *GetApplication_vmapp(Variant configuration) { 26 | return new VMAppApplication(configuration); 27 | } 28 | -------------------------------------------------------------------------------- /sources/applications/admin/src/admin.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #include "application/baseclientapplication.h" 22 | #include "admin.h" 23 | #include "adminapplication.h" 24 | using namespace app_admin; 25 | 26 | extern "C" BaseClientApplication *GetApplication_admin(Variant configuration) { 27 | return new AdminApplication(configuration); 28 | } 29 | 30 | -------------------------------------------------------------------------------- /sources/applications/vmapp/src/rtpappprotocolhandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #include "rtpappprotocolhandler.h" 21 | using namespace app_vmapp; 22 | 23 | RTPAppProtocolHandler::RTPAppProtocolHandler(Variant& configuration) 24 | : BaseRTPAppProtocolHandler(configuration) { 25 | 26 | } 27 | 28 | RTPAppProtocolHandler::~RTPAppProtocolHandler() { 29 | 30 | } 31 | -------------------------------------------------------------------------------- /sources/vmtests/include/testvmv8.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_V8 21 | #ifndef _TESTVMV8_H 22 | #define _TESTVMV8_H 23 | 24 | #include "vmv8/basevmv8.h" 25 | 26 | class TestVMV8 27 | : public BaseVMV8 { 28 | public: 29 | TestVMV8(); 30 | virtual ~TestVMV8(); 31 | private: 32 | 33 | }; 34 | 35 | 36 | #endif /* _TESTVMV8_H */ 37 | #endif /* HAS_V8 */ 38 | -------------------------------------------------------------------------------- /sources/applications/applestreamingclient/include/applestreamingclient.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _APPLESTREAMINGCLIENT_H 22 | #define _APPLESTREAMINGCLIENT_H 23 | 24 | #include "common.h" 25 | 26 | extern "C" DLLEXP BaseClientApplication *GetApplication_applestreamingclient(Variant configuration); 27 | 28 | #endif /* _APPLESTREAMINGCLIENT_H */ 29 | 30 | -------------------------------------------------------------------------------- /sources/applications/vptests/src/vptests.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #include "application/baseclientapplication.h" 22 | #include "vptests.h" 23 | #include "vptestsapplication.h" 24 | using namespace app_vptests; 25 | 26 | extern "C" BaseClientApplication *GetApplication_vptests(Variant configuration) { 27 | return new VPTestsApplication(configuration); 28 | } 29 | -------------------------------------------------------------------------------- /sources/applications/stresstest/src/stresstest.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #include "application/baseclientapplication.h" 22 | #include "stresstest.h" 23 | #include "stresstestapplication.h" 24 | using namespace app_stresstest; 25 | 26 | extern "C" BaseClientApplication *GetApplication_stresstest(Variant configuration) { 27 | return new StressTestApplication(configuration); 28 | } 29 | -------------------------------------------------------------------------------- /sources/thelib/include/netio/epoll/iohandlermanagertoken.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef NET_EPOLL 21 | #ifndef _IOHANDLERMANAGERTOKEN_H 22 | #define _IOHANDLERMANAGERTOKEN_H 23 | 24 | typedef struct _IOHandlerManagerToken { 25 | void *pPayload; 26 | bool validPayload; 27 | } IOHandlerManagerToken; 28 | 29 | #endif /* _IOHANDLERMANAGERTOKEN_H */ 30 | #endif /* NET_EPOLL */ 31 | 32 | 33 | -------------------------------------------------------------------------------- /sources/thelib/include/netio/iohandlertype.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _IOHANDLERTYPE_H 21 | #define _IOHANDLERTYPE_H 22 | 23 | typedef enum _IOHandlerType { 24 | IOHT_ACCEPTOR, 25 | IOHT_TCP_CONNECTOR, 26 | IOHT_TCP_CARRIER, 27 | IOHT_UDP_CARRIER, 28 | IOHT_INBOUNDNAMEDPIPE_CARRIER, 29 | IOHT_TIMER, 30 | IOHT_STDIO 31 | } IOHandlerType; 32 | 33 | #endif /* _IOHANDLERTYPE_H */ 34 | -------------------------------------------------------------------------------- /sources/thelib/include/netio/kqueue/iohandlermanagertoken.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef NET_KQUEUE 21 | #ifndef _IOHANDLERMANAGERTOKEN_H 22 | #define _IOHANDLERMANAGERTOKEN_H 23 | 24 | typedef struct _IOHandlerManagerToken { 25 | void *pPayload; 26 | bool validPayload; 27 | } IOHandlerManagerToken; 28 | 29 | #endif /* _IOHANDLERMANAGERTOKEN_H */ 30 | #endif /* NET_KQUEUE */ 31 | 32 | 33 | -------------------------------------------------------------------------------- /sources/vmtests/include/testvmlua.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_LUA 22 | 23 | #ifndef _TESTVMLUA_H 24 | #define _TESTVMLUA_H 25 | 26 | #include "vmlua/basevmlua.h" 27 | 28 | class TestVMLua 29 | : public BaseVMLua { 30 | public: 31 | TestVMLua(); 32 | virtual ~TestVMLua(); 33 | private: 34 | 35 | }; 36 | 37 | 38 | #endif /* _TESTVMLUA_H */ 39 | #endif /* HAS_LUA */ 40 | 41 | -------------------------------------------------------------------------------- /3rdparty/lua-dev/ldebug.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ldebug.h,v 2.3.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Auxiliary functions from Debug Interface module 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ldebug_h 8 | #define ldebug_h 9 | 10 | 11 | #include "lstate.h" 12 | 13 | 14 | #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) 15 | 16 | #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) 17 | 18 | #define resethookcount(L) (L->hookcount = L->basehookcount) 19 | 20 | 21 | LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o, 22 | const char *opname); 23 | LUAI_FUNC void luaG_concaterror (lua_State *L, StkId p1, StkId p2); 24 | LUAI_FUNC void luaG_aritherror (lua_State *L, const TValue *p1, 25 | const TValue *p2); 26 | LUAI_FUNC int luaG_ordererror (lua_State *L, const TValue *p1, 27 | const TValue *p2); 28 | LUAI_FUNC void luaG_runerror (lua_State *L, const char *fmt, ...); 29 | LUAI_FUNC void luaG_errormsg (lua_State *L); 30 | LUAI_FUNC int luaG_checkcode (const Proto *pt); 31 | LUAI_FUNC int luaG_checkopenop (Instruction i); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /sources/applications/appselector/src/appselector.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #include "application/baseclientapplication.h" 21 | #include "appselector.h" 22 | #include "appselectorapplication.h" 23 | using namespace app_appselector; 24 | 25 | extern "C" BaseClientApplication *GetApplication_appselector(Variant configuration) { 26 | return new AppSelectorApplication(configuration); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /appscaffold/templates/sources/#APPNAME_LC#.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #include "application/baseclientapplication.h" 22 | #include "#APPNAME_LC#.h" 23 | #include "#APPNAME_LC#application.h" 24 | using namespace app_#APPNAME_LC#; 25 | 26 | extern "C" BaseClientApplication *GetApplication_#APPNAME_LC#(Variant configuration) { 27 | return new #APPNAME#Application(configuration); 28 | } 29 | 30 | -------------------------------------------------------------------------------- /sources/applications/flvplayback/src/flvplayback.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #include "application/baseclientapplication.h" 21 | #include "flvplayback.h" 22 | #include "flvplaybackapplication.h" 23 | using namespace app_flvplayback; 24 | 25 | extern "C" BaseClientApplication *GetApplication_flvplayback(Variant configuration) { 26 | return new FLVPlaybackApplication(configuration); 27 | } 28 | 29 | 30 | -------------------------------------------------------------------------------- /sources/applications/proxypublish/src/proxypublish.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #include "application/baseclientapplication.h" 22 | #include "proxypublish.h" 23 | #include "proxypublishapplication.h" 24 | using namespace app_proxypublish; 25 | 26 | extern "C" BaseClientApplication *GetApplication_proxypublish(Variant configuration) { 27 | return new ProxyPublishApplication(configuration); 28 | } 29 | -------------------------------------------------------------------------------- /sources/thelib/src/protocols/baseprotocolfactory.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #include "protocols/baseprotocolfactory.h" 21 | 22 | uint32_t BaseProtocolFactory::_idGenerator = 0; 23 | 24 | BaseProtocolFactory::BaseProtocolFactory() { 25 | _id = ++_idGenerator; 26 | } 27 | 28 | BaseProtocolFactory::~BaseProtocolFactory() { 29 | } 30 | 31 | uint32_t BaseProtocolFactory::GetId() { 32 | return _id; 33 | } 34 | 35 | 36 | -------------------------------------------------------------------------------- /sources/applications/samplefactory/include/samplefactory.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _SAMPLEFACTORY_H 22 | #define _SAMPLEFACTORY_H 23 | 24 | #include "common.h" 25 | 26 | extern "C" DLLEXP BaseClientApplication *GetApplication_samplefactory(Variant configuration); 27 | extern "C" DLLEXP BaseProtocolFactory * GetFactory_samplefactory(Variant configuration); 28 | 29 | #endif /* _SAMPLEFACTORY_H */ 30 | 31 | 32 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/FridgeMagnets/caurina/transitions/SpecialPropertySplitter.as: -------------------------------------------------------------------------------- 1 | package caurina.transitions { 2 | 3 | /** 4 | * SpecialPropertySplitter 5 | * A proxy setter for special properties 6 | * 7 | * @author Zeh Fernando 8 | * @version 1.0.0 9 | * @private 10 | */ 11 | 12 | public class SpecialPropertySplitter { 13 | 14 | public var parameters:Array; 15 | public var splitValues:Function; 16 | 17 | /** 18 | * Builds a new group special property object. 19 | * 20 | * @param p_splitFunction Function Reference to the function used to split a value 21 | */ 22 | public function SpecialPropertySplitter (p_splitFunction:Function, p_parameters:Array) { 23 | splitValues = p_splitFunction; 24 | } 25 | 26 | /** 27 | * Converts the instance to a string that can be used when trace()ing the object 28 | */ 29 | public function toString():String { 30 | var value:String = ""; 31 | value += "[SpecialPropertySplitter "; 32 | value += "splitValues:"+String(splitValues); // .toString(); 33 | value += ", "; 34 | value += "parameters:"+String(parameters); 35 | value += "]"; 36 | return value; 37 | } 38 | 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /sources/common/include/utils/misc/misc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _MISC_H 21 | #define _MISC_H 22 | 23 | #include "utils/misc/crypto.h" 24 | #include "utils/misc/file.h" 25 | #include "utils/misc/linkedlist.h" 26 | #include "utils/misc/mmapfile.h" 27 | #include "utils/misc/timersmanager.h" 28 | #include "utils/misc/variant.h" 29 | #include "utils/misc/uri.h" 30 | #include "utils/misc/format.h" 31 | #endif /* _MISC_H */ 32 | 33 | -------------------------------------------------------------------------------- /sources/thelib/include/streaming/baseinnetstream.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _BASEINNETSTREAM_H 22 | #define _BASEINNETSTREAM_H 23 | 24 | #include "streaming/baseinstream.h" 25 | 26 | class DLLEXP BaseInNetStream 27 | : public BaseInStream { 28 | public: 29 | BaseInNetStream(BaseProtocol *pProtocol, uint64_t type, string name); 30 | virtual ~BaseInNetStream(); 31 | }; 32 | 33 | #endif /* _BASEINNETSTREAM_H */ 34 | 35 | -------------------------------------------------------------------------------- /sources/thelib/include/streaming/baseoutnetstream.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _BASEOUTNETSTREAM_H 22 | #define _BASEOUTNETSTREAM_H 23 | 24 | #include "streaming/baseoutstream.h" 25 | 26 | class DLLEXP BaseOutNetStream 27 | : public BaseOutStream { 28 | public: 29 | BaseOutNetStream(BaseProtocol *pProtocol, uint64_t type, string name); 30 | virtual ~BaseOutNetStream(); 31 | }; 32 | 33 | #endif /* _BASEOUTNETSTREAM_H */ 34 | 35 | -------------------------------------------------------------------------------- /appscaffold/templates/sources/rtmpappprotocolhandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #include "rtmpappprotocolhandler.h" 22 | #include "protocols/rtmp/messagefactories/messagefactories.h" 23 | using namespace app_#APPNAME_LC#; 24 | 25 | RTMPAppProtocolHandler::RTMPAppProtocolHandler(Variant &configuration) 26 | : BaseRTMPAppProtocolHandler(configuration) { 27 | 28 | } 29 | 30 | RTMPAppProtocolHandler::~RTMPAppProtocolHandler() { 31 | } 32 | 33 | -------------------------------------------------------------------------------- /sources/tests/src/main.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #include "commontestssuite.h" 21 | #include "varianttestssuite.h" 22 | #include "thelibtestssuite.h" 23 | 24 | int main(void) { 25 | TS_PRINT("Begin tests...\n"); 26 | EXECUTE_SUITE(CommonTestsSuite); 27 | EXECUTE_SUITE(VariantTestsSuite); 28 | EXECUTE_SUITE(TheLibTestsSuite); 29 | TS_PRINT("A total of %d tests completed successfuly\n", BaseTestsSuite::_testsCount); 30 | return 0; 31 | } 32 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/ts/tsboundscheck.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_MEDIA_TS 22 | #ifndef _TSBOUNDSCHECK_H 23 | #define _TSBOUNDSCHECK_H 24 | 25 | #define TS_CHECK_BOUNDS(size) if((cursor+(size))>(maxCursor)){ FATAL("Bounds error: cursor: %u; size: %u; maxCursor: %u",(uint32_t)cursor,(uint32_t)(size),(uint32_t)maxCursor);return false;} 26 | 27 | #endif /* _TSBOUNDSCHECK_H */ 28 | #endif /* HAS_MEDIA_TS */ 29 | 30 | -------------------------------------------------------------------------------- /sources/thelib/include/streaming/baseoutfilestream.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _BASEOUTFILESTREAM_H 22 | #define _BASEOUTFILESTREAM_H 23 | 24 | #include "streaming/baseoutstream.h" 25 | 26 | class DLLEXP BaseOutFileStream 27 | : public BaseOutStream { 28 | public: 29 | BaseOutFileStream(BaseProtocol *pProtocol, uint64_t type, string name); 30 | virtual ~BaseOutFileStream(); 31 | }; 32 | 33 | #endif /* _BASEOUTFILESTREAM_H */ 34 | 35 | -------------------------------------------------------------------------------- /sources/applications/flvplayback/src/rtpappprotocolhandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_PROTOCOL_RTP 22 | #include "rtpappprotocolhandler.h" 23 | using namespace app_flvplayback; 24 | 25 | RTPAppProtocolHandler::RTPAppProtocolHandler(Variant& configuration) 26 | : BaseRTPAppProtocolHandler(configuration) { 27 | 28 | } 29 | 30 | RTPAppProtocolHandler::~RTPAppProtocolHandler() { 31 | 32 | } 33 | #endif /* HAS_PROTOCOL_RTP */ 34 | 35 | -------------------------------------------------------------------------------- /sources/applications/proxypublish/src/rtpappprotocolhandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_PROTOCOL_RTP 22 | #include "rtpappprotocolhandler.h" 23 | using namespace app_proxypublish; 24 | 25 | RTPAppProtocolHandler::RTPAppProtocolHandler(Variant& configuration) 26 | : BaseRTPAppProtocolHandler(configuration) { 27 | 28 | } 29 | 30 | RTPAppProtocolHandler::~RTPAppProtocolHandler() { 31 | 32 | } 33 | #endif /* HAS_PROTOCOL_RTP */ 34 | 35 | -------------------------------------------------------------------------------- /sources/applications/vmapp/include/vm/lua/luaapi_protocols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_LUA 21 | #ifndef _LUAAPI_PROTOCOLS_H 22 | #define _LUAAPI_PROTOCOLS_H 23 | 24 | namespace app_vmapp { 25 | int luaapi_protocols_getConfig(lua_State *L); 26 | int luaapi_protocols_enqueueForDelete(lua_State *L); 27 | int luaapi_protocols_gracefullyEnqueueForDelete(lua_State *L); 28 | } 29 | 30 | #endif /* _LUAAPI_PROTOCOLS_H */ 31 | #endif /* HAS_LUA */ 32 | -------------------------------------------------------------------------------- /3rdparty/lua-dev/ltm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ltm.h,v 2.6.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Tag methods 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ltm_h 8 | #define ltm_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | /* 15 | * WARNING: if you change the order of this enumeration, 16 | * grep "ORDER TM" 17 | */ 18 | typedef enum { 19 | TM_INDEX, 20 | TM_NEWINDEX, 21 | TM_GC, 22 | TM_MODE, 23 | TM_EQ, /* last tag method with `fast' access */ 24 | TM_ADD, 25 | TM_SUB, 26 | TM_MUL, 27 | TM_DIV, 28 | TM_MOD, 29 | TM_POW, 30 | TM_UNM, 31 | TM_LEN, 32 | TM_LT, 33 | TM_LE, 34 | TM_CONCAT, 35 | TM_CALL, 36 | TM_N /* number of elements in the enum */ 37 | } TMS; 38 | 39 | 40 | 41 | #define gfasttm(g,et,e) ((et) == NULL ? NULL : \ 42 | ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e])) 43 | 44 | #define fasttm(l,et,e) gfasttm(G(l), et, e) 45 | 46 | LUAI_DATA const char *const luaT_typenames[]; 47 | 48 | 49 | LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); 50 | LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, 51 | TMS event); 52 | LUAI_FUNC void luaT_init (lua_State *L); 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /sources/applications/applestreamingclient/src/applestreamingclient.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #include "application/baseclientapplication.h" 21 | #include "applestreamingclient.h" 22 | #include "applestreamingclientapplication.h" 23 | using namespace app_applestreamingclient; 24 | 25 | extern "C" BaseClientApplication *GetApplication_applestreamingclient(Variant configuration) { 26 | return new AppleStreamingClientApplication(configuration); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /sources/applications/appselector/src/httpappprotocolhandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | 22 | #ifdef HAS_PROTOCOL_HTTP 23 | #include "httpappprotocolhandler.h" 24 | using namespace app_appselector; 25 | 26 | HTTPAppProtocolHandler::HTTPAppProtocolHandler(Variant &configuration) 27 | : BaseHTTPAppProtocolHandler(configuration) { 28 | 29 | } 30 | 31 | HTTPAppProtocolHandler::~HTTPAppProtocolHandler() { 32 | } 33 | #endif /* HAS_PROTOCOL_HTTP */ 34 | 35 | -------------------------------------------------------------------------------- /sources/applications/flvplayback/flex/.actionScriptProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /sources/applications/flvplayback/src/httpappprotocolhandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | 22 | #ifdef HAS_PROTOCOL_HTTP 23 | #include "httpappprotocolhandler.h" 24 | using namespace app_flvplayback; 25 | 26 | HTTPAppProtocolHandler::HTTPAppProtocolHandler(Variant &configuration) 27 | : BaseHTTPAppProtocolHandler(configuration) { 28 | 29 | } 30 | 31 | HTTPAppProtocolHandler::~HTTPAppProtocolHandler() { 32 | } 33 | #endif /* HAS_PROTOCOL_HTTP */ 34 | 35 | -------------------------------------------------------------------------------- /3rdparty/lua-dev/lualib.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lualib.h,v 1.36.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Lua standard libraries 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #ifndef lualib_h 9 | #define lualib_h 10 | 11 | #include "lua.h" 12 | 13 | 14 | /* Key to file-handle type */ 15 | #define LUA_FILEHANDLE "FILE*" 16 | 17 | 18 | #define LUA_COLIBNAME "coroutine" 19 | LUALIB_API int (luaopen_base) (lua_State *L); 20 | 21 | #define LUA_TABLIBNAME "table" 22 | LUALIB_API int (luaopen_table) (lua_State *L); 23 | 24 | #define LUA_IOLIBNAME "io" 25 | LUALIB_API int (luaopen_io) (lua_State *L); 26 | 27 | #define LUA_OSLIBNAME "os" 28 | LUALIB_API int (luaopen_os) (lua_State *L); 29 | 30 | #define LUA_STRLIBNAME "string" 31 | LUALIB_API int (luaopen_string) (lua_State *L); 32 | 33 | #define LUA_MATHLIBNAME "math" 34 | LUALIB_API int (luaopen_math) (lua_State *L); 35 | 36 | #define LUA_DBLIBNAME "debug" 37 | LUALIB_API int (luaopen_debug) (lua_State *L); 38 | 39 | #define LUA_LOADLIBNAME "package" 40 | LUALIB_API int (luaopen_package) (lua_State *L); 41 | 42 | 43 | /* open all previous libraries */ 44 | LUALIB_API void (luaL_openlibs) (lua_State *L); 45 | 46 | 47 | 48 | #ifndef lua_assert 49 | #define lua_assert(x) ((void)0) 50 | #endif 51 | 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /sources/applications/vmapp/include/vm/lua/luaapi_generics.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_LUA 21 | #ifndef _LUAAPI_GENERICS_H 22 | #define _LUAAPI_GENERICS_H 23 | 24 | #include "common.h" 25 | 26 | namespace app_vmapp { 27 | int luaapi_generics_listFolder(lua_State *L); 28 | int luaapi_generics_normalizePath(lua_State *L); 29 | int luaapi_generics_splitFileName(lua_State *L); 30 | }; 31 | 32 | #endif /* _LUAAPI_GENERICS_H */ 33 | #endif /* HAS_LUA */ 34 | -------------------------------------------------------------------------------- /3rdparty/lua-dev/lfunc.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lfunc.h,v 2.4.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Auxiliary functions to manipulate prototypes and closures 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lfunc_h 8 | #define lfunc_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ 15 | cast(int, sizeof(TValue)*((n)-1))) 16 | 17 | #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ 18 | cast(int, sizeof(TValue *)*((n)-1))) 19 | 20 | 21 | LUAI_FUNC Proto *luaF_newproto (lua_State *L); 22 | LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e); 23 | LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems, Table *e); 24 | LUAI_FUNC UpVal *luaF_newupval (lua_State *L); 25 | LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level); 26 | LUAI_FUNC void luaF_close (lua_State *L, StkId level); 27 | LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f); 28 | LUAI_FUNC void luaF_freeclosure (lua_State *L, Closure *c); 29 | LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv); 30 | LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number, 31 | int pc); 32 | 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /appscaffold/templates/builders/cmake/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.6) 2 | PROJECT(#APPNAME_LC#) 3 | 4 | #make the list with all the source files 5 | FILE(GLOB_RECURSE SOURCES "${CRTMPSERVER_SOURCES_ROOT}/applications/${PROJECT_NAME}/src/*.cpp" ) 6 | 7 | SET(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${CRTMPSERVER_ROOT}/${PROJECT_NAME}") 8 | 9 | #prepare the include directories 10 | INCLUDE_DIRECTORIES( 11 | ${OPENSSL_INCLUDE_PATH} 12 | ${LUA_INCLUDE_PATH} 13 | ${CRTMPSERVER_SOURCES_ROOT}/common/include 14 | ${CRTMPSERVER_SOURCES_ROOT}/thelib/include 15 | ${CRTMPSERVER_SOURCES_ROOT}/applications/${PROJECT_NAME}/include 16 | ) 17 | 18 | string(TOUPPER ${PROJECT_NAME} TEMP_APP_NAME) 19 | SET_PROPERTY(GLOBAL APPEND PROPERTY ACTIVE_APPS "-DHAS_APP_${TEMP_APP_NAME}") 20 | SET_PROPERTY(GLOBAL APPEND PROPERTY ACTIVE_APPS_LIBS "${PROJECT_NAME}") 21 | 22 | #create the library 23 | ADD_LIBRARY(${PROJECT_NAME} ${LIB_TYPE} ${SOURCES}) 24 | ADD_PRECOMPILED_HEADER(${PROJECT_NAME} "${CRTMPSERVER_SOURCES_ROOT}/common/include/common.h") 25 | IF(${LIB_TYPE} MATCHES "SHARED") 26 | TARGET_LINK_LIBRARIES(${PROJECT_NAME} thelib) 27 | INSTALL(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${CRTMPSERVER_ROOT}/${PROJECT_NAME}) 28 | ENDIF(${LIB_TYPE} MATCHES "SHARED") 29 | 30 | 31 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/FridgeMagnets/caurina/transitions/SpecialPropertyModifier.as: -------------------------------------------------------------------------------- 1 | package caurina.transitions { 2 | 3 | /** 4 | * SpecialPropertyModifier 5 | * A special property which actually acts on other properties 6 | * 7 | * @author Zeh Fernando 8 | * @version 1.0.0 9 | * @private 10 | */ 11 | 12 | public class SpecialPropertyModifier { 13 | 14 | public var modifyValues:Function; 15 | public var getValue:Function; 16 | 17 | /** 18 | * Builds a new special property modifier object. 19 | * 20 | * @param p_modifyFunction Function Function that returns the modifider parameters. 21 | */ 22 | public function SpecialPropertyModifier (p_modifyFunction:Function, p_getFunction:Function) { 23 | modifyValues = p_modifyFunction; 24 | getValue = p_getFunction; 25 | } 26 | 27 | /** 28 | * Converts the instance to a string that can be used when trace()ing the object 29 | */ 30 | public function toString():String { 31 | var value:String = ""; 32 | value += "[SpecialPropertyModifier "; 33 | value += "modifyValues:"+String(modifyValues); 34 | value += ", "; 35 | value += "getValue:"+String(getValue); 36 | value += "]"; 37 | return value; 38 | } 39 | 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /sources/applications/proxypublish/src/liveflvappprotocolhandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_PROTOCOL_LIVEFLV 22 | 23 | #include "liveflvappprotocolhandler.h" 24 | using namespace app_proxypublish; 25 | 26 | LiveFLVAppProtocolHandler::LiveFLVAppProtocolHandler(Variant &configuration) 27 | : BaseLiveFLVAppProtocolHandler(configuration) { 28 | 29 | } 30 | 31 | LiveFLVAppProtocolHandler::~LiveFLVAppProtocolHandler() { 32 | } 33 | #endif /* HAS_PROTOCOL_LIVEFLV */ 34 | 35 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/ts/piddescriptor.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_TS 21 | #ifndef _PIDDESCRIPTOR_H 22 | #define _PIDDESCRIPTOR_H 23 | 24 | #include "common.h" 25 | #include "mediaformats/readers/ts/pidtypes.h" 26 | 27 | class BaseAVContext; 28 | 29 | struct PIDDescriptor { 30 | PIDType type; 31 | uint16_t pid; 32 | uint32_t crc; 33 | BaseAVContext *pAVContext; 34 | }; 35 | 36 | #endif /* _PIDDESCRIPTOR_H */ 37 | #endif /* HAS_MEDIA_TS */ 38 | 39 | -------------------------------------------------------------------------------- /sources/applications/flvplayback/src/liveflvappprotocolhandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | 22 | #ifdef HAS_PROTOCOL_LIVEFLV 23 | #include "liveflvappprotocolhandler.h" 24 | using namespace app_flvplayback; 25 | 26 | LiveFLVAppProtocolHandler::LiveFLVAppProtocolHandler(Variant &configuration) 27 | : BaseLiveFLVAppProtocolHandler(configuration) { 28 | 29 | } 30 | 31 | LiveFLVAppProtocolHandler::~LiveFLVAppProtocolHandler() { 32 | } 33 | 34 | #endif /* HAS_PROTOCOL_LIVEFLV */ 35 | 36 | -------------------------------------------------------------------------------- /3rdparty/lua-dev/lvm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lvm.h,v 2.5.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Lua virtual machine 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lvm_h 8 | #define lvm_h 9 | 10 | 11 | #include "ldo.h" 12 | #include "lobject.h" 13 | #include "ltm.h" 14 | 15 | 16 | #define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o))) 17 | 18 | #define tonumber(o,n) (ttype(o) == LUA_TNUMBER || \ 19 | (((o) = luaV_tonumber(o,n)) != NULL)) 20 | 21 | #define equalobj(L,o1,o2) \ 22 | (ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2)) 23 | 24 | 25 | LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); 26 | LUAI_FUNC int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2); 27 | LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); 28 | LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj); 29 | LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key, 30 | StkId val); 31 | LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key, 32 | StkId val); 33 | LUAI_FUNC void luaV_execute (lua_State *L, int nexeccalls); 34 | LUAI_FUNC void luaV_concat (lua_State *L, int total, int last); 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /sources/applications/vmapp/include/rtpappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _RTPAPPPROTOCOLHANDLER_H 21 | #define _RTPAPPPROTOCOLHANDLER_H 22 | 23 | #include "protocols/rtp/basertpappprotocolhandler.h" 24 | 25 | namespace app_vmapp { 26 | 27 | class RTPAppProtocolHandler 28 | : public BaseRTPAppProtocolHandler { 29 | public: 30 | RTPAppProtocolHandler(Variant &configuration); 31 | virtual ~RTPAppProtocolHandler(); 32 | }; 33 | } 34 | 35 | #endif /* _RTPAPPPROTOCOLHANDLER_H */ 36 | -------------------------------------------------------------------------------- /sources/thelib/include/protocols/ssl/inboundsslprotocol.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _INBOUNDSSLPROTOCOL_H 21 | #define _INBOUNDSSLPROTOCOL_H 22 | 23 | #include "protocols/ssl/basesslprotocol.h" 24 | 25 | class InboundSSLProtocol 26 | : public BaseSSLProtocol { 27 | public: 28 | InboundSSLProtocol(); 29 | virtual ~InboundSSLProtocol(); 30 | protected: 31 | virtual bool InitGlobalContext(Variant ¶meters); 32 | virtual bool DoHandshake(); 33 | }; 34 | 35 | 36 | #endif /* _INBOUNDSSLPROTOCOL_H */ 37 | 38 | -------------------------------------------------------------------------------- /sources/applications/vmapp/include/rtspappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _RTSPAPPPROTOCOLHANDLER_H 22 | #define _RTSPAPPPROTOCOLHANDLER_H 23 | 24 | #include "protocols/rtp/basertspappprotocolhandler.h" 25 | 26 | namespace app_vmapp { 27 | 28 | class RTSPAppProtocolHandler 29 | : public BaseRTSPAppProtocolHandler { 30 | public: 31 | RTSPAppProtocolHandler(Variant &configuration); 32 | virtual ~RTSPAppProtocolHandler(); 33 | }; 34 | } 35 | 36 | #endif /* _RTSPAPPPROTOCOLHANDLER_H */ 37 | -------------------------------------------------------------------------------- /sources/thelib/include/protocols/ssl/outboundsslprotocol.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _OUTBOUNDSSLPROTOCOL_H 21 | #define _OUTBOUNDSSLPROTOCOL_H 22 | 23 | #include "protocols/ssl/basesslprotocol.h" 24 | 25 | class OutboundSSLProtocol 26 | : public BaseSSLProtocol { 27 | public: 28 | OutboundSSLProtocol(); 29 | virtual ~OutboundSSLProtocol(); 30 | protected: 31 | virtual bool InitGlobalContext(Variant ¶meters); 32 | virtual bool DoHandshake(); 33 | }; 34 | 35 | 36 | #endif /* _OUTBOUNDSSLPROTOCOL_H */ 37 | 38 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/FridgeMagnets/Fridge.as: -------------------------------------------------------------------------------- 1 | // ======================================= // Cary Dunn // ELC Technologies http://www.elctech.com // package { import flash.events.*; import flash.display.MovieClip; import flash.text.TextField; import flash.errors.IOError; import flash.system.Security; import caurina.transitions.Tweener; import flash.net.*; import com.elctech.Magnet; public class Fridge extends MovieClip { NetConnection.defaultObjectEncoding = ObjectEncoding.AMF0 ; private var nc:NetConnection = null; private var alphabet:Array = new Array; private const LETTERS:Array = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z",",","!"] public function Fridge():void { nc = new NetConnection(); nc.addEventListener(NetStatusEvent.NET_STATUS,netStatusHandler); nc.connect("rtmp://rtmpd.com/flvplayback"); } private function netStatusHandler(event:NetStatusEvent):void { trace(event.info.code); if(event.info.code == "NetConnection.Connect.Success") { createAlphabet(); } } private function createAlphabet():void { for(var i:uint = 0; i < LETTERS.length; i++) { var new_magnet:Magnet = new com.elctech.Magnet(LETTERS[i],nc,i); addChild(new_magnet); alphabet.push(new_magnet); } } } } -------------------------------------------------------------------------------- /sources/tests/include/thelibtestssuite.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _THELIBTESTSSUITE_H 22 | #define _THELIBTESTSSUITE_H 23 | 24 | #include "common.h" 25 | #include "basetestssuite.h" 26 | 27 | class TheLibTestsSuite 28 | : public BaseTestsSuite { 29 | public: 30 | TheLibTestsSuite(); 31 | virtual ~TheLibTestsSuite(); 32 | 33 | virtual void Run(); 34 | private: 35 | #ifdef HAS_PROTOCOL_RTMP 36 | void test_Header(); 37 | #endif /* HAS_PROTOCOL_RTMP */ 38 | }; 39 | 40 | 41 | #endif /* _THELIBTESTSSUITE_H */ 42 | 43 | -------------------------------------------------------------------------------- /sources/common/include/utils/misc/variantmap.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _VARIANTMAP_H 22 | #define _VARIANTMAP_H 23 | 24 | struct VariantMap { 25 | string typeName; 26 | map children; 27 | bool isArray; 28 | 29 | VariantMap(VariantMap & variantMap) { 30 | typeName = variantMap.typeName; 31 | children = variantMap.children; 32 | isArray = variantMap.isArray; 33 | } 34 | 35 | VariantMap() { 36 | isArray = false; 37 | } 38 | }; 39 | 40 | 41 | #endif /* _VARIANTMAP_H */ 42 | 43 | 44 | -------------------------------------------------------------------------------- /sources/androidapplestreaming/include/variantconnection.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _VARIANTCONNECTION_H 21 | #define _VARIANTCONNECTION_H 22 | 23 | #include "common.h" 24 | 25 | class VariantConnection { 26 | private: 27 | int _fd; 28 | IOBuffer _buffer; 29 | public: 30 | VariantConnection(); 31 | virtual ~VariantConnection(); 32 | 33 | bool Connect(sockaddr_in &address); 34 | bool SendMessage(Variant &message, Variant &response); 35 | private: 36 | void Close(); 37 | }; 38 | 39 | #endif /* _VARIANTCONNECTION_H */ 40 | 41 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mediafile.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _MEDIAFILE_H 21 | #define _MEDIAFILE_H 22 | 23 | #include "common.h" 24 | 25 | //#define MediaFile File 26 | 27 | #ifdef HAS_MMAP 28 | #define MediaFile MmapFile 29 | #else 30 | #define MediaFile File 31 | #endif /* HAS_MMAP */ 32 | 33 | MediaFile* GetFile(string filePath, uint32_t windowSize); 34 | void ReleaseFile(MediaFile *pFile); 35 | bool GetFile(string filePath, uint32_t windowSize, MediaFile &mediaFile); 36 | 37 | #endif /* _MEDIAFILE_H */ 38 | -------------------------------------------------------------------------------- /3rdparty/lua-dev/ltable.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ltable.h,v 2.10.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Lua tables (hash) 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ltable_h 8 | #define ltable_h 9 | 10 | #include "lobject.h" 11 | 12 | 13 | #define gnode(t,i) (&(t)->node[i]) 14 | #define gkey(n) (&(n)->i_key.nk) 15 | #define gval(n) (&(n)->i_val) 16 | #define gnext(n) ((n)->i_key.nk.next) 17 | 18 | #define key2tval(n) (&(n)->i_key.tvk) 19 | 20 | 21 | LUAI_FUNC const TValue *luaH_getnum (Table *t, int key); 22 | LUAI_FUNC TValue *luaH_setnum (lua_State *L, Table *t, int key); 23 | LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 24 | LUAI_FUNC TValue *luaH_setstr (lua_State *L, Table *t, TString *key); 25 | LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 26 | LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 27 | LUAI_FUNC Table *luaH_new (lua_State *L, int narray, int lnhash); 28 | LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize); 29 | LUAI_FUNC void luaH_free (lua_State *L, Table *t); 30 | LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); 31 | LUAI_FUNC int luaH_getn (Table *t); 32 | 33 | 34 | #if defined(LUA_DEBUG) 35 | LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key); 36 | LUAI_FUNC int luaH_isdummy (Node *n); 37 | #endif 38 | 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /sources/applications/vmapp/include/vm/lua/luaapi_application.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_LUA 21 | #ifndef _LUAAPI_APPLICATION_H 22 | #define _LUAAPI_APPLICATION_H 23 | 24 | #include "common.h" 25 | 26 | namespace app_vmapp { 27 | int luaapi_application_getConfig(lua_State *L); 28 | int luaapi_application_outboundConnectionFailed(lua_State *L); 29 | int luaapi_application_pullExternalStream(lua_State *L); 30 | int luaapi_application_pushLocalStream(lua_State *L); 31 | }; 32 | 33 | #endif /* _LUAAPI_APPLICATION_H */ 34 | #endif /* HAS_LUA */ 35 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomuuid.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _ATOMUUID_H 21 | #define _ATOMUUID_H 22 | 23 | #include "mediaformats/readers/mp4/baseatom.h" 24 | 25 | class AtomUUID 26 | : public BaseAtom { 27 | private: 28 | Variant _metadata; 29 | public: 30 | AtomUUID(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 31 | virtual ~AtomUUID(); 32 | 33 | virtual bool Read(); 34 | string Hierarchy(uint32_t indent); 35 | 36 | Variant &GetMetadata(); 37 | }; 38 | 39 | #endif /* _ATOMUUID_H */ 40 | 41 | -------------------------------------------------------------------------------- /sources/applications/admin/flex/.actionScriptProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomurl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMURL_H 22 | #define _ATOMURL_H 23 | 24 | #include "mediaformats/readers/mp4/versionedatom.h" 25 | 26 | class AtomURL 27 | : public VersionedAtom { 28 | private: 29 | string _location; 30 | public: 31 | AtomURL(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 32 | virtual ~AtomURL(); 33 | protected: 34 | virtual bool ReadData(); 35 | }; 36 | 37 | #endif /* _ATOMURL_H */ 38 | 39 | 40 | #endif /* HAS_MEDIA_MP4 */ 41 | -------------------------------------------------------------------------------- /sources/thelib/src/streaming/baseinnetstream.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #include "streaming/baseinnetstream.h" 22 | #include "streaming/streamstypes.h" 23 | 24 | BaseInNetStream::BaseInNetStream(BaseProtocol *pProtocol, uint64_t type, string name) 25 | : BaseInStream(pProtocol, type, name) { 26 | if (!TAG_KIND_OF(type, ST_IN_NET)) { 27 | ASSERT("Incorrect stream type. Wanted a stream type in class %s and got %s", 28 | STR(tagToString(ST_IN_NET)), STR(tagToString(type))); 29 | } 30 | } 31 | 32 | BaseInNetStream::~BaseInNetStream() { 33 | } 34 | 35 | -------------------------------------------------------------------------------- /sources/applications/vmapp/src/rtspappprotocolhandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #include "rtspappprotocolhandler.h" 21 | #include "protocols/rtp/rtspprotocol.h" 22 | #include "protocols/rtp/sdp.h" 23 | #include "protocols/protocolfactorymanager.h" 24 | #include "netio/netio.h" 25 | #include "protocols/protocolmanager.h" 26 | using namespace app_vmapp; 27 | 28 | RTSPAppProtocolHandler::RTSPAppProtocolHandler(Variant& configuration) 29 | : BaseRTSPAppProtocolHandler(configuration) { 30 | 31 | } 32 | 33 | RTSPAppProtocolHandler::~RTSPAppProtocolHandler() { 34 | } 35 | -------------------------------------------------------------------------------- /sources/thelib/include/protocols/rtp/connectivity/baseconnectivity.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_PROTOCOL_RTP 21 | #ifndef _BASECONNECTIVITY_H 22 | #define _BASECONNECTIVITY_H 23 | 24 | #include "common.h" 25 | 26 | class DLLEXP BaseConnectivity { 27 | public: 28 | BaseConnectivity(); 29 | virtual ~BaseConnectivity(); 30 | 31 | static uint32_t ToRTPTS(struct timeval &tv, uint32_t rate); 32 | static uint32_t ToRTPTS(double milliseconds, uint32_t rate); 33 | }; 34 | 35 | 36 | #endif /* _BASECONNECTIVITY_H */ 37 | #endif /* HAS_PROTOCOL_RTP */ 38 | 39 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atommfhd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMMFHD_H 22 | #define _ATOMMFHD_H 23 | 24 | #include "mediaformats/readers/mp4/versionedatom.h" 25 | 26 | class AtomMFHD 27 | : public VersionedAtom { 28 | private: 29 | int32_t _sequenceNumber; 30 | public: 31 | AtomMFHD(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 32 | virtual ~AtomMFHD(); 33 | protected: 34 | virtual bool ReadData(); 35 | }; 36 | 37 | #endif /* _ATOMMFHD_H */ 38 | #endif /* HAS_MEDIA_MP4 */ 39 | -------------------------------------------------------------------------------- /sources/thelib/src/mediaformats/readers/mp4/atomurl.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #include "mediaformats/readers/mp4/atomurl.h" 22 | 23 | AtomURL::AtomURL(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start) 24 | : VersionedAtom(pDocument, type, size, start) { 25 | 26 | } 27 | 28 | AtomURL::~AtomURL() { 29 | } 30 | 31 | bool AtomURL::ReadData() { 32 | if (!ReadString(_location, _size - 12)) { 33 | FATAL("Unable to read location"); 34 | return false; 35 | } 36 | return true; 37 | } 38 | 39 | #endif /* HAS_MEDIA_MP4 */ 40 | -------------------------------------------------------------------------------- /sources/applications/samplefactory/src/echoappprotocolhandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #include "echoappprotocolhandler.h" 21 | using namespace app_samplefactory; 22 | 23 | EchoAppProtocolHandler::EchoAppProtocolHandler(Variant &configuration) 24 | : BaseAppProtocolHandler(configuration) { 25 | 26 | } 27 | 28 | EchoAppProtocolHandler::~EchoAppProtocolHandler() { 29 | } 30 | 31 | void EchoAppProtocolHandler::RegisterProtocol(BaseProtocol *pProtocol) { 32 | 33 | } 34 | 35 | void EchoAppProtocolHandler::UnRegisterProtocol(BaseProtocol *pProtocol) { 36 | 37 | } 38 | -------------------------------------------------------------------------------- /sources/thelib/src/streaming/baseoutnetstream.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | 22 | #include "streaming/baseoutnetstream.h" 23 | #include "streaming/streamstypes.h" 24 | 25 | BaseOutNetStream::BaseOutNetStream(BaseProtocol *pProtocol, uint64_t type, string name) 26 | : BaseOutStream(pProtocol, type, name) { 27 | if (!TAG_KIND_OF(type, ST_OUT_NET)) { 28 | ASSERT("Incorrect stream type. Wanted a stream type in class %s and got %s", 29 | STR(tagToString(ST_OUT_NET)), STR(tagToString(type))); 30 | } 31 | } 32 | 33 | BaseOutNetStream::~BaseOutNetStream() { 34 | } 35 | 36 | -------------------------------------------------------------------------------- /appscaffold/templates/sources/rtmpappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_PROTOCOL_RTMP 21 | #ifndef _RTMPAPPPROTOCOLHANDLER_H 22 | #define _RTMPAPPPROTOCOLHANDLER_H 23 | 24 | #include "protocols/rtmp/basertmpappprotocolhandler.h" 25 | namespace app_#APPNAME_LC# { 26 | 27 | class RTMPAppProtocolHandler 28 | : public BaseRTMPAppProtocolHandler { 29 | public: 30 | RTMPAppProtocolHandler(Variant &configuration); 31 | virtual ~RTMPAppProtocolHandler(); 32 | }; 33 | } 34 | #endif /* _RTMPAPPPROTOCOLHANDLER_H */ 35 | #endif /* HAS_PROTOCOL_RTMP */ 36 | 37 | -------------------------------------------------------------------------------- /sources/thelib/include/protocols/rtmp/messagefactories/messagefactories.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_PROTOCOL_RTMP 22 | #ifndef _MESSAGEFACTORIES_H 23 | #define _MESSAGEFACTORIES_H 24 | 25 | #include "protocols/rtmp/messagefactories/genericmessagefactory.h" 26 | #include "protocols/rtmp/messagefactories/connectionmessagefactory.h" 27 | #include "protocols/rtmp/messagefactories/streammessagefactory.h" 28 | #include "protocols/rtmp/messagefactories/somessagefactory.h" 29 | 30 | #endif /* _MESSAGEFACTORIES_H */ 31 | 32 | #endif /* HAS_PROTOCOL_RTMP */ 33 | 34 | -------------------------------------------------------------------------------- /sources/thelib/src/streaming/baseoutfilestream.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #include "streaming/baseoutfilestream.h" 22 | #include "streaming/streamstypes.h" 23 | 24 | BaseOutFileStream::BaseOutFileStream(BaseProtocol *pProtocol, uint64_t type, string name) 25 | : BaseOutStream(pProtocol, type, name) { 26 | if (!TAG_KIND_OF(type, ST_OUT_FILE)) { 27 | ASSERT("Incorrect stream type. Wanted a stream type in class %s and got %s", 28 | STR(tagToString(ST_OUT_FILE)), STR(tagToString(type))); 29 | } 30 | } 31 | 32 | BaseOutFileStream::~BaseOutFileStream() { 33 | } 34 | 35 | -------------------------------------------------------------------------------- /sources/applications/flvplayback/include/tsappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_PROTOCOL_TS 22 | #ifndef _TSAPPPROTOCOLHANDLER_H 23 | #define _TSAPPPROTOCOLHANDLER_H 24 | 25 | #include "protocols/ts/basetsappprotocolhandler.h" 26 | 27 | namespace app_flvplayback { 28 | 29 | class TSAppProtocolHandler 30 | : public BaseTSAppProtocolHandler { 31 | public: 32 | TSAppProtocolHandler(Variant &configuration); 33 | virtual ~TSAppProtocolHandler(); 34 | }; 35 | } 36 | 37 | #endif /* _TSAPPPROTOCOLHANDLER_H */ 38 | #endif /* HAS_PROTOCOL_TS */ 39 | 40 | 41 | -------------------------------------------------------------------------------- /sources/applications/proxypublish/include/rtpappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_PROTOCOL_RTP 22 | #ifndef _RTPAPPPROTOCOLHANDLER_H 23 | #define _RTPAPPPROTOCOLHANDLER_H 24 | 25 | #include "protocols/rtp/basertpappprotocolhandler.h" 26 | namespace app_proxypublish { 27 | 28 | class RTPAppProtocolHandler 29 | : public BaseRTPAppProtocolHandler { 30 | public: 31 | RTPAppProtocolHandler(Variant &configuration); 32 | virtual ~RTPAppProtocolHandler(); 33 | }; 34 | } 35 | 36 | #endif /* _RTPAPPPROTOCOLHANDLER_H */ 37 | #endif /* HAS_PROTOCOL_RTP */ 38 | 39 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomnull.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMNULL_H 22 | #define _ATOMNULL_H 23 | 24 | #include "mediaformats/readers/mp4/baseatom.h" 25 | 26 | class AtomNULL 27 | : public BaseAtom { 28 | public: 29 | AtomNULL(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 30 | virtual ~AtomNULL(); 31 | 32 | virtual bool IsIgnored(); 33 | 34 | virtual bool Read(); 35 | string Hierarchy(uint32_t indent); 36 | }; 37 | 38 | #endif /* _ATOMNULL_H */ 39 | 40 | 41 | #endif /* HAS_MEDIA_MP4 */ 42 | -------------------------------------------------------------------------------- /sources/applications/flvplayback/include/rtpappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_PROTOCOL_RTP 22 | #ifndef _RTPAPPPROTOCOLHANDLER_H 23 | #define _RTPAPPPROTOCOLHANDLER_H 24 | 25 | #include "protocols/rtp/basertpappprotocolhandler.h" 26 | 27 | namespace app_flvplayback { 28 | 29 | class RTPAppProtocolHandler 30 | : public BaseRTPAppProtocolHandler { 31 | public: 32 | RTPAppProtocolHandler(Variant &configuration); 33 | virtual ~RTPAppProtocolHandler(); 34 | }; 35 | } 36 | 37 | #endif /* _RTPAPPPROTOCOLHANDLER_H */ 38 | #endif /* HAS_PROTOCOL_RTP */ 39 | 40 | -------------------------------------------------------------------------------- /sources/applications/proxypublish/include/rtmpappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_PROTOCOL_RTMP 22 | #ifndef _RTMPAPPPROTOCOLHANDLER_H 23 | #define _RTMPAPPPROTOCOLHANDLER_H 24 | 25 | #include "protocols/rtmp/basertmpappprotocolhandler.h" 26 | namespace app_proxypublish { 27 | 28 | class RTMPAppProtocolHandler 29 | : public BaseRTMPAppProtocolHandler { 30 | public: 31 | RTMPAppProtocolHandler(Variant &configuration); 32 | virtual ~RTMPAppProtocolHandler(); 33 | }; 34 | } 35 | #endif /* _RTMPAPPPROTOCOLHANDLER_H */ 36 | #endif /* HAS_PROTOCOL_RTMP */ 37 | 38 | -------------------------------------------------------------------------------- /sources/applications/proxypublish/include/rtspappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_PROTOCOL_RTP 22 | #ifndef _RTSPAPPPROTOCOLHANDLER_H 23 | #define _RTSPAPPPROTOCOLHANDLER_H 24 | 25 | #include "protocols/rtp/basertspappprotocolhandler.h" 26 | namespace app_proxypublish { 27 | 28 | class RTSPAppProtocolHandler 29 | : public BaseRTSPAppProtocolHandler { 30 | public: 31 | RTSPAppProtocolHandler(Variant &configuration); 32 | virtual ~RTSPAppProtocolHandler(); 33 | }; 34 | } 35 | 36 | #endif /* _RTSPAPPPROTOCOLHANDLER_H */ 37 | #endif /* HAS_PROTOCOL_RTP */ 38 | 39 | -------------------------------------------------------------------------------- /sources/applications/samplefactory/src/samplefactory.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #include "application/baseclientapplication.h" 21 | #include "samplefactory.h" 22 | #include "samplefactoryapplication.h" 23 | #include "protocolfactory.h" 24 | using namespace app_samplefactory; 25 | 26 | extern "C" BaseClientApplication *GetApplication_samplefactory(Variant configuration) { 27 | return new SampleFactoryApplication( 28 | configuration); 29 | } 30 | 31 | extern "C" DLLEXP BaseProtocolFactory *GetFactory_samplefactory(Variant configuration) { 32 | return new ProtocolFactory(); 33 | } 34 | 35 | -------------------------------------------------------------------------------- /sources/thelib/src/mediaformats/readers/mp4/atommfhd.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #include "mediaformats/readers/mp4/atommfhd.h" 22 | 23 | AtomMFHD::AtomMFHD(MP4Document *pDocument, uint32_t type, uint64_t size, 24 | uint64_t start) 25 | : VersionedAtom(pDocument, type, size, start) { 26 | _sequenceNumber = 0; 27 | } 28 | 29 | AtomMFHD::~AtomMFHD() { 30 | } 31 | 32 | bool AtomMFHD::ReadData() { 33 | if (!ReadInt32(_sequenceNumber)) { 34 | FATAL("Unable to read creation time"); 35 | return false; 36 | } 37 | return true; 38 | } 39 | #endif /* HAS_MEDIA_MP4 */ 40 | -------------------------------------------------------------------------------- /sources/applications/appselector/include/httpappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_PROTOCOL_HTTP 21 | #ifndef _HTTPAPPPROTOCOLHANDLER_H 22 | #define _HTTPAPPPROTOCOLHANDLER_H 23 | 24 | #include "protocols/http/basehttpprotocolhandler.h" 25 | 26 | namespace app_appselector { 27 | 28 | class HTTPAppProtocolHandler 29 | : public BaseHTTPAppProtocolHandler { 30 | public: 31 | HTTPAppProtocolHandler(Variant &configuration); 32 | virtual ~HTTPAppProtocolHandler(); 33 | }; 34 | } 35 | 36 | #endif /* _HTTPAPPPROTOCOLHANDLER_H */ 37 | #endif /* HAS_PROTOCOL_HTTP */ 38 | 39 | 40 | -------------------------------------------------------------------------------- /sources/applications/flvplayback/include/httpappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_PROTOCOL_HTTP 21 | #ifndef _HTTPAPPPROTOCOLHANDLER_H 22 | #define _HTTPAPPPROTOCOLHANDLER_H 23 | 24 | #include "protocols/http/basehttpprotocolhandler.h" 25 | 26 | namespace app_flvplayback { 27 | 28 | class HTTPAppProtocolHandler 29 | : public BaseHTTPAppProtocolHandler { 30 | public: 31 | HTTPAppProtocolHandler(Variant &configuration); 32 | virtual ~HTTPAppProtocolHandler(); 33 | }; 34 | } 35 | 36 | #endif /* _HTTPAPPPROTOCOLHANDLER_H */ 37 | #endif /* HAS_PROTOCOL_HTTP */ 38 | 39 | 40 | -------------------------------------------------------------------------------- /sources/applications/flvplayback/include/rtspappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_PROTOCOL_RTP 22 | #ifndef _RTSPAPPPROTOCOLHANDLER_H 23 | #define _RTSPAPPPROTOCOLHANDLER_H 24 | 25 | #include "protocols/rtp/basertspappprotocolhandler.h" 26 | 27 | namespace app_flvplayback { 28 | 29 | class RTSPAppProtocolHandler 30 | : public BaseRTSPAppProtocolHandler { 31 | public: 32 | RTSPAppProtocolHandler(Variant &configuration); 33 | virtual ~RTSPAppProtocolHandler(); 34 | }; 35 | } 36 | 37 | #endif /* _RTSPAPPPROTOCOLHANDLER_H */ 38 | #endif /* HAS_PROTOCOL_RTP */ 39 | 40 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomdinf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMDINF_H 22 | #define _ATOMDINF_H 23 | 24 | #include "mediaformats/readers/mp4/boxatom.h" 25 | 26 | class AtomDREF; 27 | 28 | class AtomDINF 29 | : public BoxAtom { 30 | private: 31 | AtomDREF *_pDREF; 32 | public: 33 | AtomDINF(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 34 | virtual ~AtomDINF(); 35 | protected: 36 | virtual bool AtomCreated(BaseAtom *pAtom); 37 | }; 38 | 39 | #endif /* _ATOMDINF_H */ 40 | 41 | 42 | #endif /* HAS_MEDIA_MP4 */ 43 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomsmhd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMSMHD_H 22 | #define _ATOMSMHD_H 23 | 24 | #include "mediaformats/readers/mp4/versionedatom.h" 25 | 26 | class AtomSMHD 27 | : public VersionedAtom { 28 | private: 29 | uint16_t _balance; 30 | uint16_t _reserved; 31 | public: 32 | AtomSMHD(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 33 | virtual ~AtomSMHD(); 34 | 35 | protected: 36 | virtual bool ReadData(); 37 | }; 38 | 39 | #endif /* _ATOMSMHD_H */ 40 | 41 | 42 | #endif /* HAS_MEDIA_MP4 */ 43 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomvmhd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMVMHD_H 22 | #define _ATOMVMHD_H 23 | 24 | #include "mediaformats/readers/mp4/versionedatom.h" 25 | 26 | class AtomVMHD 27 | : public VersionedAtom { 28 | private: 29 | uint16_t _graphicsMode; 30 | uint8_t _opcolor[6]; 31 | public: 32 | AtomVMHD(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 33 | virtual ~AtomVMHD(); 34 | protected: 35 | virtual bool ReadData(); 36 | }; 37 | 38 | #endif /* _ATOMVMHD_H */ 39 | 40 | 41 | #endif /* HAS_MEDIA_MP4 */ 42 | -------------------------------------------------------------------------------- /sources/applications/admin/flex/src/com/rtmpd/Engine.as: -------------------------------------------------------------------------------- 1 | package com.rtmpd 2 | { 3 | import com.rtmpd.generics.Connection; 4 | import com.rtmpd.generics.Logging; 5 | 6 | import flash.events.Event; 7 | import flash.events.SyncEvent; 8 | import flash.net.SharedObject; 9 | 10 | import mx.utils.ObjectUtil; 11 | 12 | public class Engine extends Connection 13 | { 14 | private var _tsStreams:SharedObject; 15 | 16 | public function Engine() { 17 | super(); 18 | } 19 | 20 | public override function Initialize():void{ 21 | super.Initialize(); 22 | this.addEventListener("IsConnectedEvent",IsConnectedEvent); 23 | } 24 | 25 | private function IsConnectedEvent(evt:Event):void{ 26 | if(IsConnected){ 27 | _tsStreams=SharedObject.getRemote("tsStreamsEvents",_connection.uri,true); 28 | _tsStreams.addEventListener(SyncEvent.SYNC,TsStreamsEvents); 29 | _tsStreams.connect(_connection); 30 | }else{ 31 | _tsStreams=null; 32 | dispatchEvent(new Event("TSStreamsEvent")); 33 | } 34 | } 35 | 36 | private function TsStreamsEvents(evt:SyncEvent):void{ 37 | Logging.Debug("evt: "+ObjectUtil.toString(evt)); 38 | dispatchEvent(new Event("TSStreamsEvent")); 39 | } 40 | 41 | [Bindable(event="TSStreamsEvent")] 42 | public function get TSStreams():Array{ 43 | if(_tsStreams==null) 44 | return null; 45 | return _tsStreams.data.streams; 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /sources/applications/admin/src/cliappprotocolhandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_PROTOCOL_CLI 21 | #include "cliappprotocolhandler.h" 22 | #include "adminapplication.h" 23 | using namespace app_admin; 24 | 25 | CLIAppProtocolHandler::CLIAppProtocolHandler(Variant &configuration) 26 | : BaseCLIAppProtocolHandler(configuration) { 27 | 28 | } 29 | 30 | CLIAppProtocolHandler::~CLIAppProtocolHandler() { 31 | } 32 | 33 | bool CLIAppProtocolHandler::ProcessMessage(BaseProtocol *pFrom, Variant &message) { 34 | return SendFail(pFrom, "Not yet implemented"); 35 | } 36 | #endif /* HAS_PROTOCOL_CLI */ 37 | -------------------------------------------------------------------------------- /sources/applications/proxypublish/src/jobstimerappprotocolhandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #include "jobstimerappprotocolhandler.h" 21 | using namespace app_proxypublish; 22 | 23 | JobsTimerAppProtocolHandler::JobsTimerAppProtocolHandler(Variant &configuration) 24 | : BaseAppProtocolHandler(configuration) { 25 | 26 | } 27 | 28 | JobsTimerAppProtocolHandler::~JobsTimerAppProtocolHandler() { 29 | } 30 | 31 | void JobsTimerAppProtocolHandler::RegisterProtocol(BaseProtocol *pProtocol) { 32 | 33 | } 34 | 35 | void JobsTimerAppProtocolHandler::UnRegisterProtocol(BaseProtocol *pProtocol) { 36 | 37 | } 38 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomilst.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMILST_H 22 | #define _ATOMILST_H 23 | 24 | #include "mediaformats/readers/mp4/boxatom.h" 25 | 26 | class AtomILST 27 | : public BoxAtom { 28 | private: 29 | Variant _metadata; 30 | public: 31 | AtomILST(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 32 | virtual ~AtomILST(); 33 | Variant &GetMetadata(); 34 | protected: 35 | virtual bool AtomCreated(BaseAtom *pAtom); 36 | }; 37 | 38 | #endif /* _ATOMILST_H */ 39 | 40 | 41 | #endif /* HAS_MEDIA_MP4 */ 42 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomudta.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMUDTA_H 22 | #define _ATOMUDTA_H 23 | 24 | #include "mediaformats/readers/mp4/boxatom.h" 25 | 26 | class AtomUDTA 27 | : public BoxAtom { 28 | private: 29 | Variant _metadata; 30 | public: 31 | AtomUDTA(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 32 | virtual ~AtomUDTA(); 33 | Variant &GetMetadata(); 34 | protected: 35 | virtual bool AtomCreated(BaseAtom *pAtom); 36 | }; 37 | 38 | #endif /* _ATOMUDTA_H */ 39 | 40 | 41 | #endif /* HAS_MEDIA_MP4 */ 42 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atommvex.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMMVEX_H 22 | #define _ATOMMVEX_H 23 | 24 | #include "mediaformats/readers/mp4/boxatom.h" 25 | 26 | class AtomTREX; 27 | 28 | class AtomMVEX 29 | : public BoxAtom { 30 | private: 31 | map _trex; 32 | public: 33 | AtomMVEX(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 34 | virtual ~AtomMVEX(); 35 | protected: 36 | virtual bool AtomCreated(BaseAtom *pAtom); 37 | }; 38 | 39 | 40 | #endif /* _ATOMMVEX_H */ 41 | #endif /* HAS_MEDIA_MP4 */ 42 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/ignoredatom.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _IGNOREDATOM_H 22 | #define _IGNOREDATOM_H 23 | 24 | #include "mediaformats/readers/mp4/baseatom.h" 25 | 26 | class IgnoredAtom 27 | : public BaseAtom { 28 | public: 29 | IgnoredAtom(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 30 | virtual ~IgnoredAtom(); 31 | 32 | virtual bool IsIgnored(); 33 | 34 | virtual bool Read(); 35 | virtual string Hierarchy(uint32_t indent); 36 | }; 37 | 38 | #endif /* _IGNOREDATOM_H */ 39 | 40 | 41 | #endif /* HAS_MEDIA_MP4 */ 42 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomco64.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMCO64_H 22 | #define _ATOMCO64_H 23 | 24 | #include "mediaformats/readers/mp4/versionedatom.h" 25 | 26 | class AtomCO64 27 | : public VersionedAtom { 28 | private: 29 | vector _entries; 30 | public: 31 | AtomCO64(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 32 | virtual ~AtomCO64(); 33 | 34 | vector GetEntries(); 35 | protected: 36 | virtual bool ReadData(); 37 | }; 38 | 39 | #endif /* _ATOMCO64_H */ 40 | 41 | 42 | #endif /* HAS_MEDIA_MP4 */ 43 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomstco.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMSTCO_H 22 | #define _ATOMSTCO_H 23 | 24 | #include "mediaformats/readers/mp4/versionedatom.h" 25 | 26 | class AtomSTCO 27 | : public VersionedAtom { 28 | private: 29 | vector _entries; 30 | public: 31 | AtomSTCO(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 32 | virtual ~AtomSTCO(); 33 | 34 | vector GetEntries(); 35 | protected: 36 | virtual bool ReadData(); 37 | }; 38 | 39 | #endif /* _ATOMSTCO_H */ 40 | 41 | 42 | #endif /* HAS_MEDIA_MP4 */ 43 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomstss.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMSTSS_H 22 | #define _ATOMSTSS_H 23 | 24 | #include "mediaformats/readers/mp4/versionedatom.h" 25 | 26 | class AtomSTSS 27 | : public VersionedAtom { 28 | private: 29 | vector _entries; 30 | public: 31 | AtomSTSS(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 32 | virtual ~AtomSTSS(); 33 | 34 | vector GetEntries(); 35 | protected: 36 | virtual bool ReadData(); 37 | }; 38 | 39 | #endif /* _ATOMSTSS_H */ 40 | 41 | 42 | #endif /* HAS_MEDIA_MP4 */ 43 | -------------------------------------------------------------------------------- /sources/applications/proxypublish/include/liveflvappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_PROTOCOL_LIVEFLV 21 | #ifndef _LIVEFLVAPPPROTOCOLHANDLER_H 22 | #define _LIVEFLVAPPPROTOCOLHANDLER_H 23 | 24 | #include "protocols/liveflv/baseliveflvappprotocolhandler.h" 25 | namespace app_proxypublish { 26 | 27 | class LiveFLVAppProtocolHandler 28 | : public BaseLiveFLVAppProtocolHandler { 29 | public: 30 | LiveFLVAppProtocolHandler(Variant &configuration); 31 | virtual ~LiveFLVAppProtocolHandler(); 32 | }; 33 | } 34 | 35 | #endif /* _LIVEFLVAPPPROTOCOLHANDLER_H */ 36 | #endif /* HAS_PROTOCOL_LIVEFLV */ 37 | 38 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomavc1.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMAVC1_H 22 | #define _ATOMAVC1_H 23 | 24 | #include "mediaformats/readers/mp4/boxatom.h" 25 | 26 | class AtomAVCC; 27 | 28 | class AtomAVC1 29 | : public BoxAtom { 30 | private: 31 | AtomAVCC *_pAVCC; 32 | public: 33 | AtomAVC1(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 34 | virtual ~AtomAVC1(); 35 | 36 | protected: 37 | virtual bool Read(); 38 | virtual bool AtomCreated(BaseAtom *pAtom); 39 | }; 40 | 41 | #endif /* _ATOMAVC1_H */ 42 | 43 | 44 | #endif /* HAS_MEDIA_MP4 */ 45 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/ts/tsframereaderinterface.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_TS 21 | #ifndef _TSFRAMEREADERINTERFACE_H 22 | #define _TSFRAMEREADERINTERFACE_H 23 | 24 | #include "common.h" 25 | 26 | class BaseInStream; 27 | 28 | class TSFrameReaderInterface { 29 | public: 30 | 31 | virtual ~TSFrameReaderInterface() { 32 | 33 | } 34 | virtual BaseInStream *GetInStream() = 0; 35 | virtual bool SignalFrame(uint8_t *pData, uint32_t dataLength, double pts, 36 | double dts, bool isAudio) = 0; 37 | }; 38 | 39 | #endif /* _TSFRAMEREADERINTERFACE_H */ 40 | #endif /* HAS_MEDIA_TS */ 41 | 42 | -------------------------------------------------------------------------------- /sources/applications/flvplayback/include/liveflvappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_PROTOCOL_LIVEFLV 22 | #ifndef _LIVEFLVAPPPROTOCOLHANDLER_H 23 | #define _LIVEFLVAPPPROTOCOLHANDLER_H 24 | 25 | #include "protocols/liveflv/baseliveflvappprotocolhandler.h" 26 | namespace app_flvplayback { 27 | 28 | class LiveFLVAppProtocolHandler 29 | : public BaseLiveFLVAppProtocolHandler { 30 | public: 31 | LiveFLVAppProtocolHandler(Variant &configuration); 32 | virtual ~LiveFLVAppProtocolHandler(); 33 | }; 34 | } 35 | 36 | #endif /* _LIVEFLVAPPPROTOCOLHANDLER_H */ 37 | #endif /* HAS_PROTOCOL_LIVEFLV */ 38 | 39 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/flv/flvdocument.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_FLV 21 | #ifndef _FLVDOCUMENT 22 | #define _FLVDOCUMENT 23 | 24 | #include "common.h" 25 | #include "mediaformats/readers/basemediadocument.h" 26 | 27 | class FLVDocument 28 | : public BaseMediaDocument { 29 | private: 30 | Variant _rtmpMetadata; 31 | public: 32 | FLVDocument(Metadata &metadata); 33 | virtual ~FLVDocument(); 34 | 35 | protected: 36 | virtual bool ParseDocument(); 37 | virtual bool BuildFrames(); 38 | virtual Variant GetPublicMeta(); 39 | }; 40 | 41 | #endif /* _FLVDOCUMENT */ 42 | #endif /* HAS_MEDIA_FLV */ 43 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomwave.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMWAVE_H 22 | #define _ATOMWAVE_H 23 | 24 | #include "mediaformats/readers/mp4/boxatom.h" 25 | 26 | class AtomMP4A; 27 | class AtomESDS; 28 | 29 | class AtomWAVE 30 | : public BoxAtom { 31 | private: 32 | AtomMP4A *_pMP4A; 33 | AtomESDS *_pESDS; 34 | public: 35 | AtomWAVE(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 36 | virtual ~AtomWAVE(); 37 | 38 | virtual bool AtomCreated(BaseAtom *pAtom); 39 | }; 40 | 41 | #endif /* _ATOMWAVE_H */ 42 | 43 | 44 | #endif /* HAS_MEDIA_MP4 */ 45 | -------------------------------------------------------------------------------- /sources/thelib/src/protocols/http/basehttpappprotocolhandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_PROTOCOL_HTTP 22 | #include "protocols/http/basehttpprotocolhandler.h" 23 | 24 | BaseHTTPAppProtocolHandler::BaseHTTPAppProtocolHandler(Variant &configuration) 25 | : BaseAppProtocolHandler(configuration) { 26 | 27 | } 28 | 29 | BaseHTTPAppProtocolHandler::~BaseHTTPAppProtocolHandler() { 30 | } 31 | 32 | void BaseHTTPAppProtocolHandler::RegisterProtocol(BaseProtocol *pProtocol) { 33 | 34 | } 35 | 36 | void BaseHTTPAppProtocolHandler::UnRegisterProtocol(BaseProtocol *pProtocol) { 37 | 38 | } 39 | #endif /* HAS_PROTOCOL_HTTP */ 40 | -------------------------------------------------------------------------------- /sources/applications/admin/include/cliappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_PROTOCOL_CLI 21 | #ifndef _CLIAPPPROTOCOLHANDLER_H 22 | #define _CLIAPPPROTOCOLHANDLER_H 23 | 24 | #include "protocols/cli/basecliappprotocolhandler.h" 25 | 26 | namespace app_admin { 27 | 28 | class CLIAppProtocolHandler 29 | : public BaseCLIAppProtocolHandler { 30 | public: 31 | CLIAppProtocolHandler(Variant &configuration); 32 | virtual ~CLIAppProtocolHandler(); 33 | 34 | virtual bool ProcessMessage(BaseProtocol *pFrom, Variant &message); 35 | }; 36 | } 37 | 38 | #endif /* _CLIAPPPROTOCOLHANDLER_H */ 39 | #endif /* HAS_PROTOCOL_CLI */ 40 | -------------------------------------------------------------------------------- /sources/thelib/include/utils/readyforsendinterface.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _READYFORSENDINTERFACE_H 21 | #define _READYFORSENDINTERFACE_H 22 | 23 | class DLLEXP ReadyForSendInterface { 24 | public: 25 | 26 | /*! 27 | * @brief keep the compiler happy about destructor 28 | */ 29 | virtual ~ReadyForSendInterface() { 30 | 31 | } 32 | 33 | /*! 34 | * @brief This function will be called by the framework when the I/O layer 35 | * can do more I/O on the same handler which was previously used to do 36 | * output 37 | */ 38 | virtual void ReadyForSend() = 0; 39 | }; 40 | 41 | 42 | #endif /* _READYFORSENDINTERFACE_H */ 43 | -------------------------------------------------------------------------------- /sources/thelib/src/mediaformats/readers/mp4/atomnull.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #include "mediaformats/readers/mp4/atomnull.h" 22 | 23 | AtomNULL::AtomNULL(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start) 24 | : BaseAtom(pDocument, type, size, start) { 25 | 26 | } 27 | 28 | AtomNULL::~AtomNULL() { 29 | } 30 | 31 | bool AtomNULL::IsIgnored() { 32 | return true; 33 | } 34 | 35 | bool AtomNULL::Read() { 36 | return SkipRead(false); 37 | } 38 | 39 | string AtomNULL::Hierarchy(uint32_t indent) { 40 | return string(4 * indent, ' ') + "null"; 41 | } 42 | 43 | 44 | #endif /* HAS_MEDIA_MP4 */ 45 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/generic_flex_components/src/com/rtmpd/generics/ui/components/LogsWindow.mxml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 21 | 22 | 24 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /sources/applications/applestreamingclient/include/protocols/m3u8/masterm3u8protocol.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | 22 | #ifndef _MASTERM3U8PROTOCOL_H 23 | #define _MASTERM3U8PROTOCOL_H 24 | 25 | #include "protocols/m3u8/basem3u8protocol.h" 26 | 27 | namespace app_applestreamingclient { 28 | 29 | class MasterM3U8Protocol 30 | : public BaseM3U8Protocol { 31 | public: 32 | MasterM3U8Protocol(); 33 | virtual ~MasterM3U8Protocol(); 34 | protected: 35 | virtual Playlist *GetPlaylist(); 36 | virtual bool SignalPlaylistAvailable(); 37 | virtual bool SignalPlaylistFailed(); 38 | }; 39 | } 40 | 41 | #endif /* _MASTERM3U8PROTOCOL_H */ 42 | 43 | -------------------------------------------------------------------------------- /sources/thelib/include/protocols/http/basehttpprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _BASEHTTPAPPPROTOCOLHANDLER_H 22 | #define _BASEHTTPAPPPROTOCOLHANDLER_H 23 | 24 | #include "application/baseappprotocolhandler.h" 25 | 26 | class DLLEXP BaseHTTPAppProtocolHandler 27 | : public BaseAppProtocolHandler { 28 | public: 29 | BaseHTTPAppProtocolHandler(Variant &configuration); 30 | virtual ~BaseHTTPAppProtocolHandler(); 31 | 32 | virtual void RegisterProtocol(BaseProtocol *pProtocol); 33 | virtual void UnRegisterProtocol(BaseProtocol *pProtocol); 34 | }; 35 | 36 | 37 | #endif /* _BASEHTTPAPPPROTOCOLHANDLER_H */ 38 | 39 | 40 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomdref.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMDREF_H 22 | #define _ATOMDREF_H 23 | 24 | #include "mediaformats/readers/mp4/versionedboxatom.h" 25 | 26 | class AtomURL; 27 | 28 | class AtomDREF 29 | : public VersionedBoxAtom { 30 | private: 31 | vector _urls; 32 | public: 33 | AtomDREF(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 34 | virtual ~AtomDREF(); 35 | 36 | protected: 37 | virtual bool ReadData(); 38 | virtual bool AtomCreated(BaseAtom *pAtom); 39 | }; 40 | 41 | #endif /* _ATOMDREF_H */ 42 | 43 | 44 | #endif /* HAS_MEDIA_MP4 */ 45 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/ts/pidtypes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_MEDIA_TS 22 | #ifndef _PIDTYPES_H 23 | #define _PIDTYPES_H 24 | 25 | #include "common.h" 26 | 27 | //iso13818-1 page 37/174 28 | //Table 2-3 – PID table 29 | //WARN: This are not the values from the table. This are types-over-types 30 | 31 | enum PIDType { 32 | PID_TYPE_UNKNOWN, 33 | PID_TYPE_PAT, 34 | PID_TYPE_PMT, 35 | PID_TYPE_NIT, 36 | PID_TYPE_CAT, 37 | PID_TYPE_TSDT, 38 | PID_TYPE_RESERVED, 39 | PID_TYPE_AUDIOSTREAM, 40 | PID_TYPE_VIDEOSTREAM, 41 | PID_TYPE_NULL 42 | }; 43 | 44 | #endif /* _PIDTYPES_H */ 45 | #endif /* HAS_MEDIA_TS */ 46 | 47 | -------------------------------------------------------------------------------- /sources/applications/flvplayback/src/rtspappprotocolhandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_PROTOCOL_RTP 22 | 23 | #include "rtspappprotocolhandler.h" 24 | #include "protocols/rtp/rtspprotocol.h" 25 | #include "protocols/rtp/sdp.h" 26 | #include "protocols/protocolfactorymanager.h" 27 | #include "netio/netio.h" 28 | #include "protocols/protocolmanager.h" 29 | using namespace app_flvplayback; 30 | 31 | RTSPAppProtocolHandler::RTSPAppProtocolHandler(Variant& configuration) 32 | : BaseRTSPAppProtocolHandler(configuration) { 33 | 34 | } 35 | 36 | RTSPAppProtocolHandler::~RTSPAppProtocolHandler() { 37 | } 38 | 39 | #endif /* HAS_PROTOCOL_RTP */ 40 | 41 | -------------------------------------------------------------------------------- /sources/applications/samplefactory/include/echoappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _ECHOAPPPROTOCOLHANDLER_H 21 | #define _ECHOAPPPROTOCOLHANDLER_H 22 | 23 | #include "application/baseappprotocolhandler.h" 24 | 25 | namespace app_samplefactory { 26 | 27 | class EchoAppProtocolHandler 28 | : public BaseAppProtocolHandler { 29 | public: 30 | EchoAppProtocolHandler(Variant &configuration); 31 | virtual ~EchoAppProtocolHandler(); 32 | 33 | virtual void RegisterProtocol(BaseProtocol *pProtocol); 34 | virtual void UnRegisterProtocol(BaseProtocol *pProtocol); 35 | }; 36 | } 37 | 38 | #endif /* _ECHOAPPPROTOCOLHANDLER_H */ 39 | 40 | -------------------------------------------------------------------------------- /sources/common/include/utils/logging/formatter.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifndef _FORMATTER_H 21 | #define _FORMATTER_H 22 | 23 | #include "common.h" 24 | 25 | class Formatter { 26 | private: 27 | string _formatString; 28 | 29 | struct LogField { 30 | bool isField; 31 | string value; 32 | 33 | LogField() { 34 | isField = false; 35 | value = ""; 36 | } 37 | }; 38 | vector _fields; 39 | private: 40 | Formatter(); 41 | public: 42 | virtual ~Formatter(); 43 | static Formatter* GetInstance(string formatString); 44 | bool Init(string formatString); 45 | string Format(Variant &le); 46 | }; 47 | 48 | #endif /* _FORMATTER_H */ 49 | -------------------------------------------------------------------------------- /appscaffold/templates/builders/netbeans/osx/nbproject/private/configurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Makefile.nb 4 | 0 5 | 6 | 7 | 8 | gdb 9 | 10 10 | 11 | 12 | 13 | 14 | 15 | 16 | true 17 | 0 18 | 0 19 | 20 | 21 | 22 | 23 | 24 | 25 | gdb 26 | 10 27 | 28 | 29 | 30 | 31 | 32 | 33 | true 34 | 0 35 | 0 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /sources/applications/applestreamingclient/include/protocols/genericprotocol.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _GENERICPROTOCOL_H 22 | #define _GENERICPROTOCOL_H 23 | 24 | #include "protocols/baseprotocol.h" 25 | 26 | namespace app_applestreamingclient { 27 | class ClientContext; 28 | 29 | class GenericProtocol 30 | : public BaseProtocol { 31 | private: 32 | uint32_t _contextId; 33 | public: 34 | GenericProtocol(uint64_t type); 35 | virtual ~GenericProtocol(); 36 | 37 | virtual bool Initialize(Variant ¶meters); 38 | ClientContext *GetContext(); 39 | bool DoHTTPRequest(); 40 | }; 41 | } 42 | 43 | #endif /* _GENERICPROTOCOL_H */ 44 | 45 | -------------------------------------------------------------------------------- /sources/applications/proxypublish/src/rtspappprotocolhandler.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifdef HAS_PROTOCOL_RTP 22 | 23 | #include "rtspappprotocolhandler.h" 24 | #include "protocols/rtp/rtspprotocol.h" 25 | #include "protocols/rtp/sdp.h" 26 | #include "protocols/protocolfactorymanager.h" 27 | #include "netio/netio.h" 28 | #include "protocols/protocolmanager.h" 29 | using namespace app_proxypublish; 30 | 31 | RTSPAppProtocolHandler::RTSPAppProtocolHandler(Variant& configuration) 32 | : BaseRTSPAppProtocolHandler(configuration) { 33 | 34 | } 35 | 36 | RTSPAppProtocolHandler::~RTSPAppProtocolHandler() { 37 | } 38 | 39 | #endif /* HAS_PROTOCOL_RTP */ 40 | 41 | -------------------------------------------------------------------------------- /sources/thelib/include/protocols/variant/jsonvariantprotocol.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_PROTOCOL_VAR 21 | #ifndef _JSONVARIANTPROTOCOL_H 22 | #define _JSONVARIANTPROTOCOL_H 23 | 24 | #include "protocols/variant/basevariantprotocol.h" 25 | 26 | class DLLEXP JsonVariantProtocol 27 | : public BaseVariantProtocol { 28 | public: 29 | JsonVariantProtocol(); 30 | virtual ~JsonVariantProtocol(); 31 | protected: 32 | virtual bool Serialize(string &rawData, Variant &variant); 33 | virtual bool Deserialize(uint8_t *pBuffer, uint32_t bufferLength, 34 | Variant &result); 35 | }; 36 | 37 | #endif /* _JSONVARIANTPROTOCOL_H */ 38 | #endif /* HAS_PROTOCOL_VAR */ 39 | -------------------------------------------------------------------------------- /sources/applications/misc_flash_resources/simplelive2/.actionScriptProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomftyp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMFTYP_H 22 | #define _ATOMFTYP_H 23 | 24 | #include "mediaformats/readers/mp4/baseatom.h" 25 | 26 | class AtomFTYP 27 | : public BaseAtom { 28 | private: 29 | uint32_t _majorBrand; 30 | uint32_t _minorVersion; 31 | vector _compatibleBrands; 32 | public: 33 | AtomFTYP(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 34 | virtual ~AtomFTYP(); 35 | 36 | virtual bool Read(); 37 | 38 | virtual string Hierarchy(uint32_t indent); 39 | }; 40 | 41 | #endif /* _ATOMFTYP_H */ 42 | 43 | 44 | #endif /* HAS_MEDIA_MP4 */ 45 | -------------------------------------------------------------------------------- /sources/thelib/include/mediaformats/readers/mp4/atomstsz.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | #ifdef HAS_MEDIA_MP4 21 | #ifndef _ATOMSTSZ_H 22 | #define _ATOMSTSZ_H 23 | 24 | #include "mediaformats/readers/mp4/versionedatom.h" 25 | 26 | class AtomSTSZ 27 | : public VersionedAtom { 28 | private: 29 | uint32_t _sampleSize; 30 | uint32_t _sampleCount; 31 | vector _entries; 32 | public: 33 | AtomSTSZ(MP4Document *pDocument, uint32_t type, uint64_t size, uint64_t start); 34 | virtual ~AtomSTSZ(); 35 | 36 | vector GetEntries(); 37 | protected: 38 | virtual bool ReadData(); 39 | }; 40 | 41 | #endif /* _ATOMSTSZ_H */ 42 | 43 | 44 | #endif /* HAS_MEDIA_MP4 */ 45 | -------------------------------------------------------------------------------- /sources/applications/applestreamingclient/include/protocols/aes/aesappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _AESAPPPROTOCOLHANDLER_H 22 | #define _AESAPPPROTOCOLHANDLER_H 23 | 24 | #include "application/baseappprotocolhandler.h" 25 | namespace app_applestreamingclient { 26 | 27 | class AESAppProtocolHandler 28 | : public BaseAppProtocolHandler { 29 | public: 30 | AESAppProtocolHandler(Variant &configuration); 31 | virtual ~AESAppProtocolHandler(); 32 | 33 | virtual void RegisterProtocol(BaseProtocol *pProtocol); 34 | virtual void UnRegisterProtocol(BaseProtocol *pProtocol); 35 | }; 36 | } 37 | 38 | #endif /* _AESAPPPROTOCOLHANDLER_H */ 39 | 40 | -------------------------------------------------------------------------------- /sources/applications/applestreamingclient/include/protocols/key/keyappprotocolhandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010, 3 | * Gavriloaie Eugen-Andrei (shiretu@gmail.com) 4 | * 5 | * This file is part of crtmpserver. 6 | * crtmpserver is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * crtmpserver is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with crtmpserver. If not, see . 18 | */ 19 | 20 | 21 | #ifndef _KEYAPPPROTOCOLHANDLER_H 22 | #define _KEYAPPPROTOCOLHANDLER_H 23 | 24 | #include "application/baseappprotocolhandler.h" 25 | 26 | namespace app_applestreamingclient { 27 | 28 | class KeyAppProtocolHandler 29 | : public BaseAppProtocolHandler { 30 | public: 31 | KeyAppProtocolHandler(Variant &configuration); 32 | virtual ~KeyAppProtocolHandler(); 33 | 34 | virtual void RegisterProtocol(BaseProtocol *pProtocol); 35 | virtual void UnRegisterProtocol(BaseProtocol *pProtocol); 36 | }; 37 | } 38 | #endif /* _KEYAPPPROTOCOLHANDLER_H */ 39 | 40 | --------------------------------------------------------------------------------