Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Music - playback doesn't work in Safari #2

Closed
MorrisJobke opened this issue May 23, 2013 · 17 comments
Closed

Music - playback doesn't work in Safari #2

MorrisJobke opened this issue May 23, 2013 · 17 comments

Comments

@MorrisJobke
Copy link
Contributor

When accessing the Music app under Safari 6.0.1 (7536.26.14) - according to software update the most recent version - running on Mac OS 10.7.5, I can enqueue songs (mp3 files) just fine, but pressing the play button results in no action (no playback) - the play button turns into the pause button for a very short time, then back into the play button. With firefox (also under the same Mac OS) playback works.


Originally reported by @RandolfCarter at owncloud-archive/apps#45

@MorrisJobke
Copy link
Contributor Author

Could you provide more details like: What kind of video did you try to look at? Container (avi, mkv etc) audio and video codecs.


Original comment by @Raydiation at owncloud-archive/apps#45 (comment)

@MorrisJobke
Copy link
Contributor Author

Oh that was misformulated, I'm actually referring to the "Music" section; it happens when I want to play songs (which are mp3 files) - the same songs work in Firefox but not Safari (i.e., no music playback at all in Safari, for me). I clarified the initial description to that end as well.


Original comment by @RandolfCarter at owncloud-archive/apps#45 (comment)

@MorrisJobke
Copy link
Contributor Author

I can verify that this issue is also present when using Chrome. In Firefox it works but not in Chrome.

The request for the file is shown as cancelled in the developer tools panel:

I'll try to debug it further and see what I can find..


Original comment by @rickard2 at owncloud-archive/apps#45 (comment)

@MorrisJobke
Copy link
Contributor Author

Hi,

@butonic @icewind1991

I want to play my OC music on Safari
But Safari doesn't want to play my OC music

This fix - https://github.com/owncloud/apps/blob/64ce426e073fff7118a5b0f5490f6887ef08ef2f/media/ajax/api.php - works on Firefox & Chrome but not on Safari

Steps to reproduce

1. Open Safari
2. Go to your OwnCloud, in Media section
3. You can't play music at all

Server configuration

Hardware :Hackberry A10

Operating system:Debian Wheezy ARM

Web server: Nginx

Database: MySQL

PHP version: PHP 5.4.4-14

ownCloud version: 5.0.0

Client Configuration

Browser:Safari 6.0.3

Operating system:OS X 10.8.3

Logs

Web server error log

No recent errors so no logs

ownCloud log (data/owncloud.log)

{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":1364181546}


Original comment by @HLFH at owncloud-archive/apps#45 (comment)

@MorrisJobke
Copy link
Contributor Author

Thanks in advance for solving Safari bug :p ( cc @Raydiation )


Original comment by @HLFH at owncloud-archive/apps#45 (comment)

@MorrisJobke
Copy link
Contributor Author

Hi,
I have the same issue. Safari on iPad does not play music.


Original comment by @psamim at owncloud-archive/apps#45 (comment)

@DeepDiver1975
Copy link
Member

@MorrisJobke what's the status on Safari and Safari on iphone/ipad? THX

@MorrisJobke
Copy link
Contributor Author

@DeepDiver1975 Didn't test it yet. I will ask a friend with iDevices to test ;)

@MorrisJobke
Copy link
Contributor Author

I will met with him next week to test on iPhone/iPad and OS X.

@BernhardPosselt
Copy link

@MorrisJobke why did you CC me :)? No apple devices in my house

@MorrisJobke
Copy link
Contributor Author

@Raydiation Because you posted a previous comment to this ;) #2 (comment) And they were copied over to this repo ;)

@BernhardPosselt
Copy link

ah i see :)

@MorrisJobke
Copy link
Contributor Author

It works on Safari for OS X but the duration isn't set (see #229 )
On iOS devices the sound playback is limited to direct user interaction and can't be done in ackground from a browser window. So the phonegap app is a possible way to listen to a music stream on iOS devices - cc @jbtbnl ;)

@jbtbnl
Copy link
Contributor

jbtbnl commented May 8, 2014

@MorrisJobke do you mean that no sound is played or that seek doesn't work?

If seek isn't supported I suppose that we should use the Cordova Media API then instead of soundmanager. Any idea if it's easy to switch out the sound back-end in your code?

@MorrisJobke
Copy link
Contributor Author

@jbtbnl The playback works but the seeking doesn't show up, because soundmanager doesn't know about the length of the music file. It's weird because on all other browsers I can look in the web dev tool at the response - in safari the response view is broken for the download request and we tried two different webserver instances (the first throws a weird error which looks like a broken request for the download URL)

@jbtbnl
Copy link
Contributor

jbtbnl commented May 8, 2014

@MorrisJobke so it's either a bug in iOS or soundmanager?

@MorrisJobke
Copy link
Contributor Author

@jbtbnl I don't know :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants