Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get current position time from javascript #2

Open
dakora1310 opened this issue Dec 16, 2015 · 0 comments
Open

how to get current position time from javascript #2

dakora1310 opened this issue Dec 16, 2015 · 0 comments

Comments

@dakora1310
Copy link

hello. I try to get current position time of film. I found method position()
public function get position() : Number {
return _hlsNetStream.position;
};
in HLS.as, but I dont know how use it. Pls help me.

flashvars = {
src: "http://"+escape(url),
autoPlay:true,
verbose: true,
plugin_m3u8: "OSMFHLSPlugin.swf",
clipStartTime:0,
javascriptCallbackFunction: "onJavaScriptBridgeCreated",
plugin_hls: "HLSProviderOSMF.swf",
hls_minbufferlength: -1,
hls_maxbufferlength: 30,
hls_lowbufferlength: 3,
hls_seekmode: "SEGMENT_SEEK",
hls_startfromlowestlevel: false,
hls_seekfromlowestlevel: false,
hls_live_flushurlcache: false,
hls_info: true,
hls_debug: false,
hls_debug2: false,
hls_warn: true,
hls_error: true,
hls_fragmentloadmaxretry : -1,
hls_manifestloadmaxretry : -1,
hls_capleveltostage : false
};
var params = {wmode: "opaque", allowFullScreen: true, allowScriptAccess: "always", bgcolor: "#000000"};
var attrs = {name: "videoplayer", style:"position:absolute", id:"videoplayer"}; //position:relative;width:100%;height:100%;z-index:1;right:0
swfobject.embedSWF("StrobeMediaPlayback.swf", "videoplayer", "100%", "100%","10.2",{}, flashvars, params, attrs);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant