Commit graph

1456 commits

Author SHA1 Message Date
DispatchCommit 1e0afd1b86 Add live detection to livestream page
- reduce interval from 15 seconds to 10 seconds
2021-03-22 15:30:24 -07:00
DispatchCommit 816bd07570 Improve live detection on channel page
Call bitwave live API immediately on page load.
Reduce poll to 15 second interval
Fix incorrect data parsing
2021-03-22 15:30:23 -07:00
DispatchCommit 76ac4c19b9 Hookup new live detection API 2021-03-22 15:30:22 -07:00
Sean Yesmunt ca569dc4a7 wire up bitwave api 2021-03-22 15:30:21 -07:00
Sean Yesmunt 5aaa038d3f random fixes for livestreaming 2021-03-22 15:30:19 -07:00
Sean Yesmunt 204f24354f hide date for livestream claims 2021-03-22 15:30:17 -07:00
Sean Yesmunt 0f24f3fdfd use has_no_source to check if claim is a livestream 2021-03-22 15:30:16 -07:00
Sean Yesmunt e5fc28821a add ENABLE_NO_SOURCE_CLAIMS to config
this sets has_source:true if the variable is true to non-odysee apps won't be shown livestream claims
2021-03-22 15:30:15 -07:00
Sean Yesmunt dcd0528fda disconnect from comment websocket when leaving livestream page 2021-03-22 15:30:14 -07:00
Sean Yesmunt 3644eed49b fix first livestream comment not being displayed 2021-03-22 15:30:13 -07:00
Sean Yesmunt 3aead19b47 style cleanup 2021-03-22 15:30:11 -07:00
DispatchCommit 874188a973 Allow for specifying a type query to pre-select upload type
e.g. https://odysee.com/$/upload?type=livestream
2021-03-22 15:30:10 -07:00
DispatchCommit 92e320e384 Fix livestream Title Section 2021-03-22 15:30:06 -07:00
DispatchCommit 2ac5ad0201 fix minor bugs
- remove anon option in channel dropdown when livestream tab is selected
- attempt to fill publish form with current active channel name just prior to publishing to (edge condition)
  - edge condition occurs when user fills out form fully. User switches to Post (which allows anon in drop down selector). User selects Anon channel, then switches back to the livestream tab. The form was previously updated with `channel: undefined` but does not get changed when clicking the livestream tab. So we just updated the form one last time prior to publishing as a livestream
- Show most recent livestream claim on livestream setup page instead of first livestream claim
2021-03-22 15:30:05 -07:00
Sean Yesmunt da3e3c8404 add new 'livestream' publish mode 2021-03-22 15:30:03 -07:00
DispatchCommit 40035ae4ad fix lbry-redux import typo 2021-03-22 15:30:02 -07:00
Sean Yesmunt 73f593ddb3 bring in livestream changes from odysee 2021-03-22 15:30:01 -07:00
DispatchCommit 02c0882d90 Create livestream page and generate signed streamkey 2021-03-22 15:29:59 -07:00
DispatchCommit 51a940ed62 Add Go Live to header dropdown 2021-03-22 15:29:58 -07:00
infinite-persistence 5d40a4c9f6 Markdown editor: Remove character limit
## Issue
Closes 5687: Ensure post mode has no text limit

## Changes
- `type="markdown"` can now have unlimited length if clients don't define `textAreaMaxWidth`.
- The internal default limit of 2000 is narrowed down to `type=textarea`.
2021-03-21 21:00:16 -04:00
Sean Yesmunt 1aaaf118c5 remove signup nudge in sidebar for lbry.tv 2021-03-21 20:48:27 -04:00
DispatchCommit 954966abbb fix linting errors 2021-03-21 20:36:50 -04:00
r0ckinn 6b8554517c also add keybinds for volume 2021-03-21 20:36:50 -04:00
r0ckinn 6b3dce0450 improve keyboard shortcuts 2021-03-21 20:36:50 -04:00
infinite-persistence ede83f358d Fix autoplay infinite loop
## Issue
Closes 3661: Autoplay + Related go into loops ( infinite ) sometimes

## GUI
Push the actual "next" item into the top of the list.

## History search
1. Skip if the next item is itself.
2. The URL stored in the history comes in various forms, so a direct comparison won't work.
  - There's also a weird case where the URL differs by just a little (p.09 vs p-09), but with the same claim ID:

lbry://vacuum-tube-computer-p.09-–-building#5212bc8bc63c373e2bf1ebc5b765595ed7b6514d
lbry://vacuum-tube-computer-p-09-–-building#5212bc8bc63c373e2bf1ebc5b765595ed7b6514d

Check the claim_id as well to cover cases like these.
2021-03-21 20:15:33 -04:00
infinite-persistence 59b7975085 Fix lint 2021-03-21 20:15:33 -04:00
Sean Yesmunt 63453284dd add lbry.tv is shutting down message 2021-03-19 17:58:05 -04:00
Sean Yesmunt a8cc4cefb0 remove has_source param until wallet server bug is fixed 2021-03-19 11:57:10 -04:00
infinite-persistence 895f25cc8c i18n: Reward cards
Note that `subtitle` doesn't need the translation macro as `LbcMessage` would do it.
2021-03-19 11:27:10 -04:00
Sean Yesmunt c08e4eed9c prevent release notes from extending beyond height of app 2021-03-18 18:17:10 -04:00
Sean Yesmunt e967f2e1ad add ENABLE_NO_SOURCE_CLAIMS to config
this sets has_source:true if the variable is true to non-odysee apps won't be shown livestream claims
2021-03-18 12:07:27 -04:00
Sean Yesmunt 0eaa5dadcf bump channel search limit to 50 2021-03-17 16:19:13 -04:00
Sean Yesmunt 2d6292bd6f don't show placeholder if claim already exists
so the claim is shown even if we re-resolve it
2021-03-17 16:19:13 -04:00
Sean Yesmunt 19023a31d0 ensure lbrytv api status is web only 2021-03-16 22:19:03 -04:00
Sean Yesmunt 7b446d1982 show correct amount on post staked amount 2021-03-16 14:38:33 -04:00
infinite-persistence b467873f0b Notification bell shows is_read, not is_seen
## Issue
Closes 5664: notification bell shows is_read, not is_seen
2021-03-16 11:39:52 -04:00
infinite-persistence ddc5a65c49 Settings button: Fix typo that's causing error message.
Not really sure if the attribute is needed or not, but retained just in case.
2021-03-16 11:27:38 -04:00
Sean Yesmunt af4e1afd59 bump lbry-sdk and fix build warning 2021-03-15 16:19:13 -04:00
Victor Shyba 1251262e22 status -> wallet_status on wallet_status call 2021-03-15 16:19:13 -04:00
Victor Shyba 8a016eccb2 remove check for online 2021-03-15 16:19:13 -04:00
Victor Shyba 588fc7a047 fix for connection_status -> wallet.connected 2021-03-15 16:19:13 -04:00
infinite-persistence c7d7bef1d7 vjs: Narrow down changes to just playback rate
## Changes
- Restore original code for how Volume and Mute is restored.
- Playback rate will be only change that gets "re-restored" in "loadedmetadata".
2021-03-15 15:03:15 -04:00
infiinte-persistence 83912627de vjs: Fix 'Video-setting persistence broken'
## Issue
5513: Video-setting persistence broken

## Notes
- Per videojs recommendation, the setting-restoration should be done after the video has been loaded, so the action was moved to `loadedmetadata`. This fixed the volume slider problem, and should have fixed the playbackRate too.
- For playbackRate, there is another special case where it gets reset to 1 (refer to comments in code).
2021-03-15 15:03:15 -04:00
infiinte-persistence 09c1cfeb8f vjs: Fix 'Video showing previous audio clip's thumbnail instead'
## Issue
5450: Video showing previous audio clip's thumbnail instead

## Notes
`createVideoPlayerDOM` depends on `isAudio`
2021-03-15 15:03:15 -04:00
infiinte-persistence 9ce6ecc923 Lint fixes
I just wanted to make the lint fixes in a separate commit to make the diff's for the next commit clearer.
2021-03-15 15:03:15 -04:00
infinite-persistence 9fadf3850f Take 'incognito' into account when reposting
## Issue
Fixes 5661: can't choose anonymous from channel on repost page
2021-03-15 14:22:49 -04:00
infinite-persistence d91530b0c8 Markdown: don't convert '[label](uri)' to embeds.
## Issue
Closes 4936: Don't process markdown formatting as lbry:// url previews

## Approach
Preamble:
 - We want to convert plain `https://lbry.tv/befreeonlbry` to an embed, but not `[blah](https://lbry.tv/befreeonlbry)`.
 - At the markdown/remark level, both formats resolve to the same node type, having a `link` and a `text`, with the 'text' being auto-filled with the `href` if there is no label.

Fix by assuming the link is the non-labelled format if the `text` is the same as `href`.

This opens up one corner-case that we can't handle, which is when the user explicitly set the label using the href, e.g. `[https://lbry.tv/befreeonlbry](https://lbry.tv/befreeonlbry)`. This will still resolve to an embed. There's not enough data at the parsed level differentiate this case -- we would need to parse the content ourself before `remark`, which I think is not worth it.

## Aside/Reminder
If you see that the link doesn't resolve to an embed regardless of the format used, that's probably just due to `5636: Disable video previews in comments/posts made by channels below a certain channel staked level`
2021-03-15 13:31:17 -04:00
DispatchCommit 7ddace3266 Fix invalid DOM 2021-03-15 13:19:07 -04:00
Sean Yesmunt 7dccba5813 only use new post styling for markdown 2021-03-12 11:54:37 -05:00
infinite-persistence 469e9cddc0 Handle remaining usages of MarkdownPreview
- Channel About
  - description: seems handy to have a preview, so pulled in the "allowed" logic.
  - email: shouldn't render preview at all
  - website: shouldn't render preview at all

- Publish Preview:
  - description: there's not enough height anyway, so don't render preview.
2021-03-12 10:38:16 -05:00