Skip to content

Commit

Permalink
Fix indirect URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
szekelyzol committed Oct 5, 2023
1 parent 8ed2011 commit 8173307
Show file tree
Hide file tree
Showing 34 changed files with 86 additions and 92 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
![](https://github.com/apivideo/.github/blob/main/assets/apivideo_banner.png)
<h1 align="center">api.video API client generator</h1>

[api.video](https://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.
[api.video](https://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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Knowing that now we can finally start building stuff!

It’s that simple! (if you want the advanced stuff, scroll down to “Time to roll up our sleeves!”)

Let’s try to deliver one video in HTML with our own (amazing!) [api.video](http://api.video) player.
Let’s try to deliver one video in HTML with our own (amazing!) [api.video](https://api.video/) player.

Suppose you already have a cool video uploaded. Go to the dashboard and get make the video private (if it’s not already private)

Expand Down Expand Up @@ -117,7 +117,7 @@ curl --request GET \

## Assets? What assets?

Notice that JSON above has a field called `assets`. We’ll refer to assets later, but it’s important to know what they are. Assets include the URLs for the video thumbnail, iframe with the [api.video](http://api.video) player for embedding directly into the HTML, and several other video formats like `mp4` and `hls`. Now you know!
Notice that JSON above has a field called `assets`. We’ll refer to assets later, but it’s important to know what they are. Assets include the URLs for the video thumbnail, iframe with the [api.video](https://api.video/) player for embedding directly into the HTML, and several other video formats like `mp4` and `hls`. Now you know!

## How to create a sample app with private videos

Expand Down Expand Up @@ -180,9 +180,9 @@ Check out a sample runnable code of the above app in Node.js using [Replit](http
Let’s do a step-by-step review of what we are doing here.

1. We are creating a server that will serve HTML on port 3000 with Node.js
2. To make it easy on ourselves, we create a wrapper that will make an HTTP request to [api.video](http://api.video) with api key already embedded in HTTP header. That’s the `apiVideoReq` function.
2. To make it easy on ourselves, we create a wrapper that will make an HTTP request to [api.video](https://api.video/) with api key already embedded in HTTP header. That’s the `apiVideoReq` function.
3. We will get a raw response from the apiVideoReq, so need to create a parser that will parse the JSON response if the request is successful (200). That’s going to be the `getJsonResponse`
4. Then we need to create a function that will get the list of our videos. That’s pretty simple with the wrapper function we have, so let’s reuse the `apiVideoReq` and make a request to the [`videos`](https://ws.api.video/videos) endpoint. You can find more info about the `/videos` endpoint [here](/reference/api/Videos#list-all-video-objects). The response we'll get is an array of objects of the following format:
4. Then we need to create a function that will get the list of our videos. That’s pretty simple with the wrapper function we have, so let’s reuse the `apiVideoReq` and make a request to the [`videos`](/reference/api/Videos) endpoint. You can find more info about the `/videos` endpoint [here](/reference/api/Videos#list-all-video-objects). The response we'll get is an array of objects of the following format:

```json
{
Expand Down
2 changes: 1 addition & 1 deletion templates/documentation/reference/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ If for example you have created 900 videos, after calling `GET https://ws.api.vi
]
```

In order to retrieve the next 25 videos, you will need to make another request with the page number, and you can pull it from the object `links` with the `rel: "next"` value. A call to GET [https://ws.api.video/videos?currentPage=2&pageSize=25z](https://ws.api.video/videos?currentPage=2&pageSize=25z) will give you the next 25 videos.
In order to retrieve the next 25 videos, you will need to make another request with the page number, and you can pull it from the object `links` with the `rel: "next"` value. A call to `GET https://ws.api.video/videos?currentPage=2&pageSize=25z` will give you the next 25 videos.

## API Clients

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ title: "Flutter RTMP live stream client"
slug: "flutter-rtmp-livestream-client"
hidden: false
metadata:
description: "The official Flutter RTMP live stream client for api.video. [api.video](https://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."
description: "The official Flutter RTMP live stream client for api.video. [api.video](https://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."
---

Flutter RTMP Live stream Client
============================

[api.video](https://api.video) is the video infrastructure for product builders. Lightning fast
[api.video](https://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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
title: "Kotlin live stream"
slug: "apivideo-kotlin-livestream-module"
metadata:
description: "The official Kotlin live stream client for api.video. [api.video](https://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."
description: "The official Kotlin live stream client for api.video. [api.video](https://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."
---
api.video Kotlin Live stream module
=========================================

[api.video](https://api.video) is the video infrastructure for product builders. Lightning fast
[api.video](https://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.

Expand Down Expand Up @@ -122,7 +122,7 @@ You can check device supported configurations by using the helper: `Helper`
## Documentation

* [API documentation](https://apivideo.github.io/api.video-android-live-stream/)
* [api.video documentation](https://docs.api.video)
* [api.video documentation](https://docs.api.video/)

## Dependencies

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ excerpt: "Live stream library for React Native from api.video"
React Native Livestream Component
=================================

[api.video](https://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.
[api.video](https://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.

## Project description

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Swift live stream library"
slug: "swift-live-stream-library"
metadata:
description: "The official Swift live stream library for api.video. [api.video](https://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."
description: "The official Swift live stream library for api.video. [api.video](https://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."
---

Swift Live stream Library
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ title: "api.video Android Player analytics plugin"
slug: "apivideo-android-player-analytics"
hidden: false
metadata:
description: "The official api.video Android Player analytics plugin for api.video. [api.video](https://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."
description: "The official api.video Android Player analytics plugin for api.video. [api.video](https://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."
---

api.video Android Player analytics plugin
==============

[api.video](https://api.video) is the video infrastructure for product builders. Lightning fast
[api.video](https://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.

Expand Down
21 changes: 9 additions & 12 deletions templates/documentation/sdks/player/apivideo-android-player.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ title: "api.video Android Player"
slug: "apivideo-android-player"
hidden: false
metadata:
description: "The official api.video Android Player component for api.video. [api.video](https://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."
description: "The official api.video Android Player component for api.video. [api.video](https://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."
---

api.video Android Player
==============

[api.video](https://api.video) is the video infrastructure for product builders. Lightning fast
[api.video](https://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.

Expand All @@ -29,7 +29,7 @@ your app.

# Project description

Easily integrate a video player for videos from [api.video](https://api.video) in your Android
Easily integrate a video player for videos from [api.video](https://api.video/) in your Android
application.

# Getting started
Expand Down Expand Up @@ -58,20 +58,17 @@ In your `AndroidManifest.xml`, add the following code in `<manifest>`:
## Retrieve your video Id

At this point, you must have uploaded a least one video to your account. If you haven't
see [how to upload a video](https://docs.api.video/docs/upload-a-video-regular-upload). You'll need
see [how to upload a video](https://docs.api.video/vod/upload-a-video-regular-upload/). You'll need
a video Id to use this component and play a video from api.video. To get yours, follow these steps:

1. [Log into your account](https://dashboard.api.video/login) or create
one [here](https://dashboard.api.video/register).
2. Copy your API key (sandbox or production if you are subscribed to one of
our [plan](https://api.video/pricing)).
3. Go to [the official api.video documentation](https://docs.api.video/docs).
4. Log into your account in the top right corner. If it's already done, be sure it's the account you
want to use.
5. Go to API Reference -> Videos -> [List all videos](https://docs.api.video/reference/list-videos)
6. On the right, be sure the "Authentication" section contains the API key you want to use.
7. Generate your upload token by clicking the "Try It!" button in the right section
8. Copy the "videoId" value of one of elements of the response in the right section.
3. Go to [the official api.video documentation](https://docs.api.video/).
4. Go to API Reference -> Videos -> [List all videos](https://docs.api.video/reference/api/Videos#list-all-video-objects)
5. Create a `get` request to the `/videos` endpoint based on the reference, using a tool like Postman.
6. Copy the "videoId" value of one of elements of the API response.

Alternatively, you can find your video Id in the video details of
your [dashboard](https://dashboard.api.video).
Expand Down Expand Up @@ -137,7 +134,7 @@ On the first run, you will have to set your video Id:
# Documentation

* [API documentation](https://apivideo.github.io/api.video-android-player/)
* [api.video documentation](https://docs.api.video)
* [api.video documentation](https://docs.api.video/)

# Dependencies

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ title: "api.video Flutter Player"
slug: "apivideo-flutter-player"
hidden: false
metadata:
description: "The official api.video Flutter Player component for api.video. [api.video](https://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."
description: "The official api.video Flutter Player component for api.video. [api.video](https://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."
---

api.video Flutter Player
==============

[api.video](https://api.video) is the video infrastructure for product builders. Lightning fast
[api.video](https://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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ title: "api.video hls.js analytics plugin"
slug: "apivideo-hlsjs-analytics"
hidden: false
metadata:
description: "The official api.video hls.js analytics plugin for api.video. [api.video](https://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."
description: "The official api.video hls.js analytics plugin for api.video. [api.video](https://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."
---

api.video hls.js analytics plugin
==============

[api.video](https://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.
[api.video](https://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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ title: "api.video Player analytics plugin"
slug: "apivideo-player-analytics"
hidden: false
metadata:
description: "The official api.video Player analytics plugin for api.video. [api.video](https://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."
description: "The official api.video Player analytics plugin for api.video. [api.video](https://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."
---

api.video Player analytics plugin
==============

[api.video](https://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.
[api.video](https://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

Expand Down
4 changes: 2 additions & 2 deletions templates/documentation/sdks/player/apivideo-player-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ title: "api.video Player SDK"
slug: "apivideo-player-sdk"
hidden: false
metadata:
description: "The official api.video Player SDK for api.video. [api.video](https://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."
description: "The official api.video Player SDK for api.video. [api.video](https://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."
---

api.video Player SDK
==============

[api.video](https://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.
[api.video](https://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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ title: "api.video React Native Player"
slug: "apivideo-react-native-player"
hidden: false
metadata:
description: "The official api.video React Native Player for api.video. [api.video](https://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."
description: "The official api.video React Native Player for api.video. [api.video](https://api./) 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."
---

api.video React Native Player
==============


[api.video](https://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.
[api.video](https://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

Expand Down
4 changes: 2 additions & 2 deletions templates/documentation/sdks/player/apivideo-react-player.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ title: "api.video React Player component"
slug: "apivideo-react-player"
hidden: false
metadata:
description: "The official api.video React Player component for api.video. [api.video](https://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."
description: "The official api.video React Player component for api.video. [api.video](https://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."
---

api.video React Player component
==============


[api.video](https://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.
[api.video](https://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

Expand Down
Loading

0 comments on commit 8173307

Please sign in to comment.