언어 설정

Menu
Sites
Language
Update track list on Gear native Music Player

Hi, 

I have an Web Wearables app that adds music to the music folder. The native Gear Music app does not pickup the new tracks without me powering off and power on  the device (test on a Gear S3). Is there a way for me to trigger the app to refresh?

Thanks

Responses

6 댓글
Frank Alvaro

Hi,

The code you provide launched the application, the app id for the Mustic Player was "com.samsung.w-music-player".  But launching the app did not refresh the track list.

The application must have a way of refreshing the list becasue when you load music via the Phone Gear App the list does refresh. I wonder if there is a api I need to call in the music player app to trigger a refresh.

The easies way to simulate my problem is use the Tizen Studio, Device Manager, to upload a music file to the  "/home/owner/media/Music" folder.  Then check the Gear S3 Music Player and you will see the file does not show on the list.  If you power cycle  the watch the track appear.

 

André Reus

hi, can you please check Media controller api to meet your requirement ..and let me update please after checking 

https://developer.tizen.org/development/guides/web-application/media-and-camera/media-controller

Frank Alvaro

Hi,

I could not get the media controller to do what I needed.

When I use th Gear Phone app to Transfer a file to the Gear S3 I noticed this in the log.

mp-view-manager.c: _on_event(647) > MP_EVENT_PLAYING_LIST_UPDATED

Is it possible to use the Launch a Service funcationality described here https://developer.tizen.org/community/tip-tech/application-api-guide#launchservice​ to trigger the event?

André Reus

There is a misunderstanding may be .... do you want to transfer file from phone to gear using Gear Manager app ( Samsung Gear Android app) right ? 

Frank Alvaro

Hi,

Solved my problem. The answer is Storage Content Managment.  When you write a file to the media folder using Contents Download or File System https://developer.tizen.org/development/guides/web-application/data-storage-and-management/file-system applications like the Media Player don't get updated because they use the Storage Content Management database. So you need to trigger an update of the database by using the tizen.content.scanDirectory or scanFile methods as described in Storage Content Management https://developer.tizen.org/development/guides/web-application/data-storage-and-management/stored-content-management.