1 /// This File contains VideoStreamEventArgs class
3 /// Copyright 2016 by Samsung Electronics, Inc.,
5 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 namespace Tizen.Multimedia
24 /// Provides data for the <see cref="Player.VideoStreamChanged"/> event.
26 public class VideoStreamChangedEventArgs : EventArgs
30 /// Initializes a new instance of the VideoStreamChangedEventArgs class.
32 internal VideoStreamChangedEventArgs(int height, int width, int fps, int bitRate)
34 Size = new Size(width, height);
40 /// Gets the <see cref="Size"/> of new video.
42 public Size Size { get; }
45 /// Gets the fps of new video
47 public int Fps { get; }
50 /// Gets the bit rate of new video.
52 public int BitRate { get; }
54 public override string ToString()
56 return $"Size=({ Size.ToString() }), Fps={ Fps.ToString() }, BitRate={ BitRate.ToString() }";