OwnTube-tv / web-client

Portable video client for PeerTube in React Native
https://owntube-tv.github.io/web-client/
The Unlicense
3 stars 12 forks source link

Store parameters such as instance link in URL #77

Closed mykhailodanilenko closed 3 months ago

mykhailodanilenko commented 3 months ago

πŸš€ 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)