This PR introduces working with instance as a url parameter. Currently, the structure is like this:
[baseURL]/[view]?backend=[backend URL]&id=[video uuid]/
If there is no selected instance the user will be redirected to the first one on the list (peertube nightly).
You can now send links to videos however they will not autoplay due to browser policies.
See deployed at https://mykhailodanilenko.github.io/web-client/
π Motivation and Context
73, #67, #75, however, the "startTime" url param for video page needs a small refinement so I didn't include it in this iteration
π§ͺ How Has This Been Tested?
on web - desktop + mobile, on Expo Go - ios & android, didn't test deeplinking as we haven't configured any mobile platforms yet
π¦ Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
β Checklist (copied from README)
[x] Squash your changes into a single clear and thoroughly descriptive commit, split changes into multiple commits only when it contributes to readability
[x] Reference the GitHub issue that you are contributing on in your commit title or body
[x] Sign your commits, as this is required by the automated GitHub PR checks
[x] Ensure that the changes adhere to the project code style and formatting rules by running npx eslint . and npx prettier --check ../ from the ./OwnTube.tv/ directory (without errors/warnings)
[x] Include links and illustrations in your pull request to make it easy to review
[x] Request a review by @ar9708, @OGTor, @tryklick and @mblomdahl
π Description
This PR introduces working with instance as a url parameter. Currently, the structure is like this:
[baseURL]/[view]?backend=[backend URL]&id=[video uuid]/
If there is no selected instance the user will be redirected to the first one on the list (peertube nightly). You can now send links to videos however they will not autoplay due to browser policies. See deployed at https://mykhailodanilenko.github.io/web-client/π Motivation and Context
73, #67, #75, however, the "startTime" url param for video page needs a small refinement so I didn't include it in this iteration
π§ͺ How Has This Been Tested?
on web - desktop + mobile, on Expo Go - ios & android, didn't test deeplinking as we haven't configured any mobile platforms yet
π¦ Types of changes
β Checklist (copied from README)
npx eslint .
andnpx prettier --check ../
from the./OwnTube.tv/
directory (without errors/warnings)