Commit Graph
100 Commits
Author SHA1 Message Date
Gabe KangasandGitHub f8712856af Trying to fix commits not happening with js 2020-10-30 16:04:03 -07:00
Gabe KangasandGitHub 41b694d292 Add auto-closing stale issues and PRs
Keep the repo clean.
2020-10-30 15:03:48 -07:00
Gabe Kangas 2131a203ed Add get log apis to doc 2020-10-29 18:41:21 -07:00
Gabe Kangas de88a34683 Use a real URL 2020-10-29 18:26:10 -07:00
Gabe Kangas 5c6f5fc697 Add logging admin APIs for dashboard #114 2020-10-29 18:17:04 -07:00
Gabe KangasandGitHub 3963568951 Stop rtmp from reaching back into core (#290)
* Stop rtmp from reaching back into core.

* Un-export since these functions no longer need to be public
2020-10-29 14:09:28 -07:00
Gabe KangasandGitHub 72918a62d8 Update owncast-release-checklist.md 2020-10-29 00:31:09 -07:00
Gabe KangasandGitHub 6fb006f7e5 Update package.json 2020-10-28 14:59:17 -07:00
Gabe KangasandGitHub 6504736c4b Update javascript-packages.yaml 2020-10-28 14:58:33 -07:00
Gabe KangasandGitHub 2b555ce42f Test commit to see if workflow fires propertly 2020-10-28 14:56:21 -07:00
Gabe KangasandGitHub d173b93204 Update javascript-packages.yaml 2020-10-28 14:54:31 -07:00
Gabe Kangas 6c5253c7e0 Do not panic. Closes #295 2020-10-26 18:58:54 -07:00
Gabe Kangas 2c3da709f5 Add some additional issue template items 2020-10-26 15:03:34 -07:00
Gabe KangasandGitHub 18829209cb Add issue template for public release checklist 2020-10-26 12:59:00 -07:00
Gabe Kangas 4b70edac83 Fill in all the values for the admin config api 2020-10-26 09:14:20 -07:00
Gabe Kangas 34fe55b5a3 Add getter for stream variant encoder preset w/ test 2020-10-26 09:14:20 -07:00
19e86b8c04 First pass at centralized database reference. Closes #282 (#289)
* First pass at centralized database reference. Closes #282

* Add verbose logging option to launch.json

* Clear current broadcaster on stream end. Closes #285

* Fix typo in verbose launch args

* Add support for purging tailwind styles. For #224

* Don't need to pass db as param since it is stored

* Commit updated Javascript packages

Co-authored-by: Owncast <owncast@owncast.online>
2020-10-26 08:55:31 -07:00
Gabe KangasandGitHub 6d0aa4bdd1 Create a production build of Tailwind at release time (#292)
* Add support for purging tailwind styles. For #224

* Build prod version of tailwind in build script
2020-10-26 08:49:33 -07:00
Gabe Kangas 2ee09f9697 Add stream key to config admin api 2020-10-25 22:17:56 -07:00
Gabe Kangas 903c977b13 Add GetAdminStatus endpoint that is compatible with admin auth 2020-10-25 18:56:53 -07:00
Gabe Kangas 8ed21d303f Fix typo in verbose launch args 2020-10-24 16:01:49 -07:00
Gabe Kangas 32c7e3fa34 Clear current broadcaster on stream end. Closes #285 2020-10-24 14:58:34 -07:00
Gabe Kangas de40da1cf0 Add verbose logging option to launch.json 2020-10-24 14:32:42 -07:00
Gabe Kangas 0374bd262f Update script to support 32bit linux binaries. Closes #288 2020-10-24 13:52:59 -07:00
2839a5e236 Custom thumbnail poster component (#281)
* Custom thumbnail poster component

* add opacity transition to thumbnail img

* fix some videoonly styles

* move video styles to video.css

* make component out of image layers; put inline styles into css

* cleanup

* update videoonly ; don't render poster if video player, remove dom modification in player

* revert interval

Co-authored-by: Ginger Wong <omqmail@gmail.com>
2020-10-22 14:14:44 -07:00
Gabe Kangas ebed81c81e Test update of api doc 2020-10-21 22:41:57 -07:00
Gabe Kangas 294339b496 Fix typo 2020-10-21 22:39:32 -07:00
Gabe Kangas 0558f4f699 Mark APIs as pre-release 2020-10-21 22:38:02 -07:00
Gabe Kangas 03151f1dd1 Render api documentation when openapi.yaml is updated 2020-10-21 22:36:19 -07:00
Gabe Kangas 2b8aea8797 Support a local working directory copy of ffmpeg. Closes #276 2020-10-21 21:47:42 -07:00
Gabe Kangas 131675bc03 Split out setting broadcaster details into its own file 2020-10-21 17:07:00 -07:00
72de85bc10 Add Javascript update Github Actions workflow (#275)
* JS update workflow

* Update package.json to see if workflow fires properly

* Commit updated Javascript packages

Co-authored-by: Owncast <owncast@owncast.online>
2020-10-20 18:38:37 -07:00
Gabe Kangas c6eeb1d208 jesus stop commiting node_modules you stupid github action 2020-10-20 15:24:40 -07:00
Gabe Kangas fb4a822cd8 Removing javascript workflow because it keeps commiting node_modules to the repo 2020-10-20 00:29:33 -07:00
Gabe Kangas 205ef8926e These files should not be added 2020-10-19 22:22:33 -07:00
Gabe Kangas 226242f07b Another test of the workflow 2020-10-19 22:16:54 -07:00
Gabe Kangas 2987b6a87c Update workflow 2020-10-19 22:16:37 -07:00
Gabe Kangas 3f50ce9bfc Revert "Commit updated Javascript packages"
This reverts commit a88734348a.
2020-10-19 22:14:27 -07:00
Gabe Kangas 5d03ecb694 Test workflow commit 2020-10-19 22:03:24 -07:00
Gabe Kangas 22f37df2a6 Trying a new github workflow to install javascript packages 2020-10-19 21:57:10 -07:00
Gabe Kangas 1290c757a2 Add cleanup to test content script 2020-10-19 21:42:52 -07:00
Gabe Kangas ea9579d899 Add multiple variants to the transcoder test 2020-10-19 21:34:42 -07:00
Gabe Kangas 7dcc89a841 Add system chat message support to messages query 2020-10-16 17:50:00 -07:00
Gabe Kangas f4815e331c Update chat styling 2020-10-16 17:46:44 -07:00
Gabe Kangas 1b821e4c4e Add a link to rocket.chat in the contact section of the readme 2020-10-16 16:12:49 -07:00
Gabe Kangas 3812e6345f Fix typo 2020-10-16 13:57:23 -07:00
Gabe Kangas 30c9bbe966 Size logo properly with the user image 2020-10-16 13:53:43 -07:00
Gabe Kangas f9039acadb Use SVG for default logos. Closes #261 2020-10-16 13:38:30 -07:00
Gabe Kangas 90ddf4f1b6 Remove yp section from config since we are not ready for it yet 2020-10-16 13:23:05 -07:00
Gabe Kangas 627f6ebbe3 Remove rogue file 2020-10-16 11:51:29 -07:00
Gabe Kangas 73ca2c2464 We use npx to run snowpack so it is not needed to install 2020-10-16 11:49:41 -07:00
Gabe Kangas 3ff993c2bc Stop logging every file that is uploaded 2020-10-16 10:08:23 -07:00
Gabe Kangas b9a80709ab Decrease the amount of time before the stream is made available to the player 2020-10-16 10:08:23 -07:00
Gabe Kangas eb0ee4dd8a Catch db error and show frienlier message. Closes #252 2020-10-15 17:57:32 -07:00
Gabe Kangas 8f740c4cb6 Cleanup private and optinally public segments on a timer instead of after every save. Closes #254 2020-10-15 17:50:17 -07:00
Gabe Kangas 2d71337146 Rename functions to be clearer that it is for offline cleanup 2020-10-15 16:17:33 -07:00
Gabe Kangas d403fd20f1 Do not auto-delete file on storage save. Add firing cleanup method 2020-10-14 17:32:02 -07:00
Gabe Kangas 2647b3fac8 Remove unused value 2020-10-14 17:00:35 -07:00
Gabe Kangas 5e45c53b87 Fix YP not being fired post-merges 2020-10-14 16:46:04 -07:00
Gabe Kangas 97fa8d70a7 Configure dependabot 2020-10-14 14:40:44 -07:00
Gabe Kangas fc988e1846 Setup dependabot for 3rd party go and javascript code 2020-10-14 14:10:38 -07:00
Gabe KangasandGitHub 6ea9affce0 HLS video handling/storage/state refactor (#151)
* WIP with new transcoder progress monitor

* A whole different WIP in progress monitoring via local PUTs

* Use an actual hls playlist parser to rewrite master playlist

* Cleanup

* Private vs public path for thumbnail generation

* Allow each storage provider to make decisions of how to store different types of files

* Simplify inbound file writes

* Revert

* Split out set stream as connected/disconnected state methods

* Update videojs

* Add comment about the hls handler

* Rework of the offline stream state.  For #85

* Delete old unreferenced video segment files from disk

* Cleanup all segments and revert to a completely offline state after 5min

* Stop thumbnail generation on stream stop. Copy logo to thumbnail on cleanup.

* Update transcoder test

* Add comment

* Return http 200 on success to transcoder. Tweak how files are written to disk

* Force pixel color format in transcoder

* Add debugging info for S3 transfers. Add default ACL.

* Fix cleanup timer

* Reset session stats when we cleanup the session.

* Put log file back

* Update test

* File should not be a part of this commit

* Add centralized shared performance timer for use anywhere

* Post-rebase cleanup

* Support returning nil from storage provider save

* Updates to reflect package changes + other updates in master

* Fix storage providers being overwritten

* Do not return pointer in save. Support cache headers with S3 providers

* Split out videojs + vhs and point to specific working versions of them

* Bump vjs and vhs versions

* Fix test

* Remove unused

* Update upload warning message

* No longer valid comment

* Pin videojs and vhs versions
2020-10-14 14:07:38 -07:00
Gabe KangasandGitHub 64a85e68aa Update extra page content API (#240)
* Mark change stream key api as pre-release

* Add API for changing extra page content. Renanme usercontent -> pagecontent. closes #236
2020-10-14 09:38:48 -07:00
Gabe KangasandGitHub d7c3991b59 Render and sanitize chat messages server-side. (#237)
* Render and sanitize chat messages server-side. Closes #235

* Render content.md server-side and return it in the client config

* Remove showdown from web project

* Update api spec

* Move example user content file
2020-10-13 16:45:52 -07:00
Gabe Kangas 9eab6d7553 Specify that these APIs are for v0.0.3 2020-10-12 10:52:12 -07:00
Gabe Kangas 962267106e Update demo links 2020-10-11 16:55:39 -07:00
Gabe Kangas 250dcf1d75 make logo fit size of user image avatar circle. closes #230 2020-10-08 21:15:46 -07:00
Gabe Kangas ce14e0d0a7 Remove additional viewer counts from status bar. Closes #155 2020-10-08 16:39:11 -07:00
Gabe Kangas 2aa9a86e3d Allow non-root paths for index.html when returning server-rendered metadata page. Closes #227 2020-10-08 16:34:40 -07:00
Gabe Kangas dfeba53f08 Reduce the amount of time between start of stream and when we show as online. Can bump this back up if needed. 2020-10-08 14:27:42 -07:00
Gabe Kangas 168ba9277e Do not use loopback as an example ip 2020-10-07 23:27:42 -07:00
Gabe Kangas aac7fa2476 Show YP configuration in the config API 2020-10-07 22:42:14 -07:00
Gabe Kangas 268085e41f I thought I already fixed this. Guess it got lost in a merge. 2020-10-07 20:53:01 -07:00
Gabe Kangas a7d9e2719a Do not try to split ip and port of x-forwarded-for addresses 2020-10-07 20:42:02 -07:00
Gabe Kangas bcf4cb09e7 Break rtmp read loop after disconnect 2020-10-07 19:59:55 -07:00
Gabe Kangas 06f8a01d5e Update our api definitions 2020-10-07 17:24:20 -07:00
Gabe Kangas 003648ed61 Update .gitignore 2020-10-07 00:28:43 -07:00
Gabe Kangas a5e2b4b934 Remove files 2020-10-07 00:27:41 -07:00
Gabe KangasandGitHub d7e355bce1 Connected clients admin API (#217)
* Add support for ending the inbound stream. Closes #191

* Add a simple success response to API requests

* Connected clients API with geo details

* Post-rebase cleanup

* Make setting and reading geo details separate operations to unblock and speed up

* Rename file

* Fire geoip api call behind goroutine

* Add comment

* Post-rebase fixes

* Add support for the MaxMind GeoLite2 GeoIP database
2020-10-06 23:14:33 -07:00
Gabe Kangas 0445274fbd Do not cache hls playlist files at all. Closes #229 2020-10-06 18:26:11 -07:00
Gabe KangasandGitHub 70c5a8b910 . -> · 2020-10-06 12:12:49 -07:00
Gabe Kangas d39003b88a Add 3rd party web dependency instructions 2020-10-06 10:51:37 -07:00
Gabe Kangas 06e5fe09f4 Fix leftover value when we would deal with cache duration in minutes instead of seconds 2020-10-06 09:17:41 -07:00
Gabe Kangas eb404fba34 Add attributes file 2020-10-05 23:16:11 -07:00
Gabe Kangas a3221aee19 Removing docs as submodule because that was an odd idea 2020-10-05 13:52:58 -07:00
Gabe Kangas dfc03bc027 Web modules were getting hit by .gitignore. Fixed 2020-10-05 08:43:38 -07:00
Gabe Kangas 5d530ca5a6 Missing showdown module import in app 2020-10-05 00:05:35 -07:00
Gabe KangasandGitHub 27a4c8c895 Move all remote dependencies to be local (#220)
* Experiment with javascript bundling

* Experiment with snowpack. Making progress

* Success!  Uses local js modules and assets and no cdns

* Missing local css
2020-10-04 18:43:31 -07:00
Gabe Kangas bb9c788306 Support CORS+Basic auth together 2020-10-03 23:06:48 -07:00
Gabe KangasandGitHub 922dfec77a Remove custom paths and add constants (#216) 2020-10-03 14:35:03 -07:00
Gabe KangasandGitHub e042c85f88 Hardware status admin api (#218)
* Add metrics for disk usage

* Add admin API for hardware metrics

* Fix error message alert
2020-10-02 12:18:08 -07:00
Gabe KangasandGitHub f4fdc6c951 Current broadcaster details admin api (#206)
* Add support for ending the inbound stream. Closes #191

* Add a simple success response to API requests

* Store inbound broadcast details for admin purposes

* Add /api/admin/broadcaster endpoint

* Reset broadcaster on disconnect

* Move controller to admin directory
2020-10-02 00:12:47 -07:00
Gabe KangasandGitHub 236f25b772 Viewer metrics api (#208)
* Add support for ending the inbound stream. Closes #191

* Add a simple success response to API requests

* Add viewers over time API

* Move controllers to admin directory
2020-10-02 00:06:14 -07:00
Gabe KangasandGitHub d8c43d2c56 Add server config admin endpoint (#207)
* Add support for ending the inbound stream. Closes #191

* Add a simple success response to API requests

* Add server config admin endpoint
2020-10-02 00:02:42 -07:00
Gabe KangasandGitHub 9b7784634b First pass at YP registration/configuration (#209)
* Spike: Ping YP service with instance details

* WIP: Add to the config to support YP

* Add YP response endpoint

* Handle YP errors. Use config. Off by default

* Show message about YP support on launch

* Add animated gif preview when generating thumb

* Increase quality of preview gif and only create it if YP is enabled

* Do not allow re-registration by clearing the key

* Make large and small logos actually structured

* Change log level

* Fix default YP service URL

* Point to default hostname

* Set default value for YP to false
2020-10-01 23:55:38 -07:00
Gabe Kangas 48c8cf5ed2 Admin API to change in-memory streaming key. Closes #212 2020-10-01 23:17:27 -07:00
Gabe KangasandGitHub 7b64fc7c30 Disconnect stream Admin API + HTTP Basic Auth (#204)
* Create http auth middleware

* Add support for ending the inbound stream. Closes #191

* Add a simple success response to API requests
2020-10-01 18:16:58 -07:00
Gabe Kangas f8068826ab Add script to build and bundle admin 2020-09-30 17:26:07 -07:00
Gabe KangasandGitHub 8aa5c33999 Update caching logic/headers (#184)
* Improve caching by adding etags and reducing the max-age

* Move caching into middleware. Set cache headers on segments
2020-09-30 14:14:39 -07:00
Gabe Kangas 6a0e8deae3 Use ISO date strings. Make random delays longer. 2020-09-28 21:39:56 -07:00