All Projects → apivideo → api.video-go-client

apivideo / api.video-go-client

Licence: MIT License
The official Go client library for api.video

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to api.video-go-client

Hls.js
HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.
Stars: ✭ 10,791 (+67343.75%)
Mutual labels:  streaming, hls, video-streaming
Nginx Vod Module
NGINX-based MP4 Repackager
Stars: ✭ 1,378 (+8512.5%)
Mutual labels:  streaming, hls, video-streaming
Srs
SRS is a simple, high efficiency and realtime video server, supports RTMP, WebRTC, HLS, HTTP-FLV, SRT and GB28181.
Stars: ✭ 16,734 (+104487.5%)
Mutual labels:  streaming, hls, video-streaming
Ott Packager
OTT/ABR streaming encoder (H264/HEVC) and packager for DASH and HLS
Stars: ✭ 148 (+825%)
Mutual labels:  streaming, hls, video-streaming
browserLiveStream
Use webcam, browser and Node to stream live video. From api.video (https://api.video)
Stars: ✭ 141 (+781.25%)
Mutual labels:  streaming, hls, video-streaming
Vidgear
A High-performance cross-platform Video Processing Python framework powerpacked with unique trailblazing features 🔥
Stars: ✭ 2,048 (+12700%)
Mutual labels:  streaming, hls, video-streaming
Awesome Video
A curated list of awesome streaming video tools, frameworks, libraries, and learning resources.
Stars: ✭ 397 (+2381.25%)
Mutual labels:  streaming, hls, video-streaming
Nymphcast
Audio and video casting system with support for custom applications.
Stars: ✭ 2,010 (+12462.5%)
Mutual labels:  streaming, video-streaming
Ffplayout Engine
python and ffmpeg based playout
Stars: ✭ 128 (+700%)
Mutual labels:  streaming, hls
Haishinkit.swift
Camera and Microphone streaming library via RTMP, HLS for iOS, macOS, tvOS.
Stars: ✭ 2,237 (+13881.25%)
Mutual labels:  streaming, hls
shaka-player-react
A simple React component wrapper for shaka-player
Stars: ✭ 79 (+393.75%)
Mutual labels:  hls, video-streaming
Gpac
Modular Multimedia framework for packaging, streaming and playing your favorite content.
Stars: ✭ 1,321 (+8156.25%)
Mutual labels:  streaming, hls
Nginx Rtmp Monitoring
real-time monitoring statistics dashboard for nginx rtmp module
Stars: ✭ 224 (+1300%)
Mutual labels:  streaming, hls
HJPlayer
A HTML5 Player, can play flv and hls by Media Source Extension, based on typescript.
Stars: ✭ 149 (+831.25%)
Mutual labels:  streaming, hls
Node Tcp Streaming Server
Experimental TCP video streaming server written in node.js. Streaming over TCP and redistributing using WebSockets.
Stars: ✭ 100 (+525%)
Mutual labels:  streaming, video-streaming
shaka-php
🎞 Shaka PHP is a library that uses Shaka Packager for DASH and HLS packaging and encryption, supporting Common Encryption for Widevine and other DRM Systems.
Stars: ✭ 63 (+293.75%)
Mutual labels:  hls, video-streaming
wsa
WSA(Websocket Streaming Agent) is a stream server target for mp4/h264 streaming over websocket
Stars: ✭ 35 (+118.75%)
Mutual labels:  streaming, hls
m3u8
Parse and generate m3u8 playlists for Apple HTTP Live Streaming (HLS) in Ruby.
Stars: ✭ 96 (+500%)
Mutual labels:  streaming, hls
RokuKast
A Chrome extension to stream web videos to Roku devices.
Stars: ✭ 63 (+293.75%)
Mutual labels:  hls, video-streaming
Nexplayer unity plugin
Stream videos in HLS & DASH with Widevine DRM using NexPlayer Video Streaming Player SDK for Unity on Android & iOS devices
Stars: ✭ 73 (+356.25%)
Mutual labels:  streaming, hls

badge   badge   badge

api.video Go client

api.video is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in your app.

Table of contents

Project description

api.video's Java Go client streamlines the coding process. Chunking files is handled for you, as is pagination and refreshing your tokens.

Getting started

Installation

go get github.com/apivideo/api.video-go-client

Code sample

For a more advanced usage you can checkout the rest of the documentation in the docs directory

package main

import (
    "fmt"
    "os"
    apivideosdk "github.com/apivideo/api.video-go-client"
)

func main() {
    //Connect to production environment
    client := apivideosdk.ClientBuilder("YOUR_API_TOKEN").Build()

    // if you rather like to use the sandbox environment:
    // client := apivideosdk.SandboxClientBuilder("YOU_SANDBOX_API_TOKEN").Build()


    //List Videos
    //First create the url options for searching
    opts := apivideosdk.VideosApiListRequest{}.
        CurrentPage(1).
        PageSize(25).
        SortBy("publishedAt").
        SortOrder("desc")

    //Then call the List endpoint with the options
    result, err := client.Videos.List(opts)

    if err != nil {
        fmt.Println(err)
    }

    for _, video := range result.Data {
        fmt.Printf("%s\n", *video.VideoId)
        fmt.Printf("%s\n", *video.Title)
    }


    //Upload a video
    //First create a container
    create, err := client.Videos.Create(apivideosdk.VideoCreationPayload{Title: "My video title"})

    if err != nil {
        fmt.Println(err)
    }

    //Then open the video file
    videoFile, err := os.Open("path/to/video.mp4")

    if err != nil {
        fmt.Println(err)
    }

    //Finally upload your video to the container with the videoId
    uploadedVideo, err := client.Videos.UploadFile(*create.VideoId, videoFile)

    if err != nil {
        fmt.Println(err)
    }


    //And get the assets
    fmt.Printf("%s\n", *uploadedVideo.Assets.Hls)
    fmt.Printf("%s\n", *uploadedVideo.Assets.Iframe)
}

Documentation

API Endpoints

All URIs are relative to https://ws.api.video

Captions

Retrieve an instance of the Captions API:

client := apivideosdk.ClientBuilder("API_VIDEO_KEY").Build()
captionsApi := client.Captions

Endpoints

Method HTTP request Description
Delete Delete /videos/{videoId}/captions/{language} Delete a caption
List Get /videos/{videoId}/captions List video captions
Get Get /videos/{videoId}/captions/{language} Show a caption
Update Patch /videos/{videoId}/captions/{language} Update caption
Upload Post /videos/{videoId}/captions/{language} Upload a caption

Chapters

Retrieve an instance of the Chapters API:

client := apivideosdk.ClientBuilder("API_VIDEO_KEY").Build()
chaptersApi := client.Chapters

Endpoints

Method HTTP request Description
Delete Delete /videos/{videoId}/chapters/{language} Delete a chapter
List Get /videos/{videoId}/chapters List video chapters
Get Get /videos/{videoId}/chapters/{language} Show a chapter
Upload Post /videos/{videoId}/chapters/{language} Upload a chapter

LiveStreams

Retrieve an instance of the LiveStreams API:

client := apivideosdk.ClientBuilder("API_VIDEO_KEY").Build()
liveStreamsApi := client.LiveStreams

Endpoints

Method HTTP request Description
Delete Delete /live-streams/{liveStreamId} Delete a live stream
DeleteThumbnail Delete /live-streams/{liveStreamId}/thumbnail Delete a thumbnail
List Get /live-streams List all live streams
Get Get /live-streams/{liveStreamId} Show live stream
Update Patch /live-streams/{liveStreamId} Update a live stream
Create Post /live-streams Create live stream
UploadThumbnail Post /live-streams/{liveStreamId}/thumbnail Upload a thumbnail

PlayerThemes

Retrieve an instance of the PlayerThemes API:

client := apivideosdk.ClientBuilder("API_VIDEO_KEY").Build()
playerThemesApi := client.PlayerThemes

Endpoints

Method HTTP request Description
Delete Delete /players/{playerId} Delete a player
DeleteLogo Delete /players/{playerId}/logo Delete logo
List Get /players List all player themes
Get Get /players/{playerId} Show a player
Update Patch /players/{playerId} Update a player
Create Post /players Create a player
UploadLogo Post /players/{playerId}/logo Upload a logo

RawStatistics

Retrieve an instance of the RawStatistics API:

client := apivideosdk.ClientBuilder("API_VIDEO_KEY").Build()
rawStatisticsApi := client.RawStatistics

Endpoints

Method HTTP request Description
ListLiveStreamSessions Get /analytics/live-streams/{liveStreamId} List live stream player sessions
ListSessionEvents Get /analytics/sessions/{sessionId}/events List player session events
ListVideoSessions Get /analytics/videos/{videoId} List video player sessions

UploadTokens

Retrieve an instance of the UploadTokens API:

client := apivideosdk.ClientBuilder("API_VIDEO_KEY").Build()
uploadTokensApi := client.UploadTokens

Endpoints

Method HTTP request Description
DeleteToken Delete /upload-tokens/{uploadToken} Delete an upload token
List Get /upload-tokens List all active upload tokens.
GetToken Get /upload-tokens/{uploadToken} Show upload token
CreateToken Post /upload-tokens Generate an upload token

Videos

Retrieve an instance of the Videos API:

client := apivideosdk.ClientBuilder("API_VIDEO_KEY").Build()
videosApi := client.Videos

Endpoints

Method HTTP request Description
Delete Delete /videos/{videoId} Delete a video
Get Get /videos/{videoId} Show a video
GetStatus Get /videos/{videoId}/status Show video status
List Get /videos List all videos
Update Patch /videos/{videoId} Update a video
PickThumbnail Patch /videos/{videoId}/thumbnail Pick a thumbnail
UploadWithUploadToken Post /upload Upload with an upload token
Create Post /videos Create a video
Upload Post /videos/{videoId}/source Upload a video
UploadThumbnail Post /videos/{videoId}/thumbnail Upload a thumbnail

Watermarks

Retrieve an instance of the Watermarks API:

client := apivideosdk.ClientBuilder("API_VIDEO_KEY").Build()
watermarksApi := client.Watermarks

Endpoints

Method HTTP request Description
Delete Delete /watermarks/{watermarkId} Delete a watermark
List Get /watermarks List all watermarks
Upload Post /watermarks Upload a watermark

Webhooks

Retrieve an instance of the Webhooks API:

client := apivideosdk.ClientBuilder("API_VIDEO_KEY").Build()
webhooksApi := client.Webhooks

Endpoints

Method HTTP request Description
Delete Delete /webhooks/{webhookId} Delete a Webhook
Get Get /webhooks/{webhookId} Show Webhook details
List Get /webhooks List all webhooks
Create Post /webhooks Create Webhook

Models

Have you gotten use from this API client?

Please take a moment to leave a star on the client

This helps other users to find the clients and also helps us understand which clients are most popular. Thank you!

Contribution

Since this API client is generated from an OpenAPI description, we cannot accept pull requests made directly to the repository. If you want to contribute, you can open a pull request on the repository of our client generator. Otherwise, you can also simply open an issue detailing your need on this repository.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].