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

Scene card video player #138

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ Category|Plugin Name|Description|Minimum Stash version
--------|-----------|-----------|---------------------
Kodi|[Kodi Helper](scripts/kodi-helper)|Generates `nfo` and `strm` for use with Kodi.|v0.7
Maintenance|[Stash Sqlite Renamer](scripts/Sqlite_Renamer)|Renames your files using stash's metadata.|v0.7

## Custom Javascripts
Category|Plugin Name|Description|Minimum Stash version
--------|-----------|-----------|---------------------
Scene Player|[SceneCardVideoPlayer](/scripts/SceneCardVideoPlayer)|Create a "Play" button for each scene in the list.|v0.18
29 changes: 29 additions & 0 deletions scripts/SceneCardVideoPlayer/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Scene Card Video Player
Sorry but this is not the best place for the script. New and updated script will go to: <br>
https://github.com/philpw99/StashCustomJavascripts <br>
I think a separate repo is the best for this script and other scripts I might make in the future.
<p>

<img src="https://user-images.githubusercontent.com/22040708/211264163-5f25f566-8217-4334-9df6-ca742a5e92c5.png" width=500 />
<p>
Inspired by clangmoyai's IINA plugin. I added more cross platform support. <br>
It is tested fully in windows 11 environment. Hopefully it will work in others. <br>

* The script will add a simple "Play" button for each scene card. You click on it, and the video get played.<br>
You click on the video, then it will disappear. You are back to the scene list. <br>
* To install it, copy and paste the code from the pwPlayer.js into Stash->Settings->Interface->Custom Javascript.<br>
Then refresh the browser.
* Well, it's supposed to be this simple. Don't know why Stash guys make it so complicated. <br>
So, enjoy play with it. In the future I will try to make it work with DeoVr.

### Updates
#### 1/09/2023
* Move file info to display when mouse hovers over play buttons.
#### 1/10/2023
* Improve the "wait for element" to preview video only.
* Now when play, the top nav bar will be hidden as well.
#### 1/11/2023
* Add "browser" mode and "player" mode. Player mode is useful for using device's internal players, while browser mode works most of the time.
* Add Oculus browser detection and special handling of it.
<p>
Finally, if you use "player" mode, you will be happy to use Quest 2 browser to watch Stash, as I am very happy now.
Loading