-
|
I'm slowly getting acquainted with Flyleaf. Going thru the samples, experimenting with configurations,, etc. My ultimate goal is building an IPTV app for my personal use. I'm a fairly experienced developer (Office add-ins for 20+ years), but no experience (or deepdive interest) with AVS streaming. I've noted that Audio.Streams.Count varies from 0 to a few. The zero count appears related to Embedded stuff. (tbh: No idea). Can't find anything in samples. A quick tip to point me in the right direction would be highly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
|
Hi @xlsupport, I suggest your read the following (if you didn't already):-
So, the default suggest stream logic works with the plugins and the default one can be found here I'm not sure what you want to achieve, but maybe in your case you can simply do the following:- // Use your own async logic and do the following steps in sync mode
// Open the input but don't enable any embedded streams yet so you can decide after open that you will have all the required info
Player.Open(@"url", defaultPlaylistItem: true, defaultVideo: false, defaultAudio: false, defaultSubtitles: false);
// After checking what you want to enable, start enabling the stream but resync only at the last one for performance (or don't resync at all if you just opening, to avoid seek completely)
Player.Open(Player.Audio.Streams[0], resync: false); // Always prevent resync when you plan to enable more streams (prefer video stream when you plan to resync)
Player.Open(Player.Video.Streams[0], resync: false, defaultAudio: false); // 1.Don't let it choose the audio stream, 2. Don't seek at all as we consider is initially resynced (if we seek/resync it can even cause issues in some cases/formats)
// You manually need to start Playing
Player.Play();The disadvantaged of this is that you don't use Flyleaf's workflow logic, so ideally you might want to write your own StreamSuggester with higher priority from the default one. Note that you might create a higher bandwidth while enabling an audio stream that it's on different program than video stream. (default suggest logic aware of that) NOTE: Currently undocumented Engine.Plugins.LoadPlugin(Assembly.GetExecutingAssembly()) |
Beta Was this translation helpful? Give feedback.
-
|
Just saw your styling of the Outlined/Shadowad subtitles in FlyLeafMe.xaml... Try following ;-) (Shadow colors,direction distance etc can be specified in the Effect, but the default works pretty good for me..) Did I mention I was new to this AVS stuff? |
Beta Was this translation helpful? Give feedback.
Hi @xlsupport,
I suggest your read the following (if you didn't already):-
So, the default suggest stream logic works with the plugins and the default one can be found here
I'm not sure what you want to achieve, but maybe in your case you can simply do the following:-
(NOTE: I found a null reference bug which I will fix soon, long time to use this way manually)