jplayer / jPlayer

jPlayer : HTML5 Audio & Video for jQuery
http://jplayer.org/
Other
4.6k stars 1.47k forks source link

How to play mp4 videos #240

Closed knvpk closed 10 years ago

knvpk commented 10 years ago

how to play mp4 videos with thia plugin

theasmoth commented 10 years ago
support: 'm4v'
obj.jPlayer('setMedia', { m4v: '%%path%%' })
knvpk commented 10 years ago

well audio is playing but there is no vedio when i supply m4v as source to jplayer. this m4v is converted from mp4 file.

theasmoth commented 10 years ago

u need to rename mp4 to m4v or edit project source

knvpk commented 10 years ago

yeah i renamed it...but no video

theasmoth commented 10 years ago

hmm... then try to use flash solution about renaming.. there is function that checks type and file type to be the same

knvpk commented 10 years ago

i tried it too...but no video

theasmoth commented 10 years ago

try other mp4 video and check video encoding (H.264/AAC)

knvpk commented 10 years ago

yeah some of mp4 files are working and some dont....may i know why there are not working

theasmoth commented 10 years ago

http://jplayer.org/latest/developer-guide/

Flash and m4a/m4v/flv Metadata
The Flash solution in jPlayer has problems playing the MP4 and FLV type formats when the metadata is missing or at the wrong end of the file.

Issues with jPlayer's Flash solution:
Symptom: Flash has to download the entire file before it plays.
Reason: Metadata at end of file.
Solution: Re-encode file for streaming, with metadata at the start.
Symptom: Flash will not pause an FLV
Reason: Metadata is missing.
Solution: Repair the FLV using FLVtool2 or YAMDI.
GitHub Issue: #89 Can not pause FLV files which have no metadata
knvpk commented 10 years ago

I understood now...Thanks for helping...and i want to know is jplayer support streaming of data other than downloading file all at a time partially

knvpk commented 10 years ago

I mean ajax operations for downloading the video and audio files