Bug 992568 - Part 1: Render RTSP in the browser. r=sworkman

This commit is contained in:
Ethan Tseng 2014-01-20 18:54:33 +08:00
Родитель 22dd853099
Коммит 2ea30d25e4
2 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -49,7 +49,7 @@ pref("network.protocol-handler.warn-external.vnd.youtube", false);
// By default, all protocol handlers are exposed. This means that the browser
// will response to openURL commands for all URL types. It will also try to open
// link clicks inside the browser before failing over to the system handlers.
pref("network.protocol-handler.expose.rtsp", false);
pref("network.protocol-handler.expose.rtsp", true);
/* http prefs */
pref("network.http.pipelining", true);

Просмотреть файл

@ -430,6 +430,11 @@ DecoderTraits::CanHandleMediaType(const char* aMIMEType,
if (MediaDecoder::IsMediaPluginsEnabled() &&
GetMediaPluginHost()->FindDecoder(nsDependentCString(aMIMEType), &codecList))
result = CANPLAY_MAYBE;
#endif
#ifdef NECKO_PROTOCOL_rtsp
if (IsRtspSupportedType(nsDependentCString(aMIMEType))) {
result = CANPLAY_MAYBE;
}
#endif
if (result == CANPLAY_NO || !aHaveRequestedCodecs || !codecList) {
return result;
@ -664,6 +669,9 @@ bool DecoderTraits::IsSupportedInVideoDocument(const nsACString& aType)
#endif
#ifdef MOZ_APPLEMEDIA
IsAppleMediaSupportedType(aType) ||
#endif
#ifdef NECKO_PROTOCOL_rtsp
IsRtspSupportedType(aType) ||
#endif
false;
}