How is it possible to get such an image format in my application?
Provided that the ID-Schnick will always change. Need to somehow divide the link into two components?
How is it possible to get such an image format in my application?
Provided that the ID-Schnick will always change. Need to somehow divide the link into two components?
String placeholder = "http://img.youtube.com/vi/%s/0.jpg" ... String url = String.format(placeholder, id); In id should be an idish video, for example Rxo0Upfz48Q
id variable, and execute the code that is in response - Vladyslav MatviienkoIf the user uploads the video, he will receive a link. Therefore you can try to use Pattern and then Matcher . Something like this:
private static final Pattern rtmpUrlPattern = Pattern.compile("^rtmp://([^/:]+)(:(\\d+))*/([^/]+)(/(.*))*$"); Matcher matcher = rtmpUrlPattern.matcher(url); host = matcher.group(1); String portStr = matcher.group(3); port = portStr != null ? Integer.parseInt(portStr) : 1935; Source: https://ru.stackoverflow.com/questions/572025/
All Articles