লাইভ স্ট্রিমিং
হোস্টরা ভিডিওতে লাইভ যায়; দর্শকরা দেখে, চ্যাট করে, উপহার পাঠায় ও হার্টে ট্যাপ করে। দেশ, বন্ধু ও ফলো অনুযায়ী তালিকা, গেস্ট সিট, স্ট্রিম অ্যাডমিন ও রিপোর্ট। PK ও বিউটি ফিল্টার অ্যাড-অন।
مروان القحطاني-এর তৈরিপ্রথম প্রকাশ ২৯ নভে, ২০২৬সর্বশেষ আপডেট ১ ডিসে, ২০২৬
এই ফিচার সম্পর্কে
হোস্টরা ভিডিওতে লাইভ যায়; দর্শকরা দেখে, চ্যাট করে, উপহার পাঠায় ও হার্টে ট্যাপ করে। দেশ, বন্ধু ও ফলো অনুযায়ী তালিকা, গেস্ট সিট, স্ট্রিম অ্যাডমিন ও রিপোর্ট। PK ও বিউটি ফিল্টার অ্যাড-অন।
এটি কী করে
- লাইভে যাওয়া: একজন হোস্ট একটি শিরোনাম, পরিচিতি ও কভার ছবিসহ একটি ব্রডকাস্ট শুরু করে (প্রতি হোস্টের একটি ব্রডকাস্ট)। হোস্ট সত্যি ভিডিও প্রকাশ করলেই এটি লাইভ তালিকায় দেখায়, এবং চলাকালীন এটি সম্পাদনা করা যায় (শিরোনাম, পরিচিতি, কভার, চ্যাট ট্যাব চালু বা বন্ধ)। হোস্ট যেকোনো সময় ব্রডকাস্ট শেষ করতে পারে এবং মোট সংখ্যা সংরক্ষিত হয়। প্যানেলের ব্যান ইঞ্জিন থেকে একজন ইউজারকে ব্রডকাস্ট খোলা বা তাতে প্রবেশ করা থেকে নিষিদ্ধ করা যায়।
- দেখা: দর্শক ব্রডকাস্টে প্রবেশ করে, ভিডিও দেখে, চ্যাটে লেখে এবং উপহার পাঠায় (সাধারণ উপহার ও লাকি উপহার একই উপহার ব্যবস্থার মাধ্যমে ব্রডকাস্টে যায়)। প্রবেশের সময় অ্যাপ হোস্টের প্রোফাইল (নাম, ছবি, VIP ও ID), হার্টের মোট সংখ্যা, ব্রডকাস্টের ডায়মন্ড, অ্যাডমিন ও তাদের পারমিশন, গেস্ট সিট এবং অন্য ফিচারের যোগ করা তথ্য নেয়। নতুন দর্শকদের জন্য ব্রডকাস্ট বন্ধ করা যায়।
- তালিকা: মূল তালিকায় শুধু এখন সম্প্রচারিত ব্রডকাস্ট দেখায়, ১৫টি করে পাতায় (সর্বোচ্চ ৩০), আগে পিন করা, তারপর হট অনুযায়ী সাজানো; সবচেয়ে বেশি দেখা (trend) অনুযায়ী সাজানো যায় এবং হোস্টের দেশ দিয়ে ফিল্টার করা যায়। অতিরিক্ত তালিকা: লাইভ বন্ধুরা, যাদের আপনি ফলো করেন ও যারা লাইভ, এবং একটি দেশের তালিকা যেখানে খোলা ব্রডকাস্ট ও তার সংখ্যা দেখায়। প্রতিটি ব্রডকাস্ট কার্ডে শিরোনাম, কভার, হোস্ট, দর্শক এবং এই সেশনে ও মোটে অর্জিত ডায়মন্ড দেখায়।
- হার্ট: দর্শকরা হার্টে ট্যাপ করে, এবং দর্শক যত বেশিই হোক, সবাই প্রতি সেকেন্ডে একটি চলমান মোট দেখে; অটো-ক্লিকারের বিরুদ্ধে সুরক্ষা আছে (প্রতি ব্যক্তিতে প্রতি সেকেন্ডে ৫ ট্যাপ, প্রতি মিনিটে ১২০ অনুরোধ)। ব্রডকাস্ট শেষ হলে মোট সংখ্যা সংরক্ষিত হয়। প্রতিটি দর্শক একটি ব্রডকাস্টে একবার গণনা হয়, এবং হোস্ট নিজের ব্রডকাস্টের দর্শক হিসেবে গণিত হয় না।
- গেস্ট ও অ্যাডমিন: ব্রডকাস্টে মঞ্চে গেস্ট সিট থাকে (প্রতিটির অবস্থান, তাতে থাকা ইউজার ও অবস্থাসহ), এবং এর মালিক বেছে নেওয়া পারমিশনসহ স্ট্রিম অ্যাডমিন নিয়োগ, পরিবর্তন বা সরাতে পারে (অ্যাডমিনের সংখ্যায় একটি সীমা প্রযোজ্য); প্রতিটি পরিবর্তন তৎক্ষণাৎ দর্শকদের কাছে পৌঁছায়।
- রিপোর্ট: একজন দর্শক ব্রডকাস্টের ভেতরে একজন ব্যক্তিকে রিপোর্ট করতে পারে (নিজেকে নয়): ধরন (কার্যকারিতার সমস্যা, পরামর্শ, রিচার্জ বা অন্য), ১০ থেকে ২০০০ অক্ষরের বিবরণ ও একটি ঐচ্ছিক ছবি; প্রতি ব্যক্তিতে প্রতি মিনিটে সর্বোচ্চ ৫টি। প্যানেলে একটি শুধু-পড়ার Live Reports স্ক্রিন আছে। ব্যান আলাদা এবং চ্যাট ও ব্যান ইঞ্জিনের মাধ্যমে যায়।
- কন্ট্রোল প্যানেল: একটি Live Rooms স্ক্রিন (অ্যাডমিন ও দেশ এটি পরিচালনা করে; অঞ্চল শুধু পড়তে পারে), একটি Live Reports স্ক্রিন, Third Party Settings-এর অধীনে ভিডিও ইঞ্জিনের কী-এর জন্য একটি Live Broadcast Settings ট্যাব, এবং ড্যাশবোর্ডে লাইভ সংখ্যা (এলাকা অনুযায়ী ব্রডকাস্ট, সক্রিয়, নিষ্ক্রিয় এবং এখনই দর্শকসহ)। প্রতিটি স্ক্রিনের নিজস্ব পারমিশন আছে (দেখা, প্রদর্শন, সম্পাদনা, মোছা, তৈরি), যা ডিফল্টভাবে অ্যাডমিন পদে দেওয়া থাকে।
- ফাইল: কভার ফাইলের বিষয়বস্তু থেকে সিস্টেম যে কোনো ছবি চিনতে পারে তা গ্রহণ করে (PNG, JPG, GIF, BMP, TIFF, WebP); রিপোর্টের ছবিও একটি ছবি। লাইভ ভিডিও নিজে UTD Stream ইঞ্জিন বহন করে, এটি ফাইল হিসেবে আপলোড হয় না।
- সব থিমের সাথে কাজ করে: হোম স্ক্রিনের Live ট্যাব ও লাইভ স্ক্রিনগুলো সক্রিয় থিম থেকে রং নেয়।
- আপনার জন্য এটি কেন কাজের: লাইভ ভিডিও উপহারকে আয়ে রূপান্তরের সবচেয়ে শক্তিশালী উপায়। হোস্ট স্ট্রিম করার সময় উপহার থেকে আয় করে, দর্শক হার্ট, চ্যাট ও গেস্ট সিটের মাধ্যমে শোয়ের অংশ মনে করে, এবং আপনি দেশের তালিকা, ব্যান, রিপোর্ট ও অ্যাডমিন স্ক্রিন দিয়ে নিয়ন্ত্রণ রাখেন।
কীসের উপর নির্ভর করে
বেসের ইউজার ও ভিডিও বহনকারী UTD Stream ইঞ্জিন। ব্রডকাস্টে উপহার পাঠানোর জন্য উপহার, হোস্টের ঘণ্টার জন্য এজেন্সি, এবং হোস্টের প্রোফাইলে যা দেখায় তার জন্য VIP ও স্পেশাল ID ঐচ্ছিক। ব্রডকাস্ট আর ভয়েস রুমের ওপর নির্ভর করে না: এর নিজস্ব টেবিল আছে।
অ্যাপের ভেতরে
আরও দেখতে সোয়াইপ করুন
ইনস্টল ও সরানো
কেনার পর এই কমান্ডগুলো “আমার ক্রয়”-এও পাবেন।
ইনস্টল
php artisan feature:install live --applyসরান (আপনার ডেটা থেকে যায়)
এক কমান্ডে বেসে ফিচারটি বন্ধ করুন (এই পেজেই দেখানো আছে); আগে এর অ্যাড-অনগুলো সরান। লাইভ তালিকা, হার্ট, রিপোর্ট ও Live Rooms স্ক্রিন মিলিয়ে যায় এবং ভয়েস রুম স্বাভাবিক চলে। সরানোর আগে চলমান ব্রডকাস্টগুলো বন্ধ করুন; সংরক্ষিত ডেটা থেকে যায় এবং ফিচার ফিরলে ফিরে আসে।
php artisan feature:remove liveআগে এর অ্যাড-অনগুলো সরান: অ্যাড-অন ইনস্টল থাকা অবস্থায় ফিচার সরানো প্রত্যাখ্যান করা হয়।
এই ফিচারের অ্যাড-অন
প্রয়োজনীয় ফিচার
কোনো প্রয়োজনীয়তা নেই: আপনি এটি একাই ইনস্টল করতে পারেন।
ইনস্টল ও সরানো
কমান্ডটি ফিচারের টেবিল, অ্যাডমিন প্যানেলের পেজ, পারমিশন, সেটিংস ও মৌলিক ডেটা তৈরি করে দেয়। অ্যাপে ফিচারটি নিজে থেকেই নিজের জায়গায় দেখা যায়। ফিচারটি অ্যাপ ও অ্যাডমিন প্যানেল থেকে সরে যায়, আর আপনার ডেটা থেকে যায়। আবার ইনস্টল করলে সব আগের মতো ফিরে আসে।
কেনার পর এই কমান্ডগুলো “আমার ক্রয়”-এও পাবেন।
ইনস্টল
php artisan feature:install live --applyসরান (আপনার ডেটা থেকে যায়)
এক কমান্ডে বেসে ফিচারটি বন্ধ করুন (এই পেজেই দেখানো আছে); আগে এর অ্যাড-অনগুলো সরান। লাইভ তালিকা, হার্ট, রিপোর্ট ও Live Rooms স্ক্রিন মিলিয়ে যায় এবং ভয়েস রুম স্বাভাবিক চলে। সরানোর আগে চলমান ব্রডকাস্টগুলো বন্ধ করুন; সংরক্ষিত ডেটা থেকে যায় এবং ফিচার ফিরলে ফিরে আসে।
php artisan feature:remove liveআগে এর অ্যাড-অনগুলো সরান: অ্যাড-অন ইনস্টল থাকা অবস্থায় ফিচার সরানো প্রত্যাখ্যান করা হয়।
এই ফিচারটি আপনার ফিচারের ভেতরে ব্যবহার করুন
The short truth: the broadcast offers other features no port, one webhook event to listen to (LiveStreamWebhookReceived, inside the feature), three FeatureCalls and six places in the app for add-ons. Never call a class inside Modules/Live directly.
Install and remove
- Install:
php artisan feature:install live --apply(without--applyit is a dry run). It creates the broadcast migrations, the menu row and permissions, and the switch closed; open it withphp artisan feature:open live. - Remove:
php artisan feature:remove live --apply. - Requires:
base:users@1,voice_rooms@^1.5.200,pk_room@^1.
Ports (server)
None. The base does not know the broadcast. Other features ask it with FeatureCalls (below) and read the relation ownerLiveStream of a user.
Events
- What the broadcast listens to:
Modules\Live\Events\LiveStreamWebhookReceived(video track: on air / stopped) andModules\VoiceRooms\Events\UtdStreamWebhookReceived. What the add-ons listen to:LiveStreamWebhookReceivedforpk_startedandpk_ended(thepk_liveadd-on). The event is synchronous inside the webhook: a listener that throws makes the webhook answer 500 and the engine retries, so write your listener idempotent. - What the broadcast emits: the realtime room message
live_taps_total(the tap total, at most once a second). No Laravel events.
Data you may read
live_tap_totals(a total per ended broadcast),live_session_viewersandf_live__streams.live_viewers_total(the running broadcast). Read only; the broadcast writes.
Slots (app): the broadcast places for add-ons (features/live/api.dart)
| Slot | What it holds |
|---|---|
liveControlSlot | a button in the broadcast control bar (the PK button) |
liveToolSlot | a camera tool in the broadcast setup and in the "More" sheet (beauty) |
liveVideoProcessorSlot | the camera processor (fresh for each capture) |
livePkConfigSlot | the PK setup for the kit (without it the kit runs without PK) |
liveSessionEndSlot | clean-up when the room closes |
liveMessageLayerSlot | a layer over the broadcast chat (a paid message flying over the broadcast and its send-refusal listener); the add-on receives LiveMessageContext{roomId, ownerId, isHost} |
Server example: a feature that listens to the start of a broadcast
use Modules\Live\Events\LiveStreamWebhookReceived;
use Illuminate\Support\Facades\Event;
// in the provider of your feature (an add-on inside the broadcast, requires live): the event belongs to the broadcast
Event::listen(LiveStreamWebhookReceived::class, function (LiveStreamWebhookReceived $w) {
if ($w->name !== 'track_published' || $w->trackType() !== 'VIDEO') {
return;
}
// $w->roomName() and $w->participantId(); it must be idempotent (the engine retries)
});Make an add-on inside the broadcast
An add-on widens the broadcast itself (like PK and beauty). Another feature that deals with the broadcast (gifts, for example) is not an add-on; it goes through a port.
Server: a module Modules/<X>/ with feature.json, module.json, FEATURE.md, CHANGELOG.md, Providers/<X>ServiceProvider.php (registers the ports and listeners and loads the migrations), Database/Migrations (additive only) and market/listing.json. In Database/Migrations add a migration settle_the_<slug>_switch_row that puts the switch row in app_features (open on a server that has data, closed on a new install, and never touching an existing row). The shape of feature.json (from the real Modules/LiveBeauty/feature.json):
{
"contract": "2.1",
"slug": "live_beauty",
"kind": "addon",
"parent": "live",
"version": "1.0.0",
"name": {"key": "live_beauty::feature.name"},
"description": {"key": "live_beauty::feature.description"},
"app_switch": "live_beauty",
"requires": ["base:users@1", "live@^1"],
"namespace": "Modules\\LiveBeauty"
}parent is live and requires must hold live@^1. Wrap your routes in appFeatureEnable:<slug> (as live_team_pk does over pk_live). After any new file run php artisan feature:catalogue <slug> --sign.
App: lib/src/features/<slug>/ with <slug>_module.dart (a FeatureModule); in registerDependencies register into the broadcast places above, with feature: '<slug>' in each InternalSlot. Add two lines to tools/features.yaml: <slug>: {enabled: true, paths: [features/<slug>], components: [], of: live} and a line under modules: for the module class. Native packages and permissions are declared in deps.yaml and native.yaml next to the module (as in features/live_beauty).
A small real example (beauty fills three places):
@override
void registerDependencies(GetIt di) {
liveVideoProcessorSlot.register(liveBeautyProcessorEntry);
liveToolSlot.register(liveBeautyToolEntry);
liveSessionEndSlot.register(liveBeautySessionEndEntry);
}Install and remove commands: server php artisan feature:install <slug> --apply and php artisan feature:remove <slug> --apply (without --apply it is a dry run); app python tools/apply_features.py --set <slug> on|off (--check when the generated files are old, --analyze-without <slug> proves the rest analyzes without it). feature:remove live refuses while an add-on is installed.
Settings, permissions and menu
- The switch: the row
app_features.live(open it withphp artisan feature:open live) decides. The app readsfeatures.livefrom the app check. - Engine settings: the keys
live.utd_stream.*(app id, server secret, callback secret, base URL), the switch "send the identity of each user to the broadcast" and the switch "show the live voice rooms on the broadcast page" (GET live/streams/optionsanswersshow_voice_rooms, which is false by itself while the voice rooms are closed). Saved from the tab "Live Broadcast Settings" in Third Party Settings. The screenlive-engine-settingsis aPOSTonly and has no menu row (declared so infeature:contractas a warning): it has noGETpage of its own, so a menu row would be a dead link. The controller itself checks the permission to save. - Old setting:
live_status(the settings table, the card "Live Feature" in the Features page; old apps read it fromVersionController). It stays until the old apps are gone; do not build on it. - Limits:
POST live/streams/tapshasthrottle:120,1and theActionAbuseGuardprotection (5 taps a second);POST live/reportshasthrottle:live-report. - Permissions (
panel_permissions, legacy, category Room):browse-live-roomsandshow-live-rooms(admin, country, region),edit-live-roomsanddelete-live-rooms(admin),create-live-rooms(country); andlive.browse-reportsfor the reports page. - Menu: the row "Live Rooms" (
uri: live-rooms, permissionbrowse-rooms) inside the section "Live Broadcast", and the row for the reports page. Three screens onlive-rooms: admin and country (without create/store) and region (read-only).
The broadcast table f_live__streams
A broadcast has its own table. The columns carry the meaning they had in rooms: id (the same id as the old room, because the engine knows the broadcast by it; a new id starts a million above any room), owner_id (was rooms.uid), numid, title (was room_name), cover (was room_cover), intro, status (1 open ... 4), is_live, is_broadcasting (the host is publishing video), live_viewers_total (unique viewers of the running broadcast), pin, is_top, hot and hour_hot (the order of the list), is_comment_closed, created_at, updated_at. The model is Modules\Live\Models\LiveStream (owner() is the host). Copy the data with php artisan live:copy-streams (dry run by default, --apply, --undo); it never touches rooms.
Before publishing (moving broadcasts to their table)
- Empty the queue before
live:copy-streams: gift and lucky jobs queued before the move carry the kindroom(the default). If the target was an old broadcast (aroomsrow of typelive), they would writesessionand the leaderboard and level rows on the oldroomsrow instead of the new broadcast. No coins or diamonds move (only counters are lost), but the queue must be empty before--apply. New jobs carryroom_kindfrom the request (target = stream). - The request from the app: a gift (normal or lucky) to a broadcast must carry
target = streamandroom_id = stream_id; without the field it goes to the room that has the same number.
UserPayload keys
App\Support\UserPayload keys this feature registers or answers (the base does not know feature names; the explanation is here). The one that asks writes the default.
- Extras place
live.stream.extras: the keys other features add to the answer of entering a broadcast (ctx['viewer']is the viewer).
FeatureCalls it answers
Small questions others ask with FeatureCalls::call (the name, who asks, what the answer is; the asker holds the default when the feature is not installed):
live.stream_of(live team PK: the running broadcast a user owns,{id, uid}, null when none or without the live feature)live.streams(live team PK: which of some stream ids run a broadcast now, stream id => owner id;[]without the live feature)live.send_command(one custom command to the engine room of a broadcast; the team PK add-on tells the people in a stream about its task)
নতুন কী
1.0.112প্রকাশ: ১ ডিসে, ২০২৬مروان القحطاني-এর তৈরি
- 1.0.112: A new switch in the broadcast panel, "Show the voice rooms on the broadcast page" (Settings > Third Party > the broadcast tab > Live page), off by default; when on, the app lists the open voice rooms beside the streams on a card like a stream card, and a tap opens the room. The voice rooms page itself is unchanged.
1.0.111প্রকাশ: ১ ডিসে, ২০২৬مروان القحطاني-এর তৈরি
- 1.0.111: PK start and end events now reach the customer's server: the add-on hears them from the single webhook address, so a battle is recorded and closed in the PK battles table. Before this the PK add-on never heard these events. 1.0.110: test improvements only.
1.0.110প্রকাশ: ১ ডিসে, ২০২৬مروان القحطاني-এর তৈরি
- 1.0.110 and 1.0.109: Kick and ban review in the broadcast: the host ban is recorded before the engine is asked and restored if the engine refuses; lifting the host ban never frees the user for a moment while another ban holds him; one lock per (stream, user); the rest is tests.
1.0.107প্রকাশ: ২৯ নভে, ২০২৬مروان القحطاني-এর তৈরি
- Release 1.0.107 (signed build 5397f37)
