Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia.MediaPlayer / Player / VideoStreamChangedEventArgs.cs
1 /// This File contains VideoStreamEventArgs class
2 ///
3 /// Copyright 2016 by Samsung Electronics, Inc.,
4 /*
5  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
6  *
7  * Licensed under the Apache License, Version 2.0 (the License);
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an AS IS BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 using System;
20
21 namespace Tizen.Multimedia
22 {
23     /// <summary>
24     /// Provides data for the <see cref="Player.VideoStreamChanged"/> event.
25     /// </summary>
26     public class VideoStreamChangedEventArgs : EventArgs
27     {
28
29         /// <summary>
30         /// Initializes a new instance of the VideoStreamChangedEventArgs class.
31         /// </summary>
32         internal VideoStreamChangedEventArgs(int height, int width, int fps, int bitRate)
33         {
34             Size = new Size(width, height);
35             Fps = fps;
36             BitRate = bitRate;
37         }
38
39         /// <summary>
40         /// Gets the <see cref="Size"/> of new video.
41         /// </summary>
42         public Size Size { get; }
43
44         /// <summary>
45         /// Gets the fps of new video
46         /// </summary>
47         public int Fps { get; }
48
49         /// <summary>
50         /// Gets the bit rate of new video.
51         /// </summary>
52         public int BitRate { get; }
53
54         public override string ToString()
55         {
56             return $"Size=({ Size.ToString() }), Fps={ Fps.ToString() }, BitRate={ BitRate.ToString() }";
57         }
58     }
59 }