Skip to content

Commit 3fe4631

Browse files
authored
[video_player_avplayer] Fix dash live stream issues (flutter-tizen#4)
* Update plusplayer header file * Fix cannot play live stream issue
1 parent 38c9d12 commit 3fe4631

33 files changed

+122
-27
lines changed

packages/video_player_avplayer/tizen/inc/plusplayer/plusplayer.h

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,40 @@ class PlusPlayer : private boost::noncopyable {
936936
*/
937937
virtual bool SetAntiAcousticShock() { return false; }
938938

939+
/**
940+
* @brief Set dashplusplayer properties via json string
941+
* @version 6.0
942+
* @pre The player state required depends on the data that user try to
943+
* Set, if multi keys are specified, the player state should satisfy all.
944+
*
945+
* Key name | Required state
946+
* ---------------- | -------------------------
947+
* "max-bandwidth" | #State::kTrackSourceReady
948+
* @post same as @pre
949+
* @exception N/A
950+
* @param [in] Json formated string with { key1 : value1, key2 : value2 }
951+
* pairs user MUST make sure all key:value pairs are valid.
952+
* @note @c data is case-sensitive. If multi keys specified, even invalid
953+
* key found, dashpp will still try to set the rest.
954+
* @return If ALL Set action excuted successfully.
955+
*/
956+
virtual bool SetData(const std::string data) { return false; }
957+
958+
/**
959+
* @brief Get dashplusplayer properties via json string
960+
* @version 6.0
961+
* @pre @see SetData()
962+
* @post same as @pre
963+
* @exception N/A
964+
* @param data Json formated string with { key1 : value1, key2 : value2 }
965+
* pairs, `keys` must be valid, `values` will be IGNORED as input and will be
966+
* filled by dashplusplayer as output.
967+
* @note @c data is case-sensitive
968+
* @return If ALL Get action excuted successfully, if @c false user can still
969+
* check the data to see if any value successfully returned.
970+
*/
971+
virtual bool GetData(std::string& data) { return false; }
972+
939973
/**
940974
* @brief Set audio volume level
941975
* @pre The player state can be #State::kPlaying or #State::kPaused

packages/video_player_avplayer/tizen/inc/plusplayer/track.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ enum SubtitleAttrType {
162162
kSubAttrTypeNone
163163
};
164164

165-
enum class SubtitleType { kText, kPicture, kInvalid };
165+
/**
166+
* @brief Enumeration for player supported subtitle types
167+
*/
168+
enum class SubtitleType { kText, kPicture, kTTMLRender, kInvalid };
166169

167170
struct SubtitleAttr {
168171
explicit SubtitleAttr(const SubtitleAttrType _type,
@@ -187,4 +190,4 @@ struct Rational {
187190
};
188191
} // namespace plusplayer
189192

190-
#endif // __PLUSPLAYER_TRACK_H__
193+
#endif // __PLUSPLAYER_TRACK_H__
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
-3.98 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)