eclipsesource / eclipsesource/tabris-js

Video Widget stops audio from playing

Open
#1,878 3 comments 0 reactions 0 assignees View on GitHub
android feature
Dominant language
JavaScript
Stars
1.4k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

### Problem description
Before the `Video` widget was created, I had music playing in a third-party app, but then it stopped. I understand that it's Android itself doing this, but can I somehow control it?
I know there is a method in the native `setAudioFocusRequest()`. Can you do something similar?

### Expected behavior
I would like to be able to indicate whether the third-party player needs to be stopped or not.

### Environment
- Tabris.js version: 3.0.1
- Device: Xiaomi Redmi 5 Plus
- OS: Android 8.0.1

### Code snippet
```typescript
new Video({ url: 'urlhere', width: 100, height: 100, controlsVisible: false })
.appendTo(contentView);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.