انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

Lecture 4-practical (Media engine, InetAddress, Process & URL in JavaFX)

Share |
الكلية كلية تكنولوجيا المعلومات     القسم قسم شبكات المعلومات     المرحلة 4
أستاذ المادة محمد حسين جواد عبود       02/04/2019 17:12:41
To play an audio into your Java application, you need to have:
1. The source file.
2. Media object.
3. Media player.
As mentioned in playing a video, firstly, the source file path of audio need to be
converted into URI then to String using Paths class. Secondly, the media player
object is used to play the media.
The Media class represents a media resource. It is instantiated from the string form
of a source URI. Information about the media such as duration, metadata, tracks, and
video resolution may be obtained from a Media instance. The media information is
obtained asynchronously and so not necessarily available immediately after
instantiation of the class. All information should however be available if the instance
has been associated with a MediaPlayer and that player has transitioned
to MediaPlayer.Status.READY status. To be notified when metadata or Tracks are
added, observers may be registered with the collections returned
by getMetadata()and getTracks(), respectively.

المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
الرجوع الى لوحة التحكم