nstudio / nstudio/nativescript-plugins

@nstudio/nativescript-exoplayer getDuration on IOS live stream returns Nan

Open
#43 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
55
Forks
42
Avg merge
49m
Merged PRs (30d)
1

Description

getDuration method returns Nan (only on ios) if src is a live stream. on android it works as expected.
steps to reproduce:

  1. create any simple project using "ns create".
  2. install nativescript-exoplayer "ns plugin add @nstudio/nativescript-exoplayer".
  3. fire getDuration method.

any help would be greatly appreciated.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the iOS implementation of getDuration in the @nstudio/nativescript-exoplayer plugin and compare it with the Android behavior. Reproduce the report using a simple project created with ns create, the plugin installed via ns plugin add, and a live stream. Done means getDuration no longer returns NaN for an iOS live stream and the behavior is covered by an appropriate test if the repository provides one.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.