This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div style="display: flex; justify-content: flex-start;"> | |
{{ store.breadcrumb }} | |
</div> | |
</template> | |
<script> | |
import store from 'Store.js' | |
export default { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Result someAction() { | |
Promise<Result> promise = Akka.asPromise(....); | |
Promise<Result> modProm = applyHeader(promise); | |
return async(modProm); | |
} | |
private static Promise<Result> applyHeader(Promise<Result> promise) { | |
return promise.map(new Function<Result, Result>() { | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@(category:models.Category) | |
@defining(if(category==null) routes.RssController.feedAll(_:String) else routes.RssController.feed(_:String, category.id )) { rssUrl => | |
<div id="newsFeedBlock"> | |
<a href="@rssUrl("rss_2.0")" target="_blank"> | |
<img id="newsFeedIcon" src="/assets/images/feed-icon-28x28.png" alt="NewsFeed" /> | |
</a> | |
<div id="rssDetails" style="display: none;" /> | |
Abonnieren als |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void streamPublishStart(IBroadcastStream stream) { | |
super.streamPublishStart(stream); | |
try { | |
log.info("videorec start saving"); | |
// Das ist ein ClientBroadcastStream | |
String name = stream.getPublishedName(); | |
stream.saveAs(name, false); | |
String filename = stream.getSaveFilename(); | |
IConnection conn = Red5.getConnectionLocal(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Global extends GlobalSettings { | |
@Override | |
public Action onRequest(Request arg0, Method arg1) { | |
return new Action.Simple() { | |
public Result call(Context ctx) throws Throwable { | |
String authConf = Config.getString("basic.auth"); | |
if (authConf == null) | |
return delegate.call(ctx); | |
String auth = ctx.request().getHeader("Authorization"); |