I have a web commutity board, and what I want is to extract a thumnail from html codes.
when a user writes a message ( an html content),
The function should find out the first element among (
img , video, youtube , vimeo, daily motion ) in the message.
The first child of body can be some other tags like '<p>' , '<h1>' and so on,
I don't care of these tags.
image types : 'gif', 'jpeg', 'jpg', 'png', 'svg', 'blob'
video types : 'mp4', 'webm', 'ogg'
I need a function
@param : html code ( as a string)
@return an array of which length is 3.
0. type, string ( one of image, video, youtube, vidoe, dailymotion)
1. full url, string,
2. id string, ( for url ( [login to view URL]) => a_hnClZp4hs])
- return example
Array
(
[0] => youtube
[1] => [login to view URL]
[2] => a_hnClZp4hs
)
Array
(
[0] => youtube
[1] =>[login to view URL]
[1] => a_hnClZp4hs
)
Array
(
[0] => youtube
[1] => [login to view URL]
[2] => 1KYiEb7S0IY
)
Array
(
[0] => vimeo
[1] => [login to view URL]
[2] => 726079414
)
Array
(
[0] => dailymotion
[1] => [login to view URL]
[2] => x8f141h
)
Array
(
[0] => image
[1] =>/data/editor/2210/[login to view URL]
[2] =>[login to view URL]
)
Array
(
[0] => video
[1] =>data/editor/2210/[login to view URL]
[2] =>[login to view URL]
)
contents sample file is attached.
Hello sir, I'm a professional web developer with building professional and unique websites over 5 years of time span. I have great experience in PHP language. I can create a function for this problem. I'm looking up for your message, Contact me, Your regards
I am indivisual software developer having 9 + years exp in Php,Laravel,Codiegnator,CakePhp and wp,I have completed many web based project in all areas like edu,real estate,insurance,ecommerce. etc.
Hey, I am Elvis
After going through your project, I am confident I am the best fit. I am a professional freelancer with experience of more than 6 years. Within this tenure, I have done many projects that include:
PHP
HTML
I will provide you content that will be formal & unbiased, clear & precise, focused & well structured, free from plagiarism as per the facts, figures & your guidelines which are highly research based from authentic sources that will be analytical, persuasive & reflective with correct punctuation.
I assure you the charges will be friendly.
Let's come over for a chat so I can share my samples with you & we can discuss further Thanks in advance.
I complete my graduation in mechanical branch From IIT Jodhpur. I am working as a software developer in IT company, where I completed my 4 month training to work as full stack developer as during training period i complete my training in html , Css , Javascript , React-js , And dot net framework.