Autoplay videos in embedded websites |
Autoplay videos in embedded websites |
justink15 |
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 |
pandy |
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. |
justink15 |
Aug 24 2014, 10:26 PM
Post
#3
|
Group: Members Posts: 3 Joined: 24-August 14 Member No.: 21,456 |
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. |
Christian J |
Aug 25 2014, 04:36 AM
Post
#4
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
|
Christian J |
Aug 25 2014, 04:37 AM
Post
#5
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
|
pandy |
Aug 25 2014, 08:32 AM
Post
#6
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
|
Christian J |
Aug 25 2014, 09:02 AM
Post
#7
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
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. (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.) |
pandy |
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!
Are you saying it can be done or not? Query strings aside. |
Christian J |
Aug 25 2014, 01:35 PM
Post
#9
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
I crave a clearer answer! 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. |
pandy |
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?
|
Christian J |
Aug 25 2014, 03:33 PM
Post
#11
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
I crave a clearer answer! 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). |
pandy |
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.
|
Christian J |
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.
|
pandy |
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.
|
Lo-Fi Version | Time is now: 19th April 2024 - 10:38 PM |