AR/getSoundMetaTags: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function}} | {{Client function}} | ||
تستخدم للحصول على العلامات الوصفية المرفقة بصوت. توفر هذه المعلومات حول الصوت ، على سبيل المثال العنوان أو الفنان. | |||
== | ==تركيب الوظيفة== | ||
<syntaxhighlight lang="lua">table getSoundMetaTags ( element sound )</syntaxhighlight> | <syntaxhighlight lang="lua">table getSoundMetaTags ( element sound )</syntaxhighlight> | ||
=== | ===الفرغات المطلوبة=== | ||
*''' | *'''الصوت:''' عنصر الصوت. | ||
[[sound]] | |||
=== | ===المعطيات=== | ||
* تعطي جدول بكل المعلومات المتاحة للصوت اذا نجحت | |||
[[table]] | |||
* تعطي false اذا لم تنجح | |||
{{Sound_Meta_Tags}} | {{Sound_Meta_Tags}} | ||
== | ==مثال== | ||
<syntaxhighlight lang="lua">addEventHandler("onClientSoundFinishedDownload",root,function(length) | <syntaxhighlight lang="lua">addEventHandler("onClientSoundFinishedDownload",root,function(length) | ||
local meta = getSoundMetaTags(source) | local meta = getSoundMetaTags(source) | ||
outputChatBox(" | outputChatBox("الصوت: "..(meta.title).." تم تنزيلة في :"..length.."ثانية.") | ||
outputChatBox(" | outputChatBox("العلامات الوصفية للصوت: الفنان:"..(meta.artist).." الألبوم:"..(meta.album).." النوع:"..(meta.genre).." السنة:"..(meta.year).." تعليق:"..(meta.comment).." مقطوعة:"..(meta.track).." ملحن:"..(meta.composer).." حقوق النشر:"..(meta.copyright).." العنوان الفرعي:"..(meta.subtitle).." فنان الألبوم:"..(meta.album_artist)..".") | ||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 08:39, 10 May 2020
تستخدم للحصول على العلامات الوصفية المرفقة بصوت. توفر هذه المعلومات حول الصوت ، على سبيل المثال العنوان أو الفنان.
تركيب الوظيفة
table getSoundMetaTags ( element sound )
الفرغات المطلوبة
- الصوت: عنصر الصوت.
المعطيات
- تعطي جدول بكل المعلومات المتاحة للصوت اذا نجحت
- تعطي false اذا لم تنجح
- title
- artist
- album
- genre
- year
- comment
- track
- composer
- copyright
- subtitle
- album_artist
- stream_name
- stream_title
مثال
addEventHandler("onClientSoundFinishedDownload",root,function(length) local meta = getSoundMetaTags(source) outputChatBox("الصوت: "..(meta.title).." تم تنزيلة في :"..length.."ثانية.") outputChatBox("العلامات الوصفية للصوت: الفنان:"..(meta.artist).." الألبوم:"..(meta.album).." النوع:"..(meta.genre).." السنة:"..(meta.year).." تعليق:"..(meta.comment).." مقطوعة:"..(meta.track).." ملحن:"..(meta.composer).." حقوق النشر:"..(meta.copyright).." العنوان الفرعي:"..(meta.subtitle).." فنان الألبوم:"..(meta.album_artist)..".") end)
أنظر أيضاً
- getSoundBufferLength
- getSoundEffects
- getSoundFFTData
- getSoundLength
- getSoundLevelData
- getSoundMaxDistance