Wowza Community

HTTP streaming / start from any second

Hello and good time of day.

Is there any way to implement youtube-like feature to start from any moment in http video-on-demand mode?

There is no way to use rtmp in some cases.

Thanks in advance.

Hi Eliont, if I’M not mistaken , for http playback iphone directly open its native player , ipad can play video on custom html5 player, also mac too.

This problem can be solved with javascript.

function seekTo(evt) {

evt.target.currentTime = theSeekTime;

evt.target.removeEventListener(“loadeddata”, seekTo); /*loaded data is media event of Mozilla, https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events */

};

var theSeekTime = whatSecondsYouWannaSeek ; //int

if ((navigator.userAgent.indexOf(‘iPhone’) != -1) || (navigator.userAgent.indexOf(‘iPod’) != -1) || (navigator.userAgent.indexOf(‘iPad’) != -1)) {

this.addEventListener(“loadeddata”, seekTo);

}else{

this.currentTime = theSeekTime ;

}

I wish it will help you.

Emre Karatasoglu

emre.karatasoglu@hotmail.com

http://letheasoftware.com

http://emrekaratasoglu.com

Hi,

Please take a look at the “How to specify a play start time and duration for HTTP streaming” forum article.

I think that using this you can achieve your desired workflow.

Zoran

I wish it will help you.

Thanks, but i need to get it works not only on tablets.

Something like:

Skip the first ten seconds:

http://*.*.*.*:*/vod/mp4:sample.mp4/playlist.m3u8?start=10000

or

http://*.*.*.*:*/vod/sample.mp4?start=10000

Seeking to any moment of vod with http.

iOS link works on android tablets too, but not on desktop.

‘Other’ link using ‘rtsp’ instead of http.

Big thanks, i will read and try.