Why can I seek .mp3 files JWPlayer? - html

I am using JWPlayer to play .mp3 files on my website, however I am having trouble with the behaviour of the player with links from my download system.
Visit this test page I have created http://bit.ly/TLwEHc
The first player which contains a link to a real directory with a file and this plays just fine, however on the second player which contains a link to a script which generates a file does not.
I have tried replicating the headers in the generated file but it still has not made a difference.
Could anyone tell me what could be causing this behaviour and how I could resolve this?

Check this link to see that Content-Range header needs to be supported in order to seek.
I also checked with one more url and audio works fine and seeks correctly
Demo Link

Related

Download segmented SWF webpage

This has been doing my head in and I cannot for the life of me figure out how to download this SWF webpage.
It starts by loading story.swf then it makes calls to other SWF files as it goes along.
The flash itself is interactive this the need to call different segments a it loads the next 'slide'.
But I cannot figure out a way to download it for offline use. I tried loading the entire document which was 200mb and downloading the cache - no go. I tried to use extensions on chrome, Safari and Firefox - no avail
I really don't want to screen capture the entire file, but I was wondering if there were interactive flash file downloaders. I can see there are over 1000 files but cant download them
As #VC.One said, it is not possible due to the server needing to be present. It was constantly changing the string attached to the swf

Internet Explorer 11 HTML5 audio duration = infinity issue

Today I've met an unpleasant issue. There is a website with a custom HTML5 audio player. After the page loads, I try to echo document.getElementById("myAudioId").duration, it is needed in order to make navigation possible. In every other browser it works just fine, the duration is showed, but IE11 works differently - it shows that duration equals Infinity. But as I noticed, when the song is buffered to the end, the duration magically appers and the navigation works. In other browsers everything works from the start. The content-length headers are set up. What could it be?
UPD: Other sites with HTML5 audio let me see the duration from the very start. The duration, I guess, is part of metadata and could be loaded even without preloading the audio file using preload="metadata", but it also doesn't work.
UPD2: I've also tried playing around with jsfiddle and created the same audio tag there with same MP3 audio - there was the same situation. But then I've inserted link to another MP3 there, from another site - and it worked!. More than that, I've uploaded this second song to the first problematic website and after that the song that worked perfectly couldn't also show me its duration and stuff. So now I think it's something on server side. But don't know what it is.
UPD3: Finally, I've been told that files are converted using FFMPEG to MP3 128bit, then they stop being OK. Now I need to find how should I convert MP3s so they are OK.
It works for me locally, but when uploaded to server, it does not.
It seems that player.duration do not work in IE 11:
https://msdn.microsoft.com/en-us/library/dn254962(v=vs.85).aspx

Pseudo-Stream flv from other server, using a local html file

Is it possible to pseudo-stream a flv video on an external server that only allows pseudo-streaming if you watch the video from a website hosted on this external server?
I want to access the flv file using a html file on my pc. (Not using another website.)
I tried it using the flowplayer, but it wasn't pseudo-streaming (I couldn't seek behind the point in the video that wasn't already downlaoded).
Btw if I download the whole sourcecode of the external site and try to run it in my browser the player stays black and doesn't do anything.
If it is not possible, it would be nice if you would explain me why. :)
And yes I have permission to do this.
edit:
Sorry, I'm soo stupid. -.-
I used a flowplayer configuration that didn't allow pseudo-streaming.
The example on this site works great: http://flash.flowplayer.org/demos/plugins/streaming/
So in order to "Seek" via flash or html 5, you need something called a Moov Atom, you could think of the Moov Atom much as you would a Key Frame in a Standard Mpeg 2 file.
If you have the Moov Atoms (you can apply these with atomic parsley or other encoders - Just Google how to add Moov atoms to flv.) you will then be able to seek from atom position to atom position. [Much like when you seek an mpeg it moves from keyframe to keyframe]
I have tried to keep this answer generalist, as I don't think you really want to know all the finer details of the flv container or it's playback.
Hope this helped.
Cheers
Craig

flash is does not auto play on one server but auto plays on another server

I have the same flash file uploaded to two servers. It seems to work perfectly fine on one (IE, Firefox and Chrome) but on the other it works only on Firefox, not even chrome.
The thing is I guess the flash file does load, but until I right click and click play, the file does not start playing.
Could this have anything to do with the server (yahoo small business)
Whether or not a flash file autoplays depends on the HTML code used to embed it - specifically the play parameter (full info here). So the difference you're seeing is not the two servers, but two slightly different HTML pages.
With that said, however, the "play" parameter is only a default behavior - like a suggestion. If you put a play() command in the first frame of the Flash content, then whatever is in the HTML will be ignored, and your SWF will start out playing regardless of how it gets embedded.

Embedding Quick Time movies in HTML Pages

I am trying to embed QuickTime movies into my HTML/ASPX pages but somehow they work on local machine but when i deploy them on my server they dont play at all. I tried all sorts of options but still unable to find a reason for that.
anybody else have been though this issue ?
I did a quick research and find few resources but even though following them works on my local machine but not on production. I am wandering , do i need to setup some sort of streaming to just embed few videos files or what ?
and yeah i did follow the apple article too (who put the blame on simply internet explorer) while my firefox shows the same result. I got the image (startup) but no video as i click to play.
One video is of 11 MB while other is 50 MB. I renamed the files by removing all the spaces now and i can see the QuickTime plugin initiating but after a while the Question Mark is appearing on the QuickTime Logo. Mime type is also video/quicktime so which is correct.
Actually the issue was not with my Page, The QuickTime movies require QuickTime (mov movies) and ITune (m4v movies)to be installed on Server. Hence after installing both softwares, the issues are resolved
How large are the videos? If you are not streaming the plugin may need to download the entire file before it can play, whereas locally it does not. That could cause a very long pause before the movie starts.
Point your browser directly to the movie's URL — not the containing page. See what error you get. Also, is the MIME type correct?