apache / apache/cordova-plugin-media

Callback Status MEDIA_STARTING

Open
#209 0 comments 1 reaction 0 assignees View on GitHub
platform: ios support
Dominant language
JavaScript
Stars
391
Forks
762
PR merge metrics
No merged PRs in 30d

Description

Please add callback status MEDIA_STARTING to iOS
cordova-plugin-media/src/ios/CDVSound.m: 355

**from**
```
if (!bError) {
//self.currMediaId = audioFile.player.mediaId;
self.currMediaId = mediaId; ...
```

**to**
```
if (!bError) {

[self onStatus:MEDIA_STATE mediaId:mediaId param:@(MEDIA_STARTING)];

//self.currMediaId = audioFile.player.mediaId;
self.currMediaId = mediaId; ...``
```

Contributor guide

Open the contributing guide

Research direction

Start in cordova-plugin-media/src/ios/CDVSound.m around line 355 and inspect the existing status callback flow in the shown block. Done means the iOS implementation emits MEDIA_STARTING through the MEDIA_STATE callback before storing the media ID when startup succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c
Domain
audio-video-rtc, mobile-dev
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.