Switch across different media files

3 ビュー (過去 30 日間)
Nada Abdelhafez
Nada Abdelhafez 2021 年 9 月 2 日
回答済み: T.Nikhil kumar 2023 年 10 月 13 日
How can I select a to play a specific media file from a number of different "from media files" block?

回答 (1 件)

T.Nikhil kumar
T.Nikhil kumar 2023 年 10 月 13 日
Hello Nada,
As per my understanding, you want to choose to play a media file from a specific “From Multimedia File” block amongst other “From Multimedia File” blocks.
You can use the “Bus Creator” block to group all the signals from various “From Multimedia File” blocks into a single “Bus” object. You can then select required elements from this bus using a “Bus Selector” block based on name of the signal and use the output to play the video using “To Video” block.
You can refer to the following documentation to understand more about switch block and “From Multimedia File” block:
You can refer to the following documentation to understand more about switch block and “Bus Selector” block:
You can refer to the following documentation to understand more about switch block and “Bus Creator” block:
Hope this helps!

カテゴリ

Help Center および File ExchangeSimulation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by