Closed GoogleCodeExporter closed 8 years ago
[deleted comment]
May need to make more adjustments than just replacing YouTube with YouKu for
China (
http://searchenginewatch.com/article/2078969/Video-Search-in-China-Baidu-vs.-You
ku ). May also want to replace Google searches with Baidu:
http://en.techorange.com/microsoft-powered-baidu-spin/ ...
Original comment by NielsMa...@gmail.com
on 16 Nov 2011 at 10:57
The YouKu video search site is http://3g.youku.com/smartphone/index.jsp . It
has a search button which requires a POST to
http://3g.youku.com/smartphone/result.jsp
<div id="search_box" >
<form action="result.jsp" method="post">
<div id="search_input"><input type="text" id="keyword" name="keyword" /></div>
<div id="search_submit">
<input id="search_submit_input" type="image" src="./img/searchbution.png" />
</div>
</form>
</div>
However, by accident, I discovered that it also accepts a keyword parameter
http://3g.youku.com/smartphone/result.jsp?keyword=nokia%20n9
which is the same search as http://www.soku.com/search_video/q_nokia%20n9
except the 3g.youku.com version doesn't require flash for viewing video.
When a 3g.youku.com video is browsed on Harmattan, it brings up platform media
browser and shows the video in that application, just like for YouTube.
Thus, for China version of VoiceToGoog, can replace the YouTube searching code:
CMD.openUrlExternally("http://m.youtube.com/#/results?q="
+ encodeURIComponent(ut)
+ "&location="
+ uttersModel.get(i).lat + ","
+ uttersModel.get(i).lng
+"&location-radius=1000km");
With something like:
CMD.openUrlExternally("http://3g.youku.com/smartphone/result.jsp?keyword="
+ encodeURIComponent(ut));
Similarly, the following may need replacement w/ non-google alternatives, for
China:
"Web Search Selection(s)" -->
CMD.openUrlExternally("http://www.google.com/m/search?uipref=3&mrestrict=xhtml&q="
+ encodeURIComponent(ut));
"Google Map Selection(s)" -->
CMD.openUrlExternally("http://www.google.com/m/local/?q="
+ encodeURIComponent(ut)
);
However, may want to use soku to aggregate search across all chinese video
sites. Unfortunately the resulting search page is not suitable for mobile
usage, and browsing a video requires flash:
http://www.soku.com/v?keyword=nokia%20n9
The following gives some background on the search/video situation in China:
http://searchenginewatch.com/article/2078969/Video-Search-in-China-Baidu-vs.-You
ku
.................
If you look at search globally, Google rules and YouTube is the second largest
search engine in the world, but YouTube was blocked in China starting in 2009.
So when it comes to video search in China, the key players would most likely be
Baidu or Youku.
This becomes apparent when Youku launched its specialized video search engine
Soku in May, that allows users to search for video files under its network as
well as from 10 other video sites in China such as Tudou, Qiyi, Sohu, Sina,
56.com and joy.cn.
..............
This article suggests that google is "out" and baidu is in as a search engine
for China.
http://en.techorange.com/microsoft-powered-baidu-spin/
................
Earlier this week it was announced that Microsoft inked a deal with Chinese
search giant Baidu to power the site’s English searches. With Baidu handling
83% of searches in China, it’s a big deal for Microsoft, who now has a major
competitive advantage over search rival Google who bowed out of China in 2010.
................
Original comment by NielsMa...@gmail.com
on 17 Nov 2011 at 2:32
Fixed "regional customization" in voicetogoog 0.2.2. "user customization"
should be a separate feature as this one is closed w/ the following changes:
* Moved externally launched programs, and their associated labels and icons to properties in main.qml; which may get an override on a per-region basis via file Region<RegionName>.qml and call to the method "region.doOverrides()".
* Added RegionNull.qml (No-Op) and RegionCN.qml (for Chinese-preferred search/video/map sites), alongside voicetogoog.pro which sets compilation $DEFINES APP_REGION="Null" or "CN" to invoke appropriate regional override which is invariant over system language or any other user-adjustable parameter. In version 0.2.1, using $LANG to enable regional overrides did not pass Nokia QA for China since users apparently change their $LANG in N9's options.
Original comment by NielsMa...@gmail.com
on 21 Nov 2011 at 5:12
Original comment by NielsMa...@gmail.com
on 21 Nov 2011 at 5:13
Original issue reported on code.google.com by
NielsMa...@gmail.com
on 11 Nov 2011 at 4:18