{"id":18616697,"url":"https://github.com/sile/erl-rtmpmsg","last_synced_at":"2025-04-11T01:32:04.399Z","repository":{"id":44607759,"uuid":"9330226","full_name":"sile/erl-rtmpmsg","owner":"sile","description":"An Erlang library to encode/decode RTMP message","archived":false,"fork":false,"pushed_at":"2022-02-04T23:04:09.000Z","size":1154,"stargazers_count":8,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T07:12:36.484Z","etag":null,"topics":["erlang","rtmp"],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-09T19:56:55.000Z","updated_at":"2023-07-25T13:47:58.000Z","dependencies_parsed_at":"2022-09-17T14:31:20.000Z","dependency_job_id":null,"html_url":"https://github.com/sile/erl-rtmpmsg","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Ferl-rtmpmsg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Ferl-rtmpmsg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Ferl-rtmpmsg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Ferl-rtmpmsg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sile","download_url":"https://codeload.github.com/sile/erl-rtmpmsg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248243219,"owners_count":21071054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["erlang","rtmp"],"created_at":"2024-11-07T03:37:39.339Z","updated_at":"2025-04-11T01:32:03.948Z","avatar_url":"https://github.com/sile.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ErlRTMPMsg\n\n[![hex.pm version](https://img.shields.io/hexpm/v/rtmpmsg.svg)](https://hex.pm/packages/rtmpmsg)\n[![Build Status](https://travis-ci.org/sile/erl-rtmpmsg.svg?branch=master)](https://travis-ci.org/sile/erl-rtmpmsg)\n[![Code Coverage](https://codecov.io/gh/sile/erl-rtmpmsg/branch/master/graph/badge.svg)](https://codecov.io/gh/sile/erl-rtmpmsg/branch/master)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nErlRTMPMsg is an RTMP message(ver1.0) encoding/deconding library written in Erlang.\n\n## API\n\n[EDoc Documentation](https://hexdocs.pm/rtmpmsg/)\n\n## Examples\n\n```erlang\n$ rebar3 shell\n\n%% Load Message Record\n1\u003e rr(rtmpmsg).\n[chunk,rtmpmsg,rtmpmsg_abort,rtmpmsg_ack,rtmpmsg_aggregate,\n rtmpmsg_audio,rtmpmsg_command,rtmpmsg_data,\n rtmpmsg_event_buffer_empty,rtmpmsg_event_buffer_ready,\n rtmpmsg_event_ping_request,rtmpmsg_event_ping_response,\n rtmpmsg_event_set_buffer_length,rtmpmsg_event_stream_begin,\n rtmpmsg_event_stream_dry,rtmpmsg_event_stream_eof,\n rtmpmsg_event_stream_is_recorded,rtmpmsg_event_unknown,\n rtmpmsg_set_chunk_size,rtmpmsg_set_peer_bandwidth,\n rtmpmsg_shared_object,rtmpmsg_unknown,rtmpmsg_user_control,\n rtmpmsg_video,rtmpmsg_win_ack_size]\n\n%% Encode Message\n2\u003e Enc0 = rtmpmsg_encoder:new().\n3\u003e Msg  = rtmpmsg:command(10, amf0, \u003c\u003c\"connect\"\u003e\u003e, 1.0, amf:object([{\u003c\u003c\"key\"\u003e\u003e, \u003c\u003c\"value\"\u003e\u003e}]), []).\n#rtmpmsg{stream_id = 10,type_id = 20,timestamp = 0,\n         body = #rtmpmsg_command{amf_version = amf0,\n                                 name = \u003c\u003c\"connect\"\u003e\u003e,transaction_id = 1.0,\n                                 object = {amf_object,undefined,true,[],\n                                                      [{\u003c\u003c\"key\"\u003e\u003e,\u003c\u003c\"value\"\u003e\u003e}]},\n                                 args = []}}\n\n4\u003e {Enc1, EncodedData} = rtmpmsg_encoder:encode(Enc0, 3, Msg).\n5\u003e EncodedData.\n[3,\n \u003c\u003c0,0,0,0,0,36,20,10,0,0,0\u003e\u003e,\n \u003c\u003c2,0,7,99,111,110,110,101,99,116,0,63,240,0,0,0,0,0,0,3,\n   0,3,107,101,121,2,...\u003e\u003e]\n\n%% Decode Message\n6\u003e Dec0 = rtmpmsg_decoder:new().\n7\u003e {ok, Dec1, DecodedMsg, UnconsumedBin} = rtmpmsg_decoder:decode(Dec0, list_to_binary(EncodedData)).\n8\u003e DecodedMsg.\n#rtmpmsg{stream_id = 10,type_id = 20,timestamp = 0,\n         body = #rtmpmsg_command{amf_version = amf0,\n                                 name = \u003c\u003c\"connect\"\u003e\u003e,transaction_id = 1.0,\n                                 object = {amf_object,undefined,true,[],\n                                                      [{\u003c\u003c\"key\"\u003e\u003e,\u003c\u003c\"value\"\u003e\u003e}]},\n                                 args = []}}\n9\u003e UnconsumedBin.\n\u003c\u003c\u003e\u003e.\n10\u003e Msg =:= DecodedMsg.\ntrue.\n```\n\n## Reference\n\n* [RTMP Specification (ver1.0)](http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/rtmp/pdf/rtmp_specification_1.0.pdf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsile%2Ferl-rtmpmsg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsile%2Ferl-rtmpmsg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsile%2Ferl-rtmpmsg/lists"}