Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaConfig for live stream does not respect startTime #273

Open
jan-bednar opened this issue Jul 3, 2018 · 1 comment
Open

MediaConfig for live stream does not respect startTime #273

jan-bednar opened this issue Jul 3, 2018 · 1 comment

Comments

@jan-bednar
Copy link

jan-bednar commented Jul 3, 2018

Steps:

1.) Load mediaEntry from PhoenixMediaProvider with contextType: START_OVER by calling loadMedia(callback:)
2.) Create MediaConfig with received mediaEntry
3.) Prepare video player by calling BasicPlayer.prepare(mediaConfig)

Expected Result:

Player will start playing media from time 0 after loading

Actual Result:

Player starts at "live".

Discussion:

when manually setting mediaConfig.startTime = 1 instead of 0, the live stream loads from beggining, but this is not very "user friendy". Also, when setting startTime to 1, one "live" frame is shown in the player before actually starting the play back.

I would advice to use startTime = -1 to trigger live status and startTime = 0 for beggining of the streams.

Please, let me know, what is the correct approach in this case.

Data:

Media config:

mediaEntry: id : 301396XX, 
sources: Optional([id : 12461XX, url: Optional(https://XX.ott.kaltura.com/v4_4/api_v3/service/assetFile/action/playManifest/partnerId/XXX/assetId/301396XX/assetType/epg/assetFileId/12461XX/contextType/START_OVER/ks/djJ8NDM2fILgDBenecH08Vt3Je6drlgmCqdYU_v4OC99aP8c8...==/a.m3u8)])
startTime: 0.0

Podfile.lock:

  - KalturaNetKit (0.0.17):
    - KalturaNetKit/Core (= 0.0.17)
  - KalturaNetKit/Core (0.0.17):
    - SwiftyJSON
- PlayKit (3.3.7):
    - PlayKit/Core (= 3.3.7)
  - PlayKit/AnalyticsCommon (3.3.7):
    - PlayKit/Core
  - PlayKit/Core (3.3.7):
    - KalturaNetKit (~> 0.0)
    - Log (= 1.0)
    - PlayKitUtils (= 0.1.4)
    - SwiftyJSON (= 3.1.4)
    - SwiftyXMLParser (= 3.0.3)
  - PlayKit/KalturaStatsPlugin (3.3.7):
    - PlayKit/AnalyticsCommon
    - PlayKit/Core
  - PlayKit/PhoenixPlugin (3.3.7):
    - PlayKit/AnalyticsCommon
    - PlayKit/Core
  - PlayKit/YouboraPlugin (3.3.7):
    - PlayKit/AnalyticsCommon
    - PlayKit/Core
    - Youbora-AVPlayer/dynamic (= 5.4.18)
  - PlayKitUtils (0.1.4)

COCOAPODS: 1.5.3
@kaltura-hooks
Copy link

Hi @jan-bednar,

Thank for you reporting an issue and helping to improve Kaltura!

If you're having some issues getting your player set up, there are quite a few steps that can be taken to figure things out.

In order to expedite the reporting process, please follow instructions in the doc below, prior to submitting a bug/issue

https://github.com/kaltura/player-sdk-native-ios/wiki/How-To-Report-an-Issue-with-the-Kaltura-iOS-Player-SDK

If you only have a general question rather than a bug report, please close this issue, post at:
https://forum.kaltura.org/c/community-forums/player-sdk

And add a comment to the Github issue linking to your post.

Thank you in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants