{"id":24618188,"url":"https://github.com/matthewbub/video-player-manipulation","last_synced_at":"2026-04-07T23:31:13.157Z","repository":{"id":54147163,"uuid":"342413585","full_name":"matthewbub/video-player-manipulation","owner":"matthewbub","description":"Interactive comments tied to html5 video API","archived":false,"fork":false,"pushed_at":"2021-03-23T15:46:34.000Z","size":22247,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-29T18:37:55.817Z","etag":null,"topics":["javascript","video","vuejs"],"latest_commit_sha":null,"homepage":"https://video-player-92373.web.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matthewbub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-26T00:07:42.000Z","updated_at":"2023-08-27T10:43:50.000Z","dependencies_parsed_at":"2022-08-13T07:31:39.732Z","dependency_job_id":null,"html_url":"https://github.com/matthewbub/video-player-manipulation","commit_stats":null,"previous_names":["matthewbub/video-player-manipulation","9mbs/video-player-manipulation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/matthewbub/video-player-manipulation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewbub%2Fvideo-player-manipulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewbub%2Fvideo-player-manipulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewbub%2Fvideo-player-manipulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewbub%2Fvideo-player-manipulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matthewbub","download_url":"https://codeload.github.com/matthewbub/video-player-manipulation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewbub%2Fvideo-player-manipulation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31533823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","video","vuejs"],"created_at":"2025-01-24T23:51:09.830Z","updated_at":"2026-04-07T23:31:13.140Z","avatar_url":"https://github.com/matthewbub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Video Player Manipulation\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Framework-Vue-%2300AA74\" alt=\"Vue\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Style%20Guide-Airbnb-%23FB5057\" alt=\"Style Guide\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Hosting-Firebase-%23FFC932\" alt=\"Firebase Hosting\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Tested%20with-Jest-%23BF1524\" alt=\"Jest\" /\u003e\n\u003c/p\u003e\n\n\u003cp\u003eInteractive comments for the HTML5 Video API. Comments are tied to timestamp and sortable using the HTML5 Drag and Drop API.\u003c/p\u003e\n\u003c/br\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"hi-matbub.github.io\" target=\"_blank\"\u003e\n    \u003cimg src=\"./static/demo_app.gif\" alt=\"demo\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Table of Contents\n- [Setup](#setup)\n- [Getting up to speed](#getting-up-to-speed)\n- [Workflow](#workflow)\n- [Issues](https://github.com/hi-matbub/video-player-manipulation/issues)\n\n\n## Setup\n\nLocal setup is simple and only requires `npm`.\n\n```bash\n# clone repo\ngit clone https://github.com/hi-matbub/video-player-manipulation.git\n\n# cd to the repo\ncd video-player-manipulation \n\n# install deps\nnpm install\n\n# run dev server :tada:\nnpm run dev\n```\n\n**Additional available scripts** to be used throughout development and testing.\n\n```sh\n# execute test suites\nnpm run test\n\n# run eslint\nnpm run lint\n\n# run eslint and fix \nnpm run lint:fix\n```\n\n## Getting up to speed\n\n``` sh\nVideo Player Manipulation\n├── ...\n├── index.html\n├── package.json\n└── src\n    ├── App.vue\n    ├── main.js\n    ├── helpers/\n    └── MediaPlayer \n        ├── MediaPlayer.vue\n        ├── Comments.vue\n        └── Controls.vue\n```\n\nA _small but scaleable_ application, the video functionality can be broken down into 4 primary components. Below is a gist of what to expect inside each.\n\n#### [src/App.vue](./src/App.vue)\n\nContains the majority of major event listeners that get sent down the tree and are accessible via `this.$props`.\n- `timeupdate` to watch the current postion of the timestamp\n- `onresize` for dynamic page height. \n- `ended` to dectect end of playback.\n\n**Props accessbile from here**\n\nProp             | Type    | Description\n---              | ---     | ---\ncomments         | Array   | array of comments\ncurrentTimestamp | Number  | current timestamp of video\nvideoIsPlaying   | Boolean | detects if video is current playing\nwindowWidth      | Number  | detects current width of window\n\n\n#### [src/MediaPlayer/MediaPlayer.vue](./src/MediaPlayer/MediaPlayer.vue)\n\nHome of the `\u003cvideo\u003e` element. Uses `$props.currentTimestamp` to compare and watch the timestamp of each comment and reveal them accoring to a match in time. \n\n**See also  [/src/helpers/watchComments](/src/helpers/watchComments.js)**\n\u003c/br\u003e\n_Side note: a sorting algorithim to group comments according to moments would surely improve effenciy in a real world environment._ \n\nAlso contains the grid layout which is verbose and needs attention see #ISSUE for more details. \n\n#### [src/MediaPlayer/Comments.vue](./src/MediaPlayer/Comments.vue)\n\nUses `v-for` to list comments in a `div.container`. Drag and drop `methods` are housed here.\n\nAlso constantly watching the page width using the `$props.windowWidth` to handle draggablility as well as postion on presentation. _The position on presentation has it's [known issues](https://github.com/hi-matbub/video-player-manipulation/issues/37#issuecomment-791796281)_.\n\n#### Conditional logic\n**If** the screen is **greater than or equal to 960px**. \n- Comments will append to random locations throughout the grid. \n- Comments are `draggble`\n\n**Else** page width is **less than 960px**  \n- Comments append to the first grid container \"as-is\".\n- Comments are not `draggable`\n\n#### [src/MediaPlayer/Controls.vue](./src/MediaPlayer/Controls.vue)\n\nContains external video controls, easy to sync with video playback using `$props.currentTimestamp` and `$props.videoIsPlaying`.\n\n## Workflow \n\nThis project uses [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/), [conventional-commit-helper](https://github.com/hi-matbub/conventional-commit-helper) and is enforced with a [pre-commit hook](./.husky/pre-commit) to verify no lint errors and all tests are passing before each commit. As a final precautionary measure we have a GitHub workflow script to catch any lint errors for each push.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"mailto:6matbub@gmail.com\"\u003eMatthew Bub\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewbub%2Fvideo-player-manipulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthewbub%2Fvideo-player-manipulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewbub%2Fvideo-player-manipulation/lists"}