Trying to improve support for Vimu in jellyfin/emby as external player.

442 views
Skip to first unread message

Andy Walsh

unread,
May 12, 2022, 11:51:58 PM5/12/22
to Vimu Media Player for TV Support Group
Hi, does vimu support extra data that can be send/received to the player intent/view action?

maybe something like:
Intent external = new Intent(Intent.ACTION_VIEW);
external.putExtra("position"
external.putExtra("from_start"
external.putExtra("return_result"
external.putExtra("title"

maybe audio/subtitle hints via iso language hints?

external.putExtra("audio", "jpn,eng"
external.putExtra("subtitle", "eng"
 
Also what extra data is supported for the return intent?

Intent intent = new Intent("....intent.result.VIEW");

intent.putExtra(API_END_BY
intent.putExtra(API_DURATION
intent.putExtra(API_POSITION

I try to improve the playback/resume handling, so Vimu gets the info if to resume/position directly. Also a way to hand over the "Title" would be nice, so Vimu wont just show "stream.mkv" if there are no main meta title information.

TMC

unread,
May 13, 2022, 9:04:29 AM5/13/22
to Vimu Media Player for TV Support Group
Hi,

All API information is on the web site: https://www.vimu.tv/player-api

пятница, 13 мая 2022 г. в 06:51:58 UTC+3, andy.w...@gmail.com:

Andy Walsh

unread,
May 13, 2022, 3:43:20 PM5/13/22
to Vimu Media Player for TV Support Group
Ah cool i missed this, will try to implement this.
Btw maybe its possible to add a audio/subtitle language hint? So that the intent app can send hints on what audio/subtitle language to use and Vimo can check the streams for matching?

Thanks

Alexander

unread,
May 13, 2022, 4:05:52 PM5/13/22
to gtv...@googlegroups.com
Yes. I think, this can be added in a future update.

13 мая 2022 г., в 22:43, Andy Walsh <andy.w...@gmail.com> написал(а):


--
You received this message because you are subscribed to the Google Groups "Vimu Media Player for TV Support Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gtvbox+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gtvbox/5ae12258-ae0f-4efb-bd47-217ddb574143n%40googlegroups.com.

Andy Walsh

unread,
May 13, 2022, 4:51:07 PM5/13/22
to Vimu Media Player for TV Support Group
Does Vimu still return the "position" on 1 - playback completed (to the end) ?

Andy Walsh

unread,
May 13, 2022, 5:23:44 PM5/13/22
to Vimu Media Player for TV Support Group
"forceresume" seems not to work or i missunderstand what it does?
I set the pos + forceresume and i still always get the popup window "resume from" or "start from beginning"?
What i would like, is for Vimu to resume playback directly if i set a "startfrom" position, so no popup window.

external.putExtra("startfrom", mPosition);
external.putExtra("forceresume", true);

Andy Walsh

unread,
May 13, 2022, 8:05:12 PM5/13/22
to Vimu Media Player for TV Support Group
Ah ok nm, figured it out i have to set "forceresume" to false in all cases to suppress Vimu's own resume logic. Seems to work now so far.

Just a suggestion, but why not adapt the mxplayer api names/functions? https://sites.google.com/site/mxvpen/api
This way Vimu gets automatic support for a couple of existing apps, that already have mx player api support added.
So they don't have to add special code for Vimu.

Andy Walsh

unread,
May 13, 2022, 9:43:21 PM5/13/22
to Vimu Media Player for TV Support Group
ok still have some issues.

It seems " forceresume" with false, does not fully disable Vimu's own resume logic, its just that i was not using "direct paths" anymore, so vimu got changeing urls per request and could not lookup its own resume mappings.
If i enable "direct path" so Vimu gets the same HTTP/Webdav path everytime per file, now the Resume Window pop's up every time. I would like to have this logic disabled if i set "startfrom" directly.

The next issue is regarding saving of audio/sub selection.
By default Jellyfin uses different url's per play request and also just sends "stream.mkv" as filename with it, so Vimu can't save/restore any extra audio/sub selection that was done and on replay will just use defaults.
Would be nice to maybe hand a special UID identifier we can set as extra data, that vimu can than use instead of a filename or path?

Alexander

unread,
May 14, 2022, 4:44:36 AM5/14/22
to gtv...@googlegroups.com
First of all: do you want to save resume position in your app or want vimu to save it?

14 мая 2022 г., в 04:43, Andy Walsh <andy.w...@gmail.com> написал(а):



Andy Walsh

unread,
May 14, 2022, 5:45:13 AM5/14/22
to Vimu Media Player for TV Support Group
1) I want to handle resume position in the app, so vimu just gets/returns the positions.
2) I want vimu to save/restore user set audio/sub selection based on a optionally UID/unique string, not filename/url. Maybe this can be done by using the "forcetitle" data + extra option bool?

Alexander

unread,
May 14, 2022, 6:11:55 AM5/14/22
to gtv...@googlegroups.com
1) I believe some apps already implement this logic without issues.
2) That looks like a request for the future. Maybe it would be better to return this information to a calling app same as position.

14 мая 2022 г., в 12:45, Andy Walsh <andy.w...@gmail.com> написал(а):



Andy Walsh

unread,
May 14, 2022, 6:54:20 AM5/14/22
to Vimu Media Player for TV Support Group
I tried via Jellyfin App + my changes, Vimo always engages its own resume handling in combination with the given starting position. So it will offer to resume at the input position via the Vimu resume window popup. I would like a way to suppress this window popup.

//Start Vimu player params
if (!full_title.isEmpty()) {
external.putExtra("forcename", full_title);
}
external.putExtra("forceresume", false); // disable Vimu own resume logic
if (mPosition > 0) {
external.putExtra("startfrom", mPosition.intValue());
}
//End Vimu player

Alexander

unread,
May 14, 2022, 7:24:58 AM5/14/22
to gtv...@googlegroups.com
I’ll need some time to check the sample.

14 мая 2022 г., в 13:54, Andy Walsh <andy.w...@gmail.com> написал(а):



Andy Walsh

unread,
May 16, 2022, 4:56:44 AM5/16/22
to Vimu Media Player for TV Support Group
Also could you add a action identifier for the result intent, so i can make sure its coming from vimu? Just getting a "returncode  1", is kinda vague.

Something like this:
Intent intent = new Intent("net.gtvbox.intent.result.VIEW")

thanks
Reply all
Reply to author
Forward
0 new messages