brandly / angular-youtube-embed

:tv: Embed a YouTube player with a simple directive

Home Page:http://brandly.github.io/angular-youtube-embed/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't play video in ios 7

brunoacc opened this issue · comments

Hello guys,

I am developing an app for a channel, everything has worked correctly, but when I test the ionic view, I can not give play the video through an iPhone 4 or 4S. He simply did not not call the action on the button, appearing to be just a picture or something similar. Does anyone have any solutions?

Thanks
thumb_img_0958_1024

Autoplay or play without user action is disabled by mobile os. Only
solution is a native app I'm afraid.
On Fri, 2 Oct 2015 at 00:59, Bruno Accorsi notifications@github.com wrote:

Hello guys,

I am developing an app for a channel, everything has worked correctly, but
when I test the ionic view, I can not give play the video through an iPhone
4 or 4S. He simply did not not call the action on the button, appearing to
be just a picture or something similar. Does anyone have any solutions?

Thanks
[image: thumb_img_0958_1024]
https://cloud.githubusercontent.com/assets/8299753/10240390/9c24a02a-68b1-11e5-9844-fe575f00c87e.jpg


Reply to this email directly or view it on GitHub
#75.

@qubird Thanks for the answer!

How to put a user action to play video?

If you wanna test, this is id of ionic view: dd378440

The user has to click the play icon displayed on the video. You can't do
that programmatically.
On Fri, 2 Oct 2015 at 14:03, Bruno Accorsi notifications@github.com wrote:

@qubird https://github.com/qubird Thanks for the answer!

How to put a user action to play video?


Reply to this email directly or view it on GitHub
#75 (comment)
.

I seem to have same issue. I can see the thumbnail and play button but tapping on the button simply doesn't trigger anything. If I tap rapidly about 10s, it manages to play. Seem very long delay or something broken. Sad ...

simulator screen shot dec 22 2015 4 51 20 pm
one more hint: if I tap on share button on top right corner then tap play button, it works. If I tap play button first, it doesn't.

I'm having the same problem ONLY ON iOS.
Checked on iOS 9.x and also on iOS 8.x.
It seems that the play button disfunction most of the time. Once in a while it works...
I must say that on Android everything works fine.

Any hint?

this is the log from console, got it after fullscreen video starts playing.

This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes.  This will cause an exception in a future release.
 Stack:(
    0   CoreFoundation                      0x0000000180a89918 <redacted> + 148
    1   libobjc.A.dylib                     0x00000001800f7f80 objc_exception_throw + 56
    2   CoreFoundation                      0x0000000180a89848 <redacted> + 0
    3   Foundation                          0x00000001815272d4 <redacted> + 88
    4   Foundation                          0x00000001813a947c <redacted> + 36
    5   UIKit                               0x00000001858835e0 <redacted> + 64
    6   UIKit                               0x00000001858840f8 <redacted> + 244
    7   UIKit                               0x0000000185fed8b4 <redacted> + 268
    8   UIKit                               0x0000000185a8afac <redacted> + 176
    9   UIKit                               0x0000000185777778 <redacted> + 656
    10  QuartzCore                          0x0000000183186b2c <redacted> + 148
    11  QuartzCore                          0x0000000183181738 <redacted> + 292
    12  QuartzCore                          0x00000001831815f8 <redacted> + 32
    13  QuartzCore                          0x0000000183180c94 <redacted> + 252
    14  QuartzCore                          0x00000001831809dc <redacted> + 512
    15  WebCore                             0x00000001852e0dc4 <redacted> + 176
    16  WebCore                             0x00000001852a3ba4 <redacted> + 368
    17  CoreFoundation                      0x0000000180a40efc <redacted> + 24
    18  CoreFoundation                      0x0000000180a40990 <redacted> + 540
    19  CoreFoundation                      0x0000000180a3e690 <redacted> + 724
    20  CoreFoundation                      0x000000018096d680 CFRunLoopRunSpecific + 384
    21  WebCore                             0x000000018451d738 <redacted> + 456
    22  libsystem_pthread.dylib             0x00000001806f3b28 <redacted> + 156
    23  libsystem_pthread.dylib             0x00000001806f3a8c <redacted> + 0
    24  libsystem_pthread.dylib             0x00000001806f1028 thread_start + 4
)
2015-12-22 17:56:47.417 PrettyApp[379:31640] This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes.  This will cause an exception in a future release.
 Stack:(
    0   CoreFoundation                      0x0000000180a89918 <redacted> + 148
    1   libobjc.A.dylib                     0x00000001800f7f80 objc_exception_throw + 56
    2   CoreFoundation                      0x0000000180a89848 <redacted> + 0
    3   Foundation                          0x00000001815272d4 <redacted> + 88
    4   Foundation                          0x00000001813a947c <redacted> + 36
    5   UIKit                               0x00000001858835e0 <redacted> + 64
    6   UIKit                               0x0000000185fed1e4 <redacted> + 156
    7   UIKit                               0x00000001858844c4 <redacted> + 100
    8   Foundation                          0x00000001813a9500 <redacted> + 168
    9   UIKit                               0x00000001858835e0 <redacted> + 64
    10  UIKit                               0x00000001858840f8 <redacted> + 244
    11  UIKit                               0x0000000185fed8b4 <redacted> + 268
    12  UIKit                               0x0000000185a8afac <redacted> + 176
    13  UIKit                               0x0000000185777778 <redacted> + 656
    14  QuartzCore                          0x0000000183186b2c <redacted> + 148
    15  QuartzCore                          0x0000000183181738 <redacted> + 292
    16  QuartzCore                          0x00000001831815f8 <redacted> + 32
    17  QuartzCore                          0x0000000183180c94 <redacted> + 252
    18  QuartzCore                          0x00000001831809dc <redacted> + 512
    19  WebCore                             0x00000001852e0dc4 <redacted> + 176
    20  WebCore                             0x00000001852a3ba4 <redacted> + 368
    21  CoreFoundation                      0x0000000180a40efc <redacted> + 24
    22  CoreFoundation                      0x0000000180a40990 <redacted> + 540
    23  CoreFoundation                      0x0000000180a3e690 <redacted> + 724
    24  CoreFoundation                      0x000000018096d680 CFRunLoopRunSpecific + 384
    25  WebCore                             0x000000018451d738 <redacted> + 456
    26  libsystem_pthread.dylib             0x00000001806f3b28 <redacted> + 156
    27  libsystem_pthread.dylib             0x00000001806f3a8c <redacted> + 0
    28  libsystem_pthread.dylib             0x00000001806f1028 thread_start + 4
)
2015-12-22 17:56:47.422 PrettyApp[379:31640] This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes.  This will cause an exception in a future release.
 Stack:(
    0   CoreFoundation                      0x0000000180a89918 <redacted> + 148
    1   libobjc.A.dylib                     0x00000001800f7f80 objc_exception_throw + 56
    2   CoreFoundation                      0x0000000180a89848 <redacted> + 0
    3   Foundation                          0x00000001815272d4 <redacted> + 88
    4   Foundation                          0x00000001813ad99c <redacted> + 56
    5   Foundation                          0x00000001813a955c <redacted> + 260
    6   UIKit                               0x00000001858835e0 <redacted> + 64
    7   UIKit                               0x00000001858840f8 <redacted> + 244
    8   UIKit                               0x0000000185fed8b4 <redacted> + 268
    9   UIKit                               0x0000000185a8afac <redacted> + 176
    10  UIKit                               0x0000000185777778 <redacted> + 656
    11  QuartzCore                          0x0000000183186b2c <redacted> + 148
    12  QuartzCore                          0x0000000183181738 <redacted> + 292
    13  QuartzCore                          0x00000001831815f8 <redacted> + 32
    14  QuartzCore                          0x0000000183180c94 <redacted> + 252
    15  QuartzCore                          0x00000001831809dc <redacted> + 512
    16  WebCore                             0x00000001852e0dc4 <redacted> + 176
    17  WebCore                             0x00000001852a3ba4 <redacted> + 368
    18  CoreFoundation                      0x0000000180a40efc <redacted> + 24
    19  CoreFoundation                      0x0000000180a40990 <redacted> + 540
    20  CoreFoundation                      0x0000000180a3e690 <redacted> + 724
    21  CoreFoundation                      0x000000018096d680 CFRunLoopRunSpecific + 384
    22  WebCore                             0x000000018451d738 <redacted> + 456
    23  libsystem_pthread.dylib             0x00000001806f3b28 <redacted> + 156
    24  libsystem_pthread.dylib             0x00000001806f3a8c <redacted> + 0
    25  libsystem_pthread.dylib             0x00000001806f1028 thread_start + 4
)```

@appnupNet #17
I'm gonna try this. hope this help. until we have complete fix for the issue.

@Silvercast
Thank you for your help - but it doesn't work for me...

sorry that things aren't working! this directive relies on YouTube's own library (via https://www.youtube.com/iframe_api) to embed the videos. ideally, cross-platform issues are handled directly by them.

i searched around a bit and found other people having issues with YouTube videos on iOS that have nothing to do with this directive, so i'm guessing it's outside my control, but i'm open to any feedback you all have