I'm currently trying to implement a self hosted video player into an existing script, however the code required includes both ' and " how would I implement this into my PHP code ?
$html .= '<video id="vid1" class="video-js" controls="" preload="auto" data-setup="{}"><source src="'.$Player['URL'].'" poster="'.$Poster['URL'].'" type="video/mp4"></video>';
This works perfectly fine as is, however I'm needing this additional code implemented into the video player, but as I mentioned above it includes ' and " which makes it very difficult to implement.
data-setup='{
"plugins": {
"vastClient": {
"adTagUrl": "AD TAG"
}
}}'
The main chunk of PHP cannot be rewritten as it would take far too long, I'm sure there's a solution which I'm looking over.
Any help or ideas would be fantastic thanks.
I have tried replacing ' with " which results in an error, I have also tried /' which has the same result.