Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attached Video Viewer #2805

Closed
wants to merge 25 commits into from
Closed

Attached Video Viewer #2805

wants to merge 25 commits into from

Conversation

goldbattle
Copy link
Contributor

@goldbattle goldbattle commented May 22, 2021

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

I have been experimenting with including an internal / attached video player which would be docked alongside the chat. This would allow for a pretty seamless viewing and chatting experience if possible. I have gone and done a quick demo of what this could look like and it seems to only be a few modifications so far.

Originally I stumbled upon the StreamLinkerino project, but I want to make it a more first class feature. Here is an example screenshot of what I have so far:

image
image

What works:

  • Clicking the "three dots" menu option in the split opens a second window
  • This window will then stream via streamlink and the mpv player
  • Switching between tabs will change the stream to match

My current issues:

  • Non-hacky storage of variables / widget (where would I store these variables?)
  • How to "attach / dock" this second window to the chat so it resizes and min/maximized with the main window (how to handle the layout?)
  • Volume control (probably not very likely with how the stream is attached to the qt window)

Any suggestions or comments on directions would be most welcomed. Thanks again for the great project.

Edit: You can try out the preliminary builds here:
https://github.com/goldbattle/chatterino2/actions/runs/867344185

@TranRed
Copy link
Contributor

TranRed commented May 23, 2021

* Switching between tabs will change the stream to match

This sounds really bad for proxy and offline chatters, who chat in other channels while watching streams. Also what will it do if you have 2 or more channels in a tab. Which one will it open? The first one?

@goldbattle
Copy link
Contributor Author

goldbattle commented May 23, 2021

If the tab is a non-live stream, the stream will still be the last live stream a person clicks on.
Then if a user clicks on another live stream then it will switch.

I should make this a toggle in the settings to disable auto switch.
The original motivation was to clearly keep the video in sync with what chat you seeing.
image

pajlada and others added 4 commits May 23, 2021 23:10
Co-authored-by: Paweł <zneix@zneix.eu>
Co-authored-by: Leon Richardt <leon.richardt@gmail.com>
Co-authored-by: lyx0 <stefan.parfuss@protonmail.ch>
Co-authored-by: lyx0 <66651385+lyx0@users.noreply.github.com>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
* optimize chatter list

* changelog

* Fix tests

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
@zneix zneix self-requested a review May 26, 2021 18:29
dependabot bot and others added 13 commits May 29, 2021 11:06
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.5 to 2.1.6.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](actions/cache@v2.1.5...v2.1.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [ilammy/msvc-dev-cmd](https://github.com/ilammy/msvc-dev-cmd) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/ilammy/msvc-dev-cmd/releases)
- [Commits](ilammy/msvc-dev-cmd@v1.8.0...v1.8.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Paweł <zneix@zneix.eu>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This can be done by right-clicking the tab area or pressing the keyboard shortcut (default: Ctrl+U).

Co-authored-by: Leon Richardt <leon.richardt@gmail.com>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
* Fixed OpenSSL 1.1.1 version

* Switched to sourceforge downloads from bintray as it has been shutdown

* FeelsDankMan how to english
Copy link
Collaborator

@zneix zneix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes to build.yml, .gitignore and BUILDING_ON_WINDOWS.md are totally unrelated, please revert those.

@goldbattle
Copy link
Contributor Author

I screwed it up as I was experimenting with doing rebase merging from the master branch.
I will re-open a new PR after I make some more changes and experiment a bit more.
Sorry for the notifications.

@goldbattle goldbattle closed this Jun 2, 2021
@goldbattle goldbattle deleted the master branch June 2, 2021 19:48
@goldbattle goldbattle mentioned this pull request Jun 3, 2021
1 task
@goldbattle
Copy link
Contributor Author

I created another non-draft PR here, sorry to those that got the extra ping in this one.
#2854

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants