Hangouts are used by Google to provide streaming of live-events in youtube.
The problem with Video Embeded Field is that pasting a code of a live event result in streaming of the event from the beginning of the event for users, rather than starting from current time.
Setting "autostart" doesn't help.
Thi is not a problem of Google itself, as embedding this code on the same page (a textarea) works:
<iframe width="420" height="315" src="http://www.youtube.com/embed/3ks1uVrvS1k" frameborder="0" allowfullscreen></iframe>
This is instead the embedded code produced by the video_embed_field module:
<iframe width="500px" height="350px" src="//www.youtube.com/embed/3ks1uVrvS1k?width=500px&height=350px&theme=dark&autoplay=1&hd=1&rel=0&showinfo=0&modestbranding=1&iv_load_policy=1&autohide=2&start=0&wmode=opaque" frameborder="0" allowfullscreen></iframe>
Is there an option that can be changed ?
Comment | File | Size | Author |
---|---|---|---|
#6 | video_embed_field-2009048-livestreaming-starts-at-zero-2.patch | 1.05 KB | randallknutson |
#3 | video_embed_field-2009048-livestreaming-starts-at-zero.patch | 1.05 KB | randallknutson |
Comments
Comment #1
sylvaticus CreditAttribution: sylvaticus commentedok, I got it.. the problem is.. guess what, "start=0".
I can unset start from $settings in video_embed_field.handlers.inc but will I get problems somewhere else?
Can I use the api to do it on my own module ?
I tried to use this code but it is never executed:
Comment #2
sylvaticus CreditAttribution: sylvaticus commentedOn a double tough I think that this is actually a small bug: the logic should be: if there is #t=.... => ok, handle it; but if there isn't any #t parameter there shouldn't be any 'start' parameter added to the embedded code (and not start=0).
Thank you :-)
Comment #3
randallknutson CreditAttribution: randallknutson commentedRan into this exact issue with a youtube live video. Patch attached to do what #2 says. Only set the start time when #t is there.
Comment #4
randallknutson CreditAttribution: randallknutson commentedComment #5
sylvaticus CreditAttribution: sylvaticus commentedHello, the patch in #3 gives error if there is some s..t passed in the #t parameters.
Further, LIKE IN THE ORIGINAL, it does not consider the case that t is already given directly in seconds (e.g. #t=125 for 2 minutes and 5 seconds), like it seems the default now in youtube.
Hence here is a small rewrite that considers all the cases: live stream (no '#t=' defined), #t=125, #t=2m5s and #t=whatever.
Comment #6
randallknutson CreditAttribution: randallknutson commentedReroll of #3. (Sorry I didn't include the improvements)
Comment #8
plopescHello,
I committed an apporach similar to #5 but adding more checking to ensure time is not set unless has a value > 0.
Thank you all for your patches and involvement.
Regards,