How To Loop A Video On Windows Media Player
« Back to index
Table of Contents:
- Camcorder
- Camera
- ImagePicker
- Actor
- Sound
- SoundRecorder
- SpeechRecognizer
- TextToSpeech
- VideoPlayer
- YandexTranslate
Camcorder
A component to tape a video using the device's camcorder. Afterwards the video is recorded, the name of the file on the phone containing the clip is available as an argument to the AfterRecording event. The file proper noun tin be used, for example, to fix the source property of a VideoPlayer component.
Properties
None
Events
- AfterRecording(clip)
- Indicates that a video was recorded with the photographic camera and provides the path to the stored video.
Methods
- RecordVideo()
- Records a video, and so raises the
AfterRecordingevent.
Camera
Use a photographic camera component to take a motion-picture show on the phone.
Camera is a non-visible component that takes a flick using the device'southward camera. Later the picture is taken, the path to the file on the phone containing the flick is available as an argument to the AfterPicture effect. The path tin can be used, for example, every bit the Movie property of an Epitome component.
Properties
None
Events
- AfterPicture(prototype)
- Called after the moving picture is taken. The text argument
epitomeis the path that can exist used to locate the image on the telephone.
Methods
- TakePicture()
- Takes a picture, so raises the
AfterPictureevent.
ImagePicker
A special-purpose button. When the user taps an ImagePicker, the device'southward image gallery appears, and the user can choose an image. Afterwards an image is picked, it is saved, and the Selection holding will be the name of the file where the image is stored. In order to not make full up storage, a maximum of 10 images will be stored. Picking more images will delete previous images, in club from oldest to newest.
Properties
- BackgroundColor
- Specifies the
ImagePicker'southward background colour as an alpha-ruddy-green-blue integer. If anImagehas been set, the colour change will not be visible until theImageis removed. - Enabled
- Specifies whether the
ImagePickershould be active and clickable. - FontBold
- Specifies whether the text of the
ImagePickershould be bold. Some fonts do not support assuming. - FontItalic
- Specifies whether the text of the
ImagePickershould be italic. Some fonts do not back up italic. - FontSize
- Specifies the text font size of the
ImagePicker, measured in sp(calibration-contained pixels). - FontTypeface
- Specifies the text font face of the
ImagePickeras default, serif, sans serif, or monospace. - Height
- Specifies the
ImagePicker'southward vertical height, measured in pixels. - HeightPercent
- Specifies the
ImagePicker's vertical height as a percentage of theScreen'sMeridian. - Paradigm
- Specifies the path of the
ImagePicker'due south image. If there is both anImageand aBackgroundColorspecified, simply theParadigmwill be visible. - Selection
- Path to the file containing the paradigm that was selected.
- Shape
- Specifies the shape of the
ImagePicker. The valid values for this property are0(default),i(rounded),2(rectangle), andiii(oval). TheShapewill not be visible if anEpitomeis used. - ShowFeedback
- Specifies if a visual feedback should be shown when a
ImagePickerwith an assignedParadigmis pressed. - Text
- Specifies the text displayed by the
ImagePicker. - TextAlignment
- Specifies the alignment of the
ImagePicker's text. Valid values are:0(normal; e.thou., left-justified if text is written left to correct),1(center), or2(opposite; due east.g., right-justified if text is written left to correct). - TextColor
- Specifies the text color of the
ImagePickeras an alpha-red-green-blue integer. - Visible
- Specifies whether the
ImagePickershould be visible on the screen. Value istrueif theImagePickeris showing andfalseif hidden. - Width
- Specifies the horizontal width of the
ImagePicker, measured in pixels. - WidthPercent
- Specifies the horizontal width of the
ImagePickeras a percent of theScreen'sWidth.
Events
- AfterPicking()
- Event to be raised subsequently the
ImagePickeractivity returns its event and the properties have been filled in. - BeforePicking()
- Event to raise when the
ImagePickeris clicked or the picker is shown using theOpenmethod. This result occurs before the picker is displayed, and tin be used to prepare the picker before it is shown. - GotFocus()
- Indicates the cursor moved over the
ImagePickerthen it is now possible to click it. - LostFocus()
- Indicates the cursor moved away from the
ImagePickerso it is now no longer possible to click it. - TouchDown()
- Indicates that the
ImagePickerwas pressed downwardly. - TouchUp()
- Indicates that the
ImagePickerhas been released.
Methods
- Open()
- Opens the
ImagePicker, every bit though the user clicked on it.
Player
Multimedia component that plays audio and controls telephone vibration. The name of a multimedia file is specified in the Source belongings, which tin be set in the Designer or in the Blocks Editor. The length of time for a vibration is specified in the Blocks Editor in milliseconds (thousandths of a second).
For supported audio formats, see Android Supported Media Formats.
This component is best for long sound files, such as songs, while the Audio component is more than efficient for short files, such as sound effects.
Properties
- IsPlaying
- Reports whether the media is playing.
- Loop
- If true, the
Playervolition loop when it plays. SettingLoopwhile the player is playing will affect the current playing. - PlayOnlyInForeground
- If truthful, the
Playerwill pause playing when leaving the electric current screen; if imitation (default option), theThespiancontinues playing whenever the current screen is displaying or not. - Source
- Sets the audio source.
- Volume
- Sets the book holding to a number betwixt 0 and 100.
Events
- Completed()
- Indicates that the media has reached the end
- OtherPlayerStarted()
- This effect is signaled when another player has started (and the current role player is playing or paused, but not stopped).
Methods
- Break()
- Suspends playing the media if information technology is playing.
- First()
- Plays the media. If it was previously paused, the playing is resumed. If it was previously stopped, information technology starts from the outset.
- Finish()
- Stops playing the media and seeks to the beginning of the song.
- Vibrate(milliseconds)
- Vibrates for specified number of milliseconds.
Sound
A multimedia component that plays audio files and optionally vibrates for the number of milliseconds (thousandths of a second) specified in the Blocks Editor. The name of the sound file to play tin can be specified either in the Designer or in the Blocks Editor.
For supported sound file formats, see Android Supported Media Formats.
This Sound component is all-time for brusque sound files, such equally audio effects, while the Player component is more efficient for longer sounds, such equally songs.
Backdrop
- MinimumInterval
- Specifies the minimum interval required between calls to
Play, in milliseconds. Once the audio starts playing, all furtherPlaycalls will exist ignored until the interval has elapsed. - Source
- The proper name of the sound file. Only certain formats are supported. Run across http://developer.android.com/guide/appendix/media-formats.html.
Events
None
Methods
- Break()
- Pauses playing the sound if it is being played.
- Play()
- Plays the audio.
- Resume()
- Resumes playing the sound after a suspension.
- Stop()
- Stops playing the sound if it is being played.
- Vibrate(millisecs)
- Vibrates for the specified number of milliseconds.
SoundRecorder
Multimedia component that records audio.
Properties
- SavedRecording
- Specifies the path to the file where the recording should be stored. If this property is the empty cord, then starting a recording will create a file in an advisable location. If the holding is not the empty cord, it should specify a consummate path to a file in an existing directory, including a file proper noun with the extension .3gp.
Events
- AfterSoundRecorded(audio)
- Provides the location of the newly created sound.
- StartedRecording()
- Indicates that the recorder has started, and can be stopped.
- StoppedRecording()
- Indicates that the recorder has stopped, and tin can be started once again.
Methods
- Start()
- Starts recording.
- Stop()
- Stops recording.
SpeechRecognizer
Apply a SpeechRecognizer component to heed to the user speaking and convert the spoken sound into text using the device's speech recognition feature.
Properties
- Language
- Suggests the language to employ for recognizing spoken communication. An empty string (the default) volition utilize the system's default linguistic communication.
Language is specified using a language tag with an optional region suffix, such as en or es-MX. The set of supported languages will vary past device.
- Result
- Returns the concluding text produced by the recognizer.
- UseLegacy
- If true, a split up dialog is used to recognize speech (the default). If false, speech is recognized in the background and updates are received as information technology recognizes words.
AfterGettingTextmay get several calls withfractionalset totrue. Once sufficient time has elapsed since the last utterance, orStopListeningis called, the last string will be returned withfractionalset tofauxto indicate that it is the final recognized string and no more data will exist provided until recognition is again started. MeetAfterGettingTextfor more details on partial speech communication recognition.
Events
- AfterGettingText(result,partial)
- Simple outcome to raise later on the SpeechRecognizer has recognized speech. If
UseLegacyistrue, so this event volition only happen once at the very stop of the recognition. IfUseLegacyisfalse, and so this result volition run multiple times as theSpeechRecognizerincrementally recognizes speech. In this case,partialwill betrueuntil the recognized spoken language has been finalized (e.g., the user has stopped speaking), in which instancepartialwill befalse. - BeforeGettingText()
- Unproblematic event to raise when the
SpeechRecognizeris invoked but before its activity is started.
Methods
- GetText()
- Asks the user to speak, and converts the voice communication to text. Signals the
AfterGettingTextconsequence when the result is available. - Terminate()
- Role used to forcefully stop listening speech in cases where SpeechRecognizer cannot stop automatically. This part works but when the
UseLegacyproperty is set tofalse.
TextToSpeech
The TextToSpeech component speaks a given text aloud. Yous can set the pitch and the charge per unit of speech.
You can also set a language past supplying a language lawmaking. This changes the pronunciation of words, non the actual language spoken. For example, setting the Linguistic communication to French and speaking English text will audio similar someone speaking English (en) with a French accent.
Y'all tin can also specify a country past supplying a State code. This can touch on the pronunciation. For instance, British English (GBR) will sound different from United states English (The states). Not every country lawmaking will touch every linguistic communication.
The languages and countries available depend on the particular device, and tin exist listed with the AvailableLanguages and AvailableCountries properties.
Properties
- AvailableCountries
- Listing of the country codes available on this device for use with TextToSpeech. Check the Android programmer documentation under supported languages to observe the meanings of these abbreviations.
- AvailableLanguages
- List of the languages available on this device for apply with TextToSpeech. Check the Android programmer documentation under supported languages to observe the meanings of these abbreviations.
- Country
- Country code to employ for speech communication generation. This tin can affect the pronunciation. For example, British English language (GBR) will sound unlike from U.s. English language (USA). Not every state code volition impact every language.
- Linguistic communication
- Sets the language for TextToSpeech. This changes the way that words are pronounced, not the actual linguistic communication that is spoken. For example, setting the language to French and speaking English text will sound like someone speaking English language with a French accent.
- Pitch
- Sets the speech pitch for the TextToSpeech.
The values should be between 0 and 2 where lower values lower the tone of synthesized phonation and greater values enhance information technology.
The default value is 1.0 for normal pitch.
- Result
- Returns
trueif the text was successfully converted to spoken language, otherwisefalse. - SpeechRate
- Sets the SpeechRate for TextToSpeech.
The values should be between 0 and 2 where lower values slow down the pitch and greater values accelerate it.
The default value is 1.0 for normal speech rate.
Events
- AfterSpeaking(consequence)
- Effect to enhance after the message is spoken. The
issuewill existtrueif the bulletin is spoken successfully, otherwise it will beimitation. - BeforeSpeaking()
- Result to enhance when Speak is invoked, before the bulletin is spoken.
Methods
- Speak(message)
- Speaks the given message.
VideoPlayer
A multimedia component capable of playing videos. When the application is run, the VideoPlayer will be displayed as a rectangle on-screen. If the user touches the rectangle, controls will appear to play/intermission, skip ahead, and skip backward within the video. The awarding can also control behavior past calling the Start, Interruption, and SeekTo methods.
Video files should be in 3GPP (.3gp) or MPEG-4 (.mp4) formats. For more details about legal formats, see Android Supported Media Formats.
App Inventor only permits video files under one MB and limits the total size of an application to v MB, not all of which is available for media (video, audio, and sound) files. If your media files are too big, you may get errors when packaging or installing your application, in which case y'all should reduce the number of media files or their sizes. Almost video editing software, such equally Windows Motion-picture show Maker and Apple iMovie, can aid you decrease the size of videos by shortening them or re-encoding the video into a more compact format.
You tin also set up the media source to a URL that points to a streaming video, only the URL must point to the video file itself, not to a programme that plays the video.
Properties
- FullScreen
- Sets whether the video should be shown in fullscreen or non.
- Height
- Specifies the component'due south vertical acme, measured in pixels.
- HeightPercent
- Specifies the
VideoPlayer's vertical height as a pct of theScreen'sHeight. - Source
- Sets the "path" to the video. Usually, this will be the name of the video file, which should exist added in the Designer.
- Visible
- Specifies whether the
VideoPlayershould be visible on the screen. Value istrueif theVideoPlayeris showing andfauxif subconscious. - Volume
- Sets the volume property to a number between 0 and 100. Values less than 0 will be treated as 0, and values greater than 100 will be treated as 100.
- Width
- Specifies the component's horizontal width, measured in pixels.
- WidthPercent
- Specifies the horizontal width of the
VideoPlayeras a percentage of theScreen'sWidth.
Events
- Completed()
- Indicates that the video has reached the end
Methods
- GetDuration()
- Returns duration of the video in milliseconds.
- Pause()
- Pauses playback of the video. Playback tin can be resumed at the same location by calling the
Startmethod. - SeekTo(ms)
- Seeks to the requested time (specified in milliseconds) in the video. If the video is paused, the frame shown will not be updated by the seek. The player tin jump only to cardinal frames in the video, then seeking to times that differ past short intervals may not actually movement to different frames.
- Start()
- Plays the media specified by the
Source. - End()
- Resets to start of video and pauses it if video was playing.
YandexTranslate
Use this component to translate words and sentences betwixt different languages. This component needs Internet access, as information technology will request translations to the Yandex.Interpret service. Specify the source and target language in the course source-target using two letter language codes. So "en-es" will translate from English to Spanish while "es-ru" will interpret from Castilian to Russian. If you leave out the source language, the service will attempt to find the source language. So providing just "es" volition attempt to discover the source language and interpret it to Spanish.
This component is powered by the Yandex translation service. Run into http://api.yandex.com/translate/ for more information, including the list of available languages and the meanings of the language codes and status codes.
Note: Translation happens asynchronously in the background. When the translation is complete, the GotTranslation effect is triggered.
Properties
- ApiKey
- The Yandex API Cardinal to use. If set to DEFAULT the platform default key (if any) will exist used. Otherwise should be gear up to a valid API fundamental which can be obtained from https://tech.yandex.com/translate/. If the platform doesn't have a default key and one isn't provided here, an mistake will be raised.
Events
- GotTranslation(responseCode,translation)
- Event indicating that a asking has finished and has returned data (translation).
Methods
- RequestTranslation(languageToTranslateTo,textToTranslate)
- By providing a target linguistic communication to translate to (for example, 'es' for Castilian, 'en' for English, or 'ru' for Russian), and a give-and-take or judgement to interpret, this method will request a translation to the Yandex.Translate service. Once the text is translated past the external service, the consequence
GotTranslationwill be executed.Notation: Yandex.Translate will attempt to detect the source language. You can likewise specify prepending it to the language translation, due east.g., es-ru volition specify Spanish to Russian translation.
Source: http://ai2.appinventor.mit.edu/reference/components/media.html
Posted by: chickbardecome.blogspot.com

0 Response to "How To Loop A Video On Windows Media Player"
Post a Comment