- OUT: Join
{request: "join", room: 1234, ptype: "publisher", display: "a"}
Создается participant (с типом publisher) и добавляется в комнату.
g_hash_table_insert(videoroom->participants, janus_uint64_dup(publisher->user_id), publisher);
| drop extension "uuid-ossp" cascade; | |
| create extension "uuid-ossp"; | |
| drop type abac_attribute cascade; | |
| create type abac_attribute as ( | |
| value text, | |
| key text, | |
| namespace_id uuid | |
| ); |
| error_chain! { | |
| foreign_links { | |
| Diesel(::diesel::result::Error); | |
| Json(::serde_json::Error); | |
| Mqtt(::rumqtt::Error); | |
| Utf8(::std::string::FromUtf8Error); | |
| Uuid(::uuid::ParseError); | |
| } | |
| errors { |
| -- table room | |
| DELETE FROM room; | |
| INSERT INTO room (id) | |
| SELECT uuid_generate_v4() | |
| FROM | |
| generate_series(1, 3); | |
| -- table room |
| use uuid::Uuid; | |
| use models::{Agent, Room}; | |
| use schema::room_agent; | |
| #[derive(Associations, Queryable, Debug)] | |
| #[table_name = "room_agent"] | |
| #[belongs_to(Agent)] | |
| #[belongs_to(Room)] | |
| pub struct RoomAgent { |
| extern crate gtk; | |
| use gtk::*; | |
| fn main() { | |
| if gtk::init().is_err() { | |
| eprintln!("failed to initialize GTK Application"); | |
| std::process::exit(1); | |
| } | |
| let window = Window::new(WindowType::Toplevel); |
{request: "join", room: 1234, ptype: "publisher", display: "a"}
Создается participant (с типом publisher) и добавляется в комнату.
g_hash_table_insert(videoroom->participants, janus_uint64_dup(publisher->user_id), publisher);
| #!/bin/bash | |
| ffmpeg \ | |
| -protocol_whitelist file,udp,rtp -i sdp.test \ | |
| -c:v libx264 -c:a aac \ | |
| -y test.mp4 | |
| # ffmpeg \ | |
| # -protocol_whitelist file,rtp,udp -i sdp.test \ |
| require 'dry-struct' | |
| module Types | |
| include Dry::Types.module | |
| end | |
| class Button < Dry::Struct | |
| attribute :text, Types::String | |
| end |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition: