The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Autoplay videos in embedded websites
justink15
post Aug 24 2014, 02:47 PM
Post #1





Group: Members
Posts: 3
Joined: 24-August 14
Member No.: 21,456



Hello, I am designing a website which has an embedded website within it. This website has a youtube video on it, is there any way I can get that to autoplay, or would I need to alter that websites code?

I know how to make the youtube videos autoplay on my own page.

Thanks,

Justin

This post has been edited by justink15: Aug 24 2014, 02:49 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 24 2014, 08:21 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



You would need to alter the markup on the framed page.

I assume the other site is on another domain? The general rule is that you can't manipulate anything cross domain. This is for security reasons.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
justink15
post Aug 24 2014, 10:26 PM
Post #3





Group: Members
Posts: 3
Joined: 24-August 14
Member No.: 21,456



QUOTE(pandy @ Aug 24 2014, 09:21 PM) *

You would need to alter the markup on the framed page.

I assume the other site is on another domain? The general rule is that you can't manipulate anything cross domain. This is for security reasons.


yea it has another domain. OK, so i guess I can't. Thank you for the response.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Aug 25 2014, 04:36 AM
Post #4


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Aug 25 2014, 03:21 AM) *

The general rule is that you can't manipulate anything cross domain. This is for security reasons.

Note that this only applies to javascript.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Aug 25 2014, 04:37 AM
Post #5


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



QUOTE(justink15 @ Aug 24 2014, 09:47 PM) *

Hello, I am designing a website which has an embedded website within it. This website has a youtube video on it

Can't you just load the video on your own page directly?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 25 2014, 08:32 AM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



QUOTE(Christian J @ Aug 25 2014, 11:36 AM) *

QUOTE(pandy @ Aug 25 2014, 03:21 AM) *

The general rule is that you can't manipulate anything cross domain. This is for security reasons.

Note that this only applies to javascript.


Can you really change a page on another domain with server side scripting? How?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Aug 25 2014, 09:02 AM
Post #7


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Aug 25 2014, 03:32 PM) *

QUOTE(Christian J @ Aug 25 2014, 11:36 AM) *

QUOTE(pandy @ Aug 25 2014, 03:21 AM) *

The general rule is that you can't manipulate anything cross domain. This is for security reasons.

Note that this only applies to javascript.


Can you really change a page on another domain with server side scripting? How?

Sorry, I thought you meant javascript without saying so explicitly. blush.gif

(You can also pass data in the querystring to a server side script [if such a script exists] in the framed page, but that's overkill for the OP.)
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 25 2014, 11:20 AM
Post #8


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



I crave a clearer answer! tongue.gif
Are you saying it can be done or not? Query strings aside.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Aug 25 2014, 01:35 PM
Post #9


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Aug 25 2014, 06:20 PM) *

I crave a clearer answer! tongue.gif
Are you saying it can be done or not? Query strings aside.

With javascript, no.

With a querystring I simply meant you could do something like:

CODE
<iframe src="https://startpage.com/do/search?q=pandy"></iframe>

(since the framed page runs a server side script that listens to the querystring).

Then there's something in PHP called cURL that might work too, not sure. mellow.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 25 2014, 02:46 PM
Post #10


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Again, are you saying it can be done with server side scripting, not counting changing query strings or otherwise using scripts and forms that already exist on the other site? rolleyes.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Aug 25 2014, 03:33 PM
Post #11


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Aug 25 2014, 06:20 PM) *

I crave a clearer answer! tongue.gif

Your question wasn't clear enough.

QUOTE
Are you saying it can be done or not? Query strings aside.

No of course not.

(Except maybe with things like cURL, but I don't know for sure, and even then the second server would need to be configured to listen to input from the first one).
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 25 2014, 04:19 PM
Post #12


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Thank heavens.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Aug 25 2014, 04:49 PM
Post #13


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



Of course if site owners embed third party javascripts all bets are off. sad.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 25 2014, 05:42 PM
Post #14


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Not really since someone in control of the domain must do the embedding. That evil stuff might come through that channel is another thing, but you can't decide you want to send your poisonous JS to, say, htmlhelp.com. You must first trick Darin into embedding it. I couldn't even get him to install Tapatalk, so good luck with that. tongue.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 10:38 PM