# Development Log: vimm-core Updates (February 8th 2025)  ## 🔧 Core Infrastructure Improvements ### Media Server Optimization - Fixed critical issue with duplicate Node Media Server (NMS) initialization that was causing EADDRINUSE errors on ports 1935 and 8000 - Implemented singleton pattern for NMS instance management to prevent duplicate server instances and undefined session issues - Centralized NMS instance management through new `src/server/nms-instance.js` module ### API Enhancements 1. New Endpoints: - Added `GET /api/streams` endpoint with comprehensive features: - Pagination support (`?page=X&limit=Y`) - Language filtering (`?language=en`) - Category filtering (`?category=gaming`) - Stream metadata including viewer counts and quality information - Implemented `GET /api/stream/:streamId/status` endpoint providing: - Basic stream metadata (title, description, category) - Real-time statistics (viewers, uptime) - Quality information (resolution, bitrate, codecs) - Stream health metrics ### Database Updates - Added `streamCategory` field to StreamKey model - Implemented corresponding database migration - Enhanced stream filtering capabilities based on new category field ### Frontend Improvements - Fixed ad container visibility issues on initial page load ### Bug Fixes - Resolved "Cannot convert undefined or null to object" error in streams endpoint - Fixed "Cannot read property of undefined" error in stream status endpoint - Corrected require path for streamStatusRouter - Fixed various migration-related issues ## 🔄 Migration Guide For developers working with the codebase: 1. Run the latest migrations to add the new `streamCategory` field 2. Update any direct NMS instance references to use the new singleton pattern 3. Review and update stream-related API calls to leverage new filtering capabilities ## 🔜 Next Steps - Continue monitoring NMS performance after singleton implementation - Gather feedback on new stream categorization system - Consider expanding stream metadata capabilities [View full commit history](https://github.com/VIMM-TV/vimm-core/commits/main) --- This development log summarizes the major updates from the recent commits to the vimm-core repository. The changes focus on improving server stability, enhancing the streaming API capabilities, and fixing critical infrastructure issues. Notable highlights include the Node Media Server optimization and the introduction of new stream management endpoints.
author | chiren | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
permlink | vimm-core-feb2025-update-node-media-server-optimization-and-streaming-api-enhancements | ||||||||||||
category | development | ||||||||||||
json_metadata | "{"app":"peakd/2025.1.3","format":"markdown","description":"Updates to VIMM's core: Node Media Server optimization, new streaming API endpoints, and enhanced categorization system.","tags":["development","streaming","api","nodejs","vimm"],"users":[],"image":["https://files.peakd.com/file/peakd-hive/chiren/23u6atCBapy1gjbfZJ5AxRwxSXZtQvKRy8DygsGnm7dh4uhsVftB35mdKQFeUgTNKGmsQ.png"]}" | ||||||||||||
created | 2025-02-08 15:05:00 | ||||||||||||
last_update | 2025-02-08 15:05:00 | ||||||||||||
depth | 0 | ||||||||||||
children | 1 | ||||||||||||
last_payout | 2025-02-15 15:05:00 | ||||||||||||
cashout_time | 1969-12-31 23:59:59 | ||||||||||||
total_payout_value | 2.366 HBD | ||||||||||||
curator_payout_value | 2.608 HBD | ||||||||||||
pending_payout_value | 0.000 HBD | ||||||||||||
promoted | 0.000 HBD | ||||||||||||
body_length | 2,651 | ||||||||||||
author_reputation | 45,363,105,266,100 | ||||||||||||
root_title | "Development Log: vimm-core Updates (February 8th 2025)" | ||||||||||||
beneficiaries |
| ||||||||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||||||||
percent_hbd | 10,000 | ||||||||||||
post_id | 140,647,363 | ||||||||||||
net_rshares | 12,697,110,640,715 | ||||||||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
jeffjagoe | 0 | 101,358,987,563 | 10% | ||
chiren | 0 | 53,404,205,726 | 100% | ||
detlev | 0 | 2,040,113,094,188 | 100% | ||
slayerkm | 0 | 2,308,040,161 | 40% | ||
morph | 0 | 597,090,253 | 5% | ||
derosnec | 0 | 847,490,515 | 4% | ||
paulag | 0 | 4,612,089,783 | 10% | ||
techken | 0 | 3,614,741,742 | 4% | ||
sirjaxxy | 0 | 554,458,077 | 50% | ||
sanjeevm | 0 | 3,748,177,055,438 | 70% | ||
gamesjoyce | 0 | 14,182,067,634 | 50% | ||
warjar | 0 | 461,627,466 | 100% | ||
etblink | 0 | 55,293,994,533 | 5% | ||
my-art-way | 0 | 27,249,352,637 | 100% | ||
niallon11 | 0 | 3,628,721,577 | 0.4% | ||
drax | 0 | 35,808,020,376 | 10% | ||
thatterrioguy | 0 | 4,116,886,852 | 100% | ||
insanityisfree | 0 | 477,225,119 | 25% | ||
calimeatwagon | 0 | 3,149,527,891 | 50% | ||
jlsplatts | 0 | 25,607,865,638 | 2% | ||
meno | 0 | 49,617,260,181 | 4% | ||
silasvogt | 0 | 1,192,504,283 | 50% | ||
socent | 0 | 1,582,668,714 | 15% | ||
bluefinstudios | 0 | 1,100,385,651 | 0.4% | ||
kernelillo | 0 | 4,519,716,139 | 100% | ||
helpie | 0 | 9,815,132,534 | 8% | ||
rcshad0w | 0 | 76,876,393,902 | 100% | ||
sneakyninja | 0 | 3,064,626,030 | 4.28% | ||
markaustin | 0 | 796,118,935 | 5% | ||
jrungi | 0 | 1,968,720,360 | 50% | ||
lethsrock | 0 | 616,068,298 | 50% | ||
soulturtle | 0 | 474,463,616 | 1.6% | ||
nerdtopiade | 0 | 24,800,887,436 | 51.75% | ||
dudeontheweb | 0 | 94,582,252,097 | 100% | ||
slacktmusic | 0 | 833,620,718 | 4% | ||
jakeeyexe | 0 | 941,782,754 | 50% | ||
tricki | 0 | 888,510,694 | 10% | ||
shmoogleosukami | 0 | 720,563,913,819 | 100% | ||
anderssinho | 0 | 10,770,026,702 | 51% | ||
macslin | 0 | 6,351,313,954 | 100% | ||
overmedia | 0 | 1,036,174,289 | 50% | ||
condeas | 0 | 418,026,588,473 | 20% | ||
pundito | 0 | 269,035,374,026 | 75% | ||
thisbejake | 0 | 3,038,216,726 | 50% | ||
ajaxalot | 0 | 4,098,437,561 | 5% | ||
jagoe | 0 | 660,555,725 | 10% | ||
letsplaywhatelse | 0 | 1,015,305,657 | 37.5% | ||
zipporah | 0 | 4,165,429,459 | 1.6% | ||
doomsdaychassis | 0 | 1,533,326,105 | 8% | ||
jeronimorubio | 0 | 804,895,232 | 8% | ||
shobek | 0 | 2,396,785,298 | 50% | ||
nebuladream | 0 | 1,826,606,230 | 50% | ||
kanrat | 0 | 27,208,617,974 | 37.5% | ||
m2nnari | 0 | 1,034,526,816 | 100% | ||
presidentslabber | 0 | 567,242,649 | 100% | ||
c0wtschpotato | 0 | 5,878,187,116 | 25% | ||
emitste | 0 | 719,981,718 | 50% | ||
naruitchi | 0 | 6,327,891,469 | 50% | ||
tsnaks | 0 | 9,577,698,655 | 100% | ||
joeytechtalks | 0 | 1,588,673,904 | 50% | ||
camuel | 0 | 10,749,043,059 | 25% | ||
retard-gamer-de | 0 | 646,021,305 | 25% | ||
youraverageguy | 0 | 647,942,458 | 50% | ||
dunite | 0 | 10,774,943,439 | 100% | ||
fw206 | 0 | 2,429,912,506,604 | 33% | ||
aceaeterna | 0 | 5,127,748,025 | 50% | ||
justasperm | 0 | 4,376,078,041 | 100% | ||
viniciotricolor | 0 | 4,472,926,387 | 37.5% | ||
danbiohackingman | 0 | 3,917,071,709 | 100% | ||
free-reign | 0 | 1,418,020,999 | 1.2% | ||
chansetheguy | 0 | 2,961,266,667 | 15% | ||
gerusan | 0 | 2,704,894,361 | 100% | ||
keepinitsteem | 0 | 3,633,897,739 | 50% | ||
thedailysneak | 0 | 4,187,675,779 | 4.28% | ||
bflanagin | 0 | 3,551,553,336 | 4% | ||
melor9 | 0 | 631,962,689 | 4% | ||
lillywilton | 0 | 4,905,679,800 | 20% | ||
bigbos99 | 0 | 582,046,979 | 100% | ||
sbi7 | 0 | 536,618,631,990 | 83.15% | ||
voxmortis | 0 | 14,017,291,710 | 7.5% | ||
dlivestreamers | 0 | 1,182,691,991 | 80% | ||
vimm | 0 | 505,977,194,402 | 100% | ||
linuxbot | 0 | 6,309,884,522 | 20% | ||
eonwarp | 0 | 5,672,206,582 | 100% | ||
vibesforlife | 0 | 2,618,275,959 | 10% | ||
kaldewei | 0 | 835,309,411 | 37.5% | ||
bilderkiste | 0 | 1,033,187,669 | 100% | ||
helpiecake | 0 | 4,426,704,432 | 100% | ||
princessamber | 0 | 1,210,715,004 | 50% | ||
helpie-caster | 0 | 50,762,785,232 | 75% | ||
ghostdylan | 0 | 1,215,536,397 | 50% | ||
dopal | 0 | 1,177,023,392 | 100% | ||
magdalena1b | 0 | 855,210,783 | 37.5% | ||
kggymlife | 0 | 3,949,300,012 | 20% | ||
coolsurfer | 0 | 3,916,536,954 | 100% | ||
beerlover | 0 | 125,985,690,766 | 100% | ||
tinyhousecryptos | 0 | 464,027,088 | 5% | ||
kgswallet | 0 | 525,140,370 | 10% | ||
sbi-tokens | 0 | 8,578,592,197 | 8.57% | ||
larry.billson | 0 | 17,045,089,837 | 100% | ||
alapok | 0 | 10,235,513,506 | 100% | ||
ciderjunkie | 0 | 101,722,553,996 | 66% | ||
underskeed | 0 | 1,195,321,374 | 50% | ||
chaincreate | 0 | 1,087,014,577 | 50% | ||
gr33nm4ster | 0 | 814,112,963,210 | 100% | ||
eldritchspig | 0 | 1,199,378,230 | 50% | ||
sweetgemstone | 0 | 7,559,780,191 | 100% | ||
konchix | 0 | 7,164,408,145 | 100% | ||
dagamers7 | 0 | 2,785,981,336 | 100% | ||
curvymosquito83 | 0 | 6,031,047,647 | 100% | ||
alloyxuast | 0 | 36,447,697,787 | 50% | ||
gr33nsquad | 0 | 4,113,543,172 | 100% | ||
heteroclite | 0 | 1,592,471,749 | 2.5% | ||
visionarystudios | 0 | 821,615,674 | 10% | ||
devmarvel | 0 | 1,334,019,768 | 37.5% | ||
actordontee | 0 | 6,520,435,488 | 50% | ||
tebesc | 0 | 2,102,879,387 | 2.5% | ||
rainfirevt | 0 | 775,244,617 | 30% | ||
stingyfly | 0 | 704,704,744 | 57.75% | ||
loyo.jorge | 0 | 1,894,158,471 | 100% | ||
michael561 | 0 | 672,176,502 | 1.71% |
@chiren, I'm refunding 0.205 HIVE and 0.065 HBD, because there are no comments to reward.
author | commentrewarder |
---|---|
permlink | re-chiren-vimm-core-feb2025-update-node-media-server-optimiz17683 |
category | development |
json_metadata | {"app":"CommentRewarder"} |
created | 2025-02-11 15:05:06 |
last_update | 2025-02-15 15:06:03 |
depth | 1 |
children | 0 |
last_payout | 2025-02-18 15:05:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 89 |
author_reputation | 54,645,101,024,448 |
root_title | "Development Log: vimm-core Updates (February 8th 2025)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 140,718,184 |
net_rshares | 0 |