Paul,
Something very important is that you shouldn't change a .m4v extenxion
to .mov.
M4v, m4a, m4p, etc. are all mp4 files and their extension can be
replaced by mp4. That can help with some device which "understand"
"mp4" but not "m4X". But concerning mov, though both files are very
similar, a mp4 is not a mov.
And since the iPhone is supposed to understand any of those
extensions, there is no need for a modification.
I think your problem is actually the mime-mapping. I reproduced it on
a basic tomcat 5.0. You have to tell it how to handle m4v or mp4 files.
Here is the solution for Tomcat :
Open web.xml in the "conf" folder.
Find the mime-mappings and add these two :
<mime-mapping>
<extension>m4v</extension>
<mime-type>video/mp4</mime-type>
</mime-mapping>
<mime-mapping>
<extension>mp4</extension>
<mime-type>video/mp4</mime-type>
</mime-mapping>
If you work on Apache, it should be in mime.types :
video/mp4 mp4 mp4v mpg4 m4v
I hope that will help. If not, what server is your site on ?
Pierre
Le 4 nov. 08 à 18:27, olicat a écrit :
>
> hi Pierre,
> thanks for your reply.
> I've changed my page so that I now have:
> <a href="http://video_url.com.mov"><img src="images/video.png"></a>
> when viewing the page and clicking that image in the iPhone, I get the
> same message.
> I'm almost certain the video is a valid iPod one, I got it from the
> apple support site, here:
> http://www.info.apple.com/images/kbase/302892/sample_iPod.m4v.zip
> The only difference being the name (I've changed it to sample_iPod.mov
> rather than .m4v).
>
> with the .mov extension i get: "this movie could not be played"
> with the .m4v i get: "safari cannot download this file"
>
> not sure what's going wrong....
>
> thanks again,
> paul.
>
> On Nov 4, 4:54 pm, Pierre Bussière <[EMAIL PROTECTED]> wrote:
>> Hi Paul,
>>
>> You have indeed to use a link for the iPhone to detect and play the
>> video. It can be an image linked to your video file as am alternative
>> to the embedded video, which the iPhone cannot play from within the
>> page.
>>
>> You got a "can't be played" message, this usually means your file is
>> not compatible with the device, which complies to a narrow range of
>> mp4 spec. Does it play when you load it via iTunes ?
>>
>> Pierre
>>
>> On 4 nov. 08, at 16:03, olicat <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>> Hi all,
>>> I've tried various different methods of playing h264 quicktime files
>>> via an xhtml page, but i can't get anything to work.
>>
>>> all the docs i've looked into have suggested creating a reference
>>> movie, however i'm developing on linux so that functionality isn't
>>> available.
>>
>>> using apple's QT_WriteObject gives me a crossed out play button
>>> here's the javascript code i'm using:http://pastebin.ca/1244909
>>
>>> i've also tried going to the video's url directly, the iphone media
>>> player starts (which looks promising), but then returns an error
>>> "this
>>> movie could not be played"
>>
>>> any ideas?
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---