Skip to content

Commit

Permalink
Follow the lowerCamelCase for StreamingPropertyType
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowei-guan committed Mar 8, 2024
1 parent ef19044 commit 095ac2d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 38 deletions.
28 changes: 14 additions & 14 deletions packages/video_player_avplay/lib/src/video_player_tizen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -303,19 +303,19 @@ class VideoPlayerTizen extends VideoPlayerPlatform {

static const Map<StreamingPropertyType, String> _streamingPropertyType =
<StreamingPropertyType, String>{
StreamingPropertyType.ADAPTIVE_INFO: 'ADAPTIVE_INFO',
StreamingPropertyType.AVAILABLE_BITRATE: 'AVAILABLE_BITRATE',
StreamingPropertyType.COOKIE: 'COOKIE',
StreamingPropertyType.CURRENT_BANDWIDTH: 'CURRENT_BANDWIDTH',
StreamingPropertyType.GET_LIVE_DURATION: 'GET_LIVE_DURATION',
StreamingPropertyType.IN_APP_MULTIVIEW: 'IN_APP_MULTIVIEW',
StreamingPropertyType.IS_LIVE: 'IS_LIVE',
StreamingPropertyType.LISTEN_SPARSE_TRACK: 'LISTEN_SPARSE_TRACK',
StreamingPropertyType.PORTRAIT_MODE: 'PORTRAIT_MODE',
StreamingPropertyType.PREBUFFER_MODE: 'PREBUFFER_MODE',
StreamingPropertyType.SET_MIXEDFRAME: 'SET_MIXEDFRAME',
StreamingPropertyType.SET_MODE_4K: 'SET_MODE_4K',
StreamingPropertyType.USER_AGENT: 'USER_AGENT',
StreamingPropertyType.USE_VIDEOMIXER: 'USE_VIDEOMIXER',
StreamingPropertyType.adaptiveInfo: 'ADAPTIVE_INFO',
StreamingPropertyType.availableBitrate: 'AVAILABLE_BITRATE',
StreamingPropertyType.cookie: 'COOKIE',
StreamingPropertyType.currentBandwidth: 'CURRENT_BANDWIDTH',
StreamingPropertyType.getLiveDuration: 'GET_LIVE_DURATION',
StreamingPropertyType.inAppMultiView: 'IN_APP_MULTIVIEW',
StreamingPropertyType.isLive: 'IS_LIVE',
StreamingPropertyType.listenSparseTrack: 'LISTEN_SPARSE_TRACK',
StreamingPropertyType.portraitMode: 'PORTRAIT_MODE',
StreamingPropertyType.prebufferMode: 'PREBUFFER_MODE',
StreamingPropertyType.setMixedFrame: 'SET_MIXEDFRAME',
StreamingPropertyType.setMode4K: 'SET_MODE_4K',
StreamingPropertyType.userAgent: 'USER_AGENT',
StreamingPropertyType.useVideoMixer: 'USE_VIDEOMIXER',
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,13 @@ enum VideoFormat {
/// The streaming property type.
enum StreamingPropertyType {
/// HTTP request cookie used to establish the session with the HTTP server.
COOKIE,
cookie,

/// HTTP user agent, used in the HTTP request header.
USER_AGENT,
userAgent,

/// Property to initiate prebuffering mode. The second parameter indicates start-time for prebuffered content, in milliseconds.
PREBUFFER_MODE,
prebufferMode,

/// Sets a custom streaming URL with various streaming parameters, such as "BITRATES", "STARTBITRATE", or "SKIPBITRATE".
/// String containing custom attributes for adaptive streaming playback.
Expand All @@ -279,52 +279,42 @@ enum StreamingPropertyType {
/// "STARTFRAGMENT=" For live content playback, defines the start fragment number.
/// "FIXED_MAX_RESOLUTION=max_widthXmax_height". Only if the given media URI such as mpd in MPEG-DASH or m3u8 in HLS through open()
/// method doesn't describe entire required video resolutions,application should use this attribute to complete the resolution information for the player.
ADAPTIVE_INFO,
adaptiveInfo,

/// Forces the player to use the 4K UHD decoder. Its parameter can be the string "TRUE" or "FALSE".
/// In the case of adaptive streaming which requires stream-change for different video resolution during the playback,
/// Only if the given media URI such as mpd in MPEG-DASH or m3u8 in HLS through open() method doesn't describe entire required video resolutions,
/// pass TRUE with this property in IDLE state.
SET_MODE_4K,
setMode4K,

/// For the Smooth Streaming case, configures the player to listen for a "Sparse name" configured through "propertyParam" . The sparse track name is a string.
LISTEN_SPARSE_TRACK,
listenSparseTrack,

/// Whether the stream is LIVE or VOD. Applicable to all streaming types.
IS_LIVE,
isLive,

/// String listing the available bit-rates for the currently-playing stream.
AVAILABLE_BITRATE,
availableBitrate,

/// String describing the duration of live content.
GET_LIVE_DURATION,
getLiveDuration,

/// String describing the current streaming bandwidth.
CURRENT_BANDWIDTH,
currentBandwidth,

/// Property used for enabling/initializing video mixer feature on B2B product only. It should be set before
/// setting SET_MIXEDFRAME property on the player.
USE_VIDEOMIXER,
useVideoMixer,

/// Property to set the position of mixed frame. setDisplayRect with required position on corresponding
/// player instance to be called before setting this property.
SET_MIXEDFRAME,
setMixedFrame,

/// Property to force the playback the video in potrait mode on B2B proudct only.
PORTRAIT_MODE,
portraitMode,

/// Property to select the Scaler type, By Default MAIN Scaler selected.
IN_APP_MULTIVIEW,
inAppMultiView,
}

/// Event emitted from the platform implementation.
Expand Down

0 comments on commit 095ac2d

Please sign in to comment.