# \[Pro\] HTML5 Video and Safari problem

**URL:** <https://discourse.softpress.com/t/pro-html5-video-and-safari-problem/11473>\
**Category:** Freeway\
**Created:** [July 24, 2011, 8:24am UTC](https://discourse.softpress.com/t/pro-html5-video-and-safari-problem/11473 "2011-07-24T08:24:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![G\_Tate](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/g/a5b964/32.png) [@G\_Tate](https://discourse.softpress.com/u/G_Tate)\
**Post date:** [July 24, 2011, 8:24am UTC](https://discourse.softpress.com/t/pro-html5-video-and-safari-problem/11473/1 "2011-07-24T08:24:40Z")

</div>

I have uploaded a test site in a corporate environment. It uses Spawn New Window to bring up the html5 video.

The videos are m4v, H.264 – encoded in Handbrake and web-optimised. With the alternative ogv versions. All the files are in the media folder for the website.

I use a Macbook Pro to create and upload the site in the corporate environment. The videos play fine in the site. They play fine in both Firefox and Safari (latest versions). I take the Macbook home and open the site via broadband and the videos play fine in both browsers.

However – when I go upstairs to the desktop (latest OS version 10.7 and same with previous 10.6) the videos will not open in Safari, even though they will in Firefox. The triggers are gif animations which then bring up a page with the html5 video. In Safari the page opens with the video box controls on the bottom showing the word ‘Loading …’. But they don’t load. This is also the case with another macbook at home - even though they play on the Macbook I use in the corporate office.

I went into the Apple shop yesterday and tried loading the site on iPad. Everything payed fine. However, again, when I tried it on a desktop machine, Safari would not load the videos.

Can anyone help?

Thanks

G Tate

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![Andre\_Rombauts](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/a/858c86/32.png) [@Andre\_Rombauts](https://discourse.softpress.com/u/Andre_Rombauts)\
**Post date:** [July 24, 2011, 8:31am UTC](https://discourse.softpress.com/t/pro-html5-video-and-safari-problem/11473/2 "2011-07-24T08:31:55Z")

</div>

> I have uploaded a test site in a corporate environment. It uses Spawn New Window to bring up the html5 video.

The link cannot be shared?

–  
André Rombauts  
email@hidden  
Belgium

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![G\_Tate](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/g/a5b964/32.png) [@G\_Tate](https://discourse.softpress.com/u/G_Tate)\
**Post date:** [July 24, 2011, 8:59am UTC](https://discourse.softpress.com/t/pro-html5-video-and-safari-problem/11473/3 "2011-07-24T08:59:54Z")

</div>

Its a test site not for public consumption yet.

Sorry.

G Tate

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [July 24, 2011, 12:23pm UTC](https://discourse.softpress.com/t/pro-html5-video-and-safari-problem/11473/4 "2011-07-24T12:23:05Z")

</div>

Is the site available for anyone to see, or is it inside your  
firewall? I may be able to help you diagnose this, but I would need to  
see the source code of the popup window to be sure. My hunch is that  
the link to the file is somehow bound to the version on your MacBook,  
and the HTML works as long as the network can resolve a path to that  
machine. But that’s just a hunch. The code knows.

Walter

On Jul 24, 2011, at 4:24 AM, G Tate wrote:

> Can anyone help?

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [July 24, 2011, 12:25pm UTC](https://discourse.softpress.com/t/pro-html5-video-and-safari-problem/11473/5 "2011-07-24T12:25:23Z")

</div>

View source on the popup window (in your browser where it works),  
select all, copy, and go to Gist or Pastie and paste it. Share the  
link to that. We can tell a whole lot from the source code.

Walter

On Jul 24, 2011, at 4:59 AM, G Tate wrote:

> Its a test site not for public consumption yet.
> 
> Sorry.
> 
> G Tate
> 
> * * *
> 
> freewaytalk mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![G\_Tate](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/g/a5b964/32.png) [@G\_Tate](https://discourse.softpress.com/u/G_Tate)\
**Post date:** [July 24, 2011, 4:13pm UTC](https://discourse.softpress.com/t/pro-html5-video-and-safari-problem/11473/6 "2011-07-24T16:13:15Z")

</div>

Walter has had alook at the site - some feedback below which could be of interest to all. Thanks Walter.

* * *

'I did see some spaces in your filenames in one of the popup images – I didn’t look at all of them, so I’m not sure if that’s common or a single mistake.

You should avoid all use of spaces and punctuation in filenames, with the only excepting being the dot before the file-type extension. If you really want to, you can use the underscore to mark word boundaries.

## Spaces are especially bad, because in a Unix command (which is precisely what every URL ends up being a part of) a space indicates the end of a variable and the beginning of the next variable. Since the entire URL is a single variable being passed to a program, you really want it to be unambiguously a single variable.’

GT

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [July 24, 2011, 6:02pm UTC](https://discourse.softpress.com/t/pro-html5-video-and-safari-problem/11473/7 "2011-07-24T18:02:16Z")

</div>

Just to emphasize this a little bit more. When I say filename, I  
really mean file PATH, which encompasses all the folder names as well  
as the name of the file. So if you look at your server or your local  
site folder, you should never see any names of anything that include  
spaces.

Walter

On Jul 24, 2011, at 12:13 PM, G Tate wrote:

> You should avoid all use of spaces and punctuation in filenames,  
> with the only excepting being the dot before the file-type  
> extension. If you really want to, you can use the underscore to mark  
> word boundaries.

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)
