You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/application/dotnet/guides/multimedia/media-playback.md
-77Lines changed: 0 additions & 77 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,14 +21,6 @@ The main media playback features are described below:
21
21
22
22
Enables you to set specific URLs for [streaming media playback](#stream).
23
23
24
-
- Using the WAV player
25
-
26
-
Enables you to play audio in the [WAVE format](#wav).
27
-
28
-
- Using the tone player
29
-
30
-
Enables you to play [tones](#tone).
31
-
32
24
Before you start, [set up the player](#prepare).
33
25
34
26
<aname="audio"></a>
@@ -146,21 +138,6 @@ The following table lists the streaming protocol features supported by the playe
146
138
| Hypertext Transfer Protocol (HTTP) | HTTP progressive download play |
147
139
| Real Time Streaming Protocol (RTSP) | RTSP streaming |
148
140
149
-
<aname="wav"></a>
150
-
## WAV player
151
-
152
-
The [Tizen.Multimedia.WavPlayer](/application/dotnet/api/TizenFX/latest/api/Tizen.Multimedia.WavPlayer.html) class allows you to play audio resources (media files stored on the device). Use it to [play audio and control playback](#start_wav). You can use the WAV and OGG audio formats.
153
-
154
-
Multiple instances of the WAV player can be used to play several audio data streams concurrently. This means that your application can play multiple uncompressed audio files, such as WAV, at the same time.
155
-
156
-
<aname="tone"></a>
157
-
## Tone player
158
-
159
-
You can play a tone or a list of tones using the [Tizen.Multimedia.TonePlayer](/application/dotnet/api/TizenFX/latest/api/Tizen.Multimedia.TonePlayer.html) class.
160
-
161
-
To play tones, use a DTMF (Dual Tone Multi Frequency) preset frequency. The possible values are defined in the [Tizen.Multimedia.ToneType](/application/dotnet/api/TizenFX/latest/api/Tizen.Multimedia.ToneType.html) enumeration.
162
-
163
-
You can [start and stop playing a tone](#play_tone), and [play a tone for a specified duration](#duration).
164
141
165
142
## Prerequisites
166
143
@@ -409,60 +386,6 @@ To insert subtitles to a video file, set the subtitle path using the `SetSubtitl
409
386
player.SetSubtitle(subtitlePath);
410
387
```
411
388
412
-
<aname="start_wav"></a>
413
-
## Start and stop the WAV player
414
-
415
-
To start and stop the WAV player, proceed as follows:
416
-
417
-
1. To play a WAV file, use the `StartAsync()` method of the [Tizen.Multimedia.WavPlayer](/application/dotnet/api/TizenFX/latest/api/Tizen.Multimedia.WavPlayer.html) class:
The first parameter defines the tone type as a value of the [Tizen.Multimedia.ToneType](/application/dotnet/api/TizenFX/latest/api/Tizen.Multimedia.ToneType.html) enumeration:
443
-
444
-
```csharp
445
-
await TonePlayer.StartAsync(ToneType.Default, new AudioStreamPolicy(AudioStreamType.Media), -1);
Toplayatoneforaspecifiedduration, usethe `StartAsync()` methodofthe [Tizen.Multimedia.TonePlayer](/application/dotnet/api/TizenFX/latest/api/Tizen.Multimedia.TonePlayer.html) classwith the duration parameter (thenumberofmillisecondsyouwantplaybackto last). When you set the duration to a specified time, playback stops automatically after that time:
Copy file name to clipboardExpand all lines: docs/application/dotnet/guides/multimedia/overview.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,11 @@ You can use the following multimedia features in your .NET applications:
31
31
32
32
-[Media Playback](media-playback.md)
33
33
34
-
You can manage the playback of different media file types. You can play audio and video files, and tones. You can also manage the state of the media player.
34
+
You can manage the playback of different media file types. You can play audio and video files. You can also manage the state of the media player.
35
+
36
+
-[WAV and Tone Player](wav-tone-player.md)
37
+
38
+
You can play wav files and tones. This section provides detailed information on how to use the wav player and tone player.
35
39
36
40
-[Media Recording](media-recording.md)
37
41
@@ -82,4 +86,4 @@ You can use the following multimedia features in your .NET applications:
The main media playback features are described below:
6
+
7
+
- Using the WAV player
8
+
9
+
Enables you to play audio in the [WAVE format](#wav).
10
+
11
+
- Using the tone player
12
+
13
+
Enables you to play [tones](#tone).
14
+
15
+
<aname="wav"></a>
16
+
## WAV player
17
+
18
+
The [Tizen.Multimedia.WavPlayer](/application/dotnet/api/TizenFX/latest/api/Tizen.Multimedia.WavPlayer.html) class allows you to play audio resources (media files stored on the device). Use it to [play audio and control playback](#start_wav). You can use the WAV and OGG audio formats.
19
+
20
+
Multiple instances of the WAV player can be used to play several audio data streams concurrently. This means that your application can play multiple uncompressed audio files, such as WAV, at the same time.
21
+
22
+
<aname="tone"></a>
23
+
## Tone player
24
+
25
+
You can play a tone or a list of tones using the [Tizen.Multimedia.TonePlayer](/application/dotnet/api/TizenFX/latest/api/Tizen.Multimedia.TonePlayer.html) class.
26
+
27
+
To play tones, use a DTMF (Dual Tone Multi Frequency) preset frequency. The possible values are defined in the [Tizen.Multimedia.ToneType](/application/dotnet/api/TizenFX/latest/api/Tizen.Multimedia.ToneType.html) enumeration.
28
+
29
+
You can [start and stop playing a tone](#play_tone), and [play a tone for a specified duration](#duration).
30
+
31
+
## Prerequisites
32
+
33
+
To use the methods and properties of the media playback classes, include the [Tizen.Multimedia](/application/dotnet/api/TizenFX/latest/api/Tizen.Multimedia.html) namespace in your application:
34
+
35
+
```csharp
36
+
usingTizen.Multimedia;
37
+
```
38
+
39
+
40
+
<aname="start_wav"></a>
41
+
## Start and stop the WAV player
42
+
43
+
To start and stop the WAV player, proceed as follows:
44
+
45
+
1. To play a WAV file, use the `StartAsync()` method of the [Tizen.Multimedia.WavPlayer](/application/dotnet/api/TizenFX/latest/api/Tizen.Multimedia.WavPlayer.html) class:
The first parameter defines the tone type as a value of the [Tizen.Multimedia.ToneType](/application/dotnet/api/TizenFX/latest/api/Tizen.Multimedia.ToneType.html) enumeration:
71
+
72
+
```csharp
73
+
await TonePlayer.StartAsync(ToneType.Default, new AudioStreamPolicy(AudioStreamType.Media), -1);
Toplayatoneforaspecifiedduration, usethe `StartAsync()` methodofthe [Tizen.Multimedia.TonePlayer](/application/dotnet/api/TizenFX/latest/api/Tizen.Multimedia.TonePlayer.html) classwith the duration parameter (thenumberofmillisecondsyouwantplaybackto last). When you set the duration to a specified time, playback stops automatically after that time:
0 commit comments