Comments (10)
Hi @mangui,
I'm interested this feature. How is going development? :) I have experience with OSMF but not Flashls API. Could you give me an entry point to implement it?
Thanks.
from flashls.
Hi @kalimba
basically you need to retrieve clipStartTime and clipEndTime from StreamingURLResource (available here : https://github.com/mangui/flashls/blob/master/src/org/mangui/osmf/plugins/loader/HLSLoaderBase.as#L117)
then you would have to pass these values to HLS OSMF traits (all traits dealing with playlist duration / media position / buffer size, they are here : https://github.com/mangui/flashls/tree/master/src/org/mangui/osmf/plugins/traits) and take these clipping parameters into account.
having basic clipping working for VoD playlist should not be too complex, but handling live playlist (with sliding window) might be more difficult.
from flashls.
Hi @mangui,
i'm going to use only for VOD. It is impelented to osmf-hls-plugin. At https://github.com/denivip/osmf-hls-plugin/blob/cc2a21335835a25f929ec091fd0681294f0d92be/HLSPlugin/src/org/denivip/osmf/elements/m3u8Classes/M3U8PlaylistParser.as
from flashls.
Hi @mangui ,
I have looked around. It is too complex for me. Do you have any schedule to add the feature?
Thanks.
from flashls.
no schedule
from flashls.
Hi @mangui ,
You have mentioned that clipStartTime and clipEndTime values need to be passed to HLS OSMF traits. Could you please elaborate when and how these values need to be handled in traits?
Thanks.
from flashls.
Hi @sathasivam11
you need to handle conversion from flashls position/duration/buffer length (which are real position) to
subclip position/duration/buf length.
according to https://github.com/theturtle32/OSMF-AppleHLS/blob/master/OSMF/org/osmf/net/StreamingURLResource.as#L86-L87,
one way is to perform this conversion in the Traits (HLSNetStreamLoadTrait,HLSSeekTrait.as,HLSTimeTrait)
but there is still one issue : when reaching the end of the subclip, the playback should stop automatically. and a playback complete event should be triggered to OSMF.
the best solution would be to add this subclip functionality in flashls itself, and modify _hls.load() prototype (add 2 optional args, clipStartTime and clipEndTime).
from flashls.
please note that subclipping has been implemented in FlashlsFlowplayer, refer to the last commits on https://github.com/mangui/flashls/commits/master/src/org/mangui/flowplayer/HLSStreamProvider.as
same logic could be easily adapted to FlashlsOSMF
from flashls.
Hi @mangui,
If this enhancement is easy for you, adding this would be great, please. I'm experience with OSMF, not Flowplayer or Flashls core.
Thanks
from flashls.
Hi @mangui
Should i focus there lines to implement it?
flashls/src/org/mangui/osmf/plugins/loader/HLSLoaderBase.as
->
flashls/src/org/mangui/osmf/plugins/loader/HLSLoaderBase.as
Lines 91 to 131 in b4f4b2e
flashls/src/org/mangui/osmf/plugins/traits/HLSNetStreamLoadTrait.as
->
flashls/src/org/mangui/osmf/plugins/traits/HLSNetStreamLoadTrait.as
Lines 49 to 65 in b4f4b2e
Thanks
from flashls.
Related Issues (20)
- Can this flash plugin support videojs version 6?
- probe fragment type fails on encrypted audio only .m4a files
- how to disabled auto level?
- Set custom referer and useragent
- I build an app with "adobe air", flashls support ios ? HOT 1
- Mute stream?
- CEA-608/EIA-608 Closed-captions are not getting rendered in v0.4.4.24 HOT 2
- video playback stutters in a specific scenario with alternative audio playlist
- setting new AudioTrack HOT 1
- Audio Track switch in FlashHls HOT 16
- What is relation between releases? HOT 2
- Video is buffering (or freezes) after Audio Track change HOT 1
- Any plan to support Subtitles in the official release? HOT 1
- M3u8 Not Playing after first ts segment
- Downloaded .ts (AES-128) doesn't play, probably still encrypted
- How to retrieve id3 tags through opencv
- how can i set query string on ts request?
- Issue with ABR switching to highest variant available HOT 1
- flashls doesn't play stream with AES-128 Encryption. It tries to load only the first segment HOT 2
- Subtitles are missing...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flashls.