如何使用网页浏览android在Android默认媒体播放器中播放时,通过dailymotion嵌入链接获取.m3u8或mp4链接的所有回叫通知? 我们有另一个解决方案来使用像这样的html方法来获取链接。
using Demo #1: How to Embed HLS / M3u8 Streaming: Demo of M3u8 / HLS embedding with HTML5 rollove
但我希望获得m3u8链接当webview通知到android的默认媒体播放器在默认的Android媒体播放器中播放视频请帮助我,我被困大约2周谢谢。
我在IOS(目标C)和C语言级别获得代码,用于获取代码跟随的播放器通知
C语言水平:
void PlayerWillExitFullscreen (CFNotificationCenterRef center,
void *observer,
CFStringRef name,
const void *object,
CFDictionaryRef userInfo)
{
//do something...
}
CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(),
NULL,
PlayerWillExitFullscreen,
CFSTR("UIMoviePlayerControllerWillExitFullscreenNotification"),
NULL,
CFNotificationSuspensionBehaviorDeliverImmediately);
Objective-C等级:
- (void)playerWillExitFullscreen:(NSNotification *)notification {
//do something... }
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(playerWillExitFullscreen:)
name:@"UIMoviePlayerControllerWillExitFullscreenNotification"
object:nil];
任何人都可以在android中为我提供替代代码请帮助我但我被卡住了