|
The hard way: create your own channel definition file You can create your own channels definition file. This is an structured XML file. See in the forum under http://www.myvideo2iphone.com/neu/forum/viewtopic.php?id=3&t_id=1 for an example of such a file. 1. Find out, what is the starting URL. Some websites redirect you to a special mobile site, when they recognize that you are calling the site from your iPhone. This starting point you have to define with the keyword “FirstURL” 2. The second step is to find the keyword, with them myVideos can catch a video display. Some websites have a special keyword in the URL. For example for m.youtube.com you can use the keyword “watch=?” in URL http://m.youtube.com/watch?v=zmj1rpzDRZ0&client=mv-google&gl=US&hl=en&warned=True. Other sites plays the videos have the video name in the URL. For those channels you can enter the extension of the video file as text to catch (for example .3gp or .mov). Enter this text in the keyword “TextToCatchInURL” 3. In the third step you have analyse the HTML file to read the image filename, the title information and the information on the video length. There exists different search methods to locate strings I the XML file · “BeginEnd” searches first a begin pattern. In a second step myVideos searchs the end pattern beginning from the beginning search pattern Example “
HTML file to parse: <div class=”title”> title text </div>
TitleBegin = .<div class “title”> TitleEnd = </div>
· “BeginBeginEnd” searches first a begin pattern. In a second step myVideos searchs the second begin pattern beginning from the first search pattern. In the third step the end pattern is searched. This can be used, when you have to find the pattern “href=” and there are more than you href tags in the file.
HTML file to parse: <div class=”title”> …. <a href=”http://..../filename.jpg”>
ImageBegin1 = <div class “title”> ImageBegin2 = href=” ImageEnd = “
· “EndBeginEnd” searches first the first end pattern. This can be for example the file name extension..
HTML file to parse: <div class=”title”> …. <a href=”http://..../filename.3gp”>
VideoEnd1 = .3gp VideoBegin = href=” VideoEnd2 = “
For each search type (video search, image search, title search and video length, you have to define the search method
| Text in the xml | Comment | <key>VideoSearch</key> <string>BeginEnd|BeginBeginEnd|EndBeginEnd</key> | To search the video URL in the HTML file. Note: In case you catch the video extension in the keyword “TextToCatchInURL” the VideoSearch is optional | <key>ImageSearch</key> <string>BeginEnd|BeginBeginEnd|EndBeginEnd</key> | To search the video image URL in the HTML file | <key>TitleSearch</key> <string>BeginEnd|BeginBeginEnd|EndBeginEnd</key> | To search the video title in the HTML file | 4. Insert an info message which is display, when the users adds the new channel | Text in the xml | Comment | <key>InfoEnglish</key> <string>your info message </string> | Your info message in English | | <key>InfoGerman</key><string>your info message </string> | Your info message in German. When this key does not exists the English message is shown | | <key>InfoFrench</key><string>your info message </string> | Your info message in French When this key does not exists the English message is shown | 5. Deploy your XML file to a website to make it available to myVideos
|